Logic needs an emotional “push” to function.
We can simulate that emotional push in silicon which is amazing.
What is logic? It’s what’s reasonable. What’s reasonable? It’s what’s ‘clear’ or comfortable feeling.
Encode it. Make machines that use it. Bingo, here we are on facebook.
I don’t think free will is an illusion though but I suspect we have different definitions of free will