Skip to main content

Hi guys, please help me.

Context / stack
Building an IG bot. Pipeline: ManyChat (Instagram) → External Request (JSON) → n8n (self-hosted v1.105.4) → OpenAI (4o-mini, Assistants API) → Respond to Webhook (JSON) → (ManyChat) Response Mapping → Send Message {ai_response}.
Logs/records in Supabase.

Conversation memory design (how we keep context)

  • We use the OpenAI Assistants API with persistent threads per Instagram subscriber.

  • On the first message we create a thread and store the mapping in Supabase: subscriber_id → thread_id.

  • On the next messages we reuse the same thread (read thread_id from Supabase), append the user’s text, create a run, then poll run status in n8n (Check Run Status → If Completed? → Wait 3s & Retry).

  • When the run is completed, we fetch the latest assistant message, save it to Supabase, and return JSON to ManyChat via Respond to Webhook:

     

    { "ai_response": "..." }

Expected behavior
ManyChat sends JSON to n8n:

 

{ "subscriber_id": "1482029640", "text": "Hi" }

n8n generates a reply and returns:

 

{ "ai_response": "Hello! How can I help you today?" }

Then ManyChat sends that ai_response back to the user.

Actual behavior

  • Test Request in External Request consistently fails with:
    Operation timed out after 10001 ms with 0 bytes received → Logs show “Response is null.”

  • In real conversations:

    • Short replies sometimes work.

    • For longer ones (processing > ~10s due to thread+run polling) ManyChat shows “Response is null,” even though n8n reaches Respond to Webhook and the reply is written to Supabase.

  • After this happens, the next user message is often not processed (it doesn’t appear in ManyChat logs and doesn’t reach n8n); only the second attempt triggers again.

Please, can anyone help me solve this problem? 🙏

 

We also tried to solve it with api manychat. With http request node in n8n.

 

But got this error:

Content can’t be sent to the subscriber without a message tag. Subscriber’s last interaction was over 3668h ago (more than 24 hours ago)

 

However I just wrote to an instagram, and not even a minute passed before the whole process ended in n8n and gave an error


Hello ​@Batyr Rejepov ,

The Manychat API has a runtime limit of 10 seconds. Therefore, to create your flow using Supabase, you will need to implement an asynchronous logic:
- Return a 200 OK status immediately to Manychat in the external request, indicating that the processing is in progress.
- Add a smart delay to wait for 10 seconds and then perform a new query. If the process is not ready yet, you will receive a response such as "Pending."
- Include a condition block to always check the response and make sure it is not indicating that the message is still being processed.

It is also important to mention that if you make direct calls to the OpenAI API from Manychat, the runtime can exceed 10 seconds. In this case, one possible solution would be to avoid using intermediaries.
@Gustavo Boregio  offers a ready-made flow of this type, which might be useful for you.

Regarding your second question: to send a message to a contact on Instagram, the contact must have sent you a message within the last 24 hours. If they have not interacted with you in that period, you will receive this error.


Hey ​@Batyr Rejepov I think we talked on WhatsApp earlier today, right? :D

For the 10s delay, it’s as ​@rogerioaraujo mentions ;)

From your setup, I see that you’re using a straight-up OpenAI assistant, no tool calling or any other complex logic. This can be done 100% in Manychat <> OpenAI without intermediaries like N8N. And yes, I have a template for that! :D

Regarding the error you’re having:

Content can’t be sent to the subscriber without a message tag. Subscriber’s last interaction was over 3668h ago (more than 24 hours ago)

Most likely, you have something wrong in your automation, or you’re using the wrong format. Manychat’s API work and we use it everyday, so it’s probably something wrong in the setup.


Guys thank you very much for help. Gustavo’s consultation helped!