Skip to main content

Hi Community,

I'm running a flow using the ManyChat API sendFlow endpoint:

API Endpoint:
https://api.manychat.com/fb/sending/sendFlow

 

Payload Sample: json

{ "subscriber_id": "5099514960168074", "flow_id": "925858437555219", "message_tag": "CONFIRMED_EVENT_UPDATE", "data": { "medicine": "Panadol" } }

 

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!

@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.

For Manychat, the documentation is here: https://api.manychat.com/swagger#/

Anything not mentioned there will not work.

Hope this helps!

 


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.

Thanks again for your time and guidance!


@FaisalRathor this is a tricky one since these are very restrictive.

I’d say that if it’s only a message ‘time to take the medicine’ then you’re probably ok.

If the message also says ‘time to refill, click to buy’ then it becomes a marketing message, and you shouldn’t be using the tag.

Read the documentation carefully to make the call for your case.


Reply