https://retellai.com/?utm_source=discord&utm_medium=seo logo
how to parse n8n response to remove extra quotes
# ❓・ai-evy-support
p
@AI Evy how to parse n8n response to remove extra quotes
a
Thanks for tagging me @Paco. I'll look through relevant sources and get back to you shortly.
### Answer I don't have specific documentation on parsing n8n responses to remove extra quotes within Retell AI's systems. This is typically handled on the n8n side before sending data to Retell. However, here's what I can share about the expected response format for Retell AI webhooks: For inbound webhooks, the response should be properly formatted JSON. For example, dynamic variables should be nested under
call_inbound
like this: [(1) ]()
Copy code
json
{
  "call_inbound": {
    "dynamic_variables": {
      "first_name": "Pranam",
      "last_name": "Lipinski",
      "email": "pranam@eocworks.com"
    }
  }
}
For custom function webhooks, you can return the value as a dynamic variable that the agent can reference using
{{variable_name}}
syntax. [(2) ]() If your n8n response is returning strings with extra quotes (e.g.,
"\"value\""
instead of
"value"
) , this is typically an n8n formatting issue you'd need to resolve in your n8n workflow using expression nodes or JSON parsing before the "Respond to Webhook" node. Check out these potentially useful sources: - [Retell AI Webhooks | AI Voice Agents With Live Data]() - [Webhook Glossary]() - [Inbound webhook returns retell_llm_dynamic_variables but agent doesn't receive them]() Would you like me to try providing a general answer about JSON parsing techniques?
​ To learn more, see the sources I considered: [[1] Inbound webhook returns retell_llm_dynamic_variables but agent doesn't receive them](https://community.retellai.com/t/inbound-webhook-returns-retell-llm-dynamic-variables-but-agent-doesnt-receive-them/733) [[2] Custom function webhook](https://discord.com/channels/1186424376300679209/1361887355916648599) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.