#Someone can help me with dynamic

1 messages · Page 1 of 1 (latest)

vapid niche
#

Sure, what's the problem?

sinful grove
#

Thanks bro, im trying to pass dynamic variables when calling with twilio api route, but when i try a production call, only last a few seconds before shutdown without a word said

#

BODY REQUEST: {
"agent_id": "xxxx",
"agent_phone_number_id":"xxxx",
"to_number": "{{ $('Edit Fields').item.json.number }}",
"dynamic_variables": {
"name": "{{ $json.name }}"
}
}

#

@vapid niche am i doing something wrong?

vapid niche
#

Make sure to check if you request structure is corrent, you have to supply dynamic variable values inside conversation_initiation_client_data.dynamic_variables

#

Also i'm not sure which language you are using (idk if those are template literals) or you've just redacted the actual values, but you should not include any parentheses when specifying dynamic var values

#

So if you reference your var in agent config like {{client_name}}, the key in your dynamic_variables object should be just client_name