https://retellai.com/?utm_source=discord&utm_medium=seo logo
why did i get this on n8n
# ❓・ai-evy-support
c
@AI Evy why did i get this on n8n? the variable i used for set fields is {{$json['Appointment Booked']}} and the execution error states: 'appointmentBooked' expects a boolean but we got '' [item 0] empty To fix the error try to change the type for the field "appointmentBooked" or activate the option “Ignore Type Conversion Errors” to apply a less strict type validation Error details Other info Item Index 0 Node type n8n-nodes-base.set Node version 3.4 (Latest) n8n version 1.90.2 (Cloud) Time 8/1/2025, 4:37:50 AM Stack trace NodeOperationError: 'appointmentBooked' expects a boolean but we got '' [item 0] at validateEntry (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Set/v2/helpers/utils.js:174:13) at /usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Set/v2/manual.mode.js:223:64 at Array.map () at ExecuteContext.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Set/v2/manual.mode.js:222:49) at ExecuteContext.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Set/v2/SetV2.node.js:348:51) at WorkflowExecute.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/workflow-execute.js:681:50) at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/workflow-execute.js:915:62 at processTicksAndRejections (node:internal/process/task_queues:95:5) at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/workflow-execute.js:1246:20
a
Thanks for tagging me @cyberprincessa333. I'll look through relevant sources and get back to you shortly.
### Answer The error you're encountering is because the n8n Set node expects a boolean value for the
appointmentBooked
field, but it's receiving an empty string instead [(1) ](

▾

) . This happens when the variable
{{$json['Appointment Booked']}}
doesn't contain the expected boolean data from your Retell AI integration. Based on the Retell AI + n8n integration documentation, when working with appointment booking workflows, you need to ensure that the data structure returned from your Retell AI function calls matches what n8n expects [(2) ]() . To fix this issue, you have a few options: 1. **Check your Retell AI function response**: Verify that your custom function is actually returning a boolean value (true/false) for appointment booking status rather than an empty string [(3) ]() . 2. **Use type conversion in n8n**: As the error suggests, you can activate the "Ignore Type Conversion Errors" option in the Set node to apply less strict type validation [(1) ](

▾

) . 3. **Handle the data transformation**: You may need to add logic to convert the empty string to a proper boolean value before setting the field. The integration between Retell AI and n8n requires careful attention to data types, especially when handling appointment booking responses [(2) ]() . Make sure your webhook responses from Retell AI are structured correctly to match n8n's expected data types.
​ To learn more, see the sources I considered: [[1] Personalization with Google Sheets](

https://www.youtube.com/watch?v=A9H3a33gM2M▾

) [[2] Connect AI call agent to n8n](https://www.retellai.com/integrations/n8n) [[3] Custom n8n Functions Stopped Working](https://discord.com/channels/1186424376300679209/1360106227560087552) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.