how to pass custom variables when I call workflow
Hi all,
how can I pass custom variables to workflow through HTTP request? I've tried different approaches
This approach is not accepted when I call workflow
"assistantOverrides": {
"variableValues": {
"name": "John"
}
This doesn't throw an error but the assistant doesn't get the variables in metadata and they just read the variables name.
{
"type": "outboundPhoneCall",
"workflowId": "asdfdsafd",
"phoneNumberId": "fdsafdsafdsa",
"customer": {
"number": "{{ $node['Recruiter with Phone Number?'].json.message.content.phoneNumber }}"
},
"metadata": {
"messageID": "{{ $node['Get a message'].json.id }}",
"recruiterName": "{{ $node['Recruiter with Phone Number?'].json.message.content.recruiterName }}",
"emailSummary": "{{ $node['Recruiter with Phone Number?'].json.message.content.Summary }}"
}
}
I made sure that the variable names are identical. Any idea how to approach it?
#support #office-hours #general-english
how can I pass custom variables to workflow through HTTP request? I've tried different approaches
This approach is not accepted when I call workflow
"assistantOverrides": {
"variableValues": {
"name": "John"
}
This doesn't throw an error but the assistant doesn't get the variables in metadata and they just read the variables name.
{
"type": "outboundPhoneCall",
"workflowId": "asdfdsafd",
"phoneNumberId": "fdsafdsafdsa",
"customer": {
"number": "{{ $node['Recruiter with Phone Number?'].json.message.content.phoneNumber }}"
},
"metadata": {
"messageID": "{{ $node['Get a message'].json.id }}",
"recruiterName": "{{ $node['Recruiter with Phone Number?'].json.message.content.recruiterName }}",
"emailSummary": "{{ $node['Recruiter with Phone Number?'].json.message.content.Summary }}"
}
}
I made sure that the variable names are identical. Any idea how to approach it?
#support #office-hours #general-english