In the flow, I'm trying to use {{medicine}} in both a text message and a Set Custom Field action — but the value appears empty (or blank) when the message is sent.
The API call works and the flow is triggered But {{medicine}} doesn't populate
👉 Can anyone help me figure out:
Is the data object correctly mapped?
Thanks in advance!
Best answer by Gustavo Boregio
@FaisalRathor the sendFlow endpoint does not let you set custom fields - it’s only used to send a flow, and you must follow exactly the format shown in https://api.manychat.com .
If you need to set a Custom Field before sending the flow, you need to use the ‘setCustomFields’ endpoint before calling the sendFlow (you’ll need to do 2 API calls to Manychat).
Also, I’m not sure who’s suggesting people add extra parameters on their API requests - maybe ChatGPT?
When using any API you must strictly follow the documentation of the API.
@FaisalRathor the sendFlow endpoint does not let you set custom fields - it’s only used to send a flow, and you must follow exactly the format shown in https://api.manychat.com .
If you need to set a Custom Field before sending the flow, you need to use the ‘setCustomFields’ endpoint before calling the sendFlow (you’ll need to do 2 API calls to Manychat).
Also, I’m not sure who’s suggesting people add extra parameters on their API requests - maybe ChatGPT?
When using any API you must strictly follow the documentation of the API.
Thank you so much for the clarification — it really helps!
I now understand that setting custom fields requires a separate setCustomField call before sendFlow, and I’ll make sure to strictly follow the official documentation from now on.
One quick follow-up question:
Can the CONFIRMED_EVENT_UPDATE tag be used to send upcoming medicine refill reminders, if the user previously opted in for reminders or refills?
Just want to make sure this use case falls within Facebook's acceptable policy for this tag.