Skip to main content

hi everyone, i have a quick question about external request, i’m doing a request to n8n this workflow use IA to answer the user question and retrieve the answer throught the ‘respond to webhook’ node, the issue is this: the node still running and manychat show me a alert that the request is null, i try to use http headers to solve this but not work
 

this is the response register: 
 

if u can see the response is null, i thought that maybe the problem is the response mapping but is not
 

 

and this is the response in n8n:
 

 

is responding correctly. if i use another way to make request the response is working

 

 

HERE this is the headers that im using
 

 

how could i solve this issue? thnks 

Hi, ​@paolafajardo!

 

I'm pretty sure this is happening due to a timeout for the response…

Manychat's max timeout is 10 seconds. I made a test scenario with n8n that waits for 15 seconds to respond… got the same error:

 

Check if your n8n automation is responding in less than the max timeout (you can see it at the Executions). 😉

This one is my test. After 10 sec, Manychat ends the request and sets the response to null.

 

Hope this helps!

🙌


@fabio.gaulke Is there a way to install Smart delay conditionally? Some n8n tools produce response in 3 sec (for example, answering simple questions), and some require up to 15 sec (performing a task). If answer is ready in 3 sec - I would prefer to deliver it in 3 sec, right away, and not wait obligatory 15 sec every time as it slows down normal flow of conversation..

I tried condition “if n8n_response has any value” - then Send message, otherwise “Smart delay” - but Smart delay never gets triggered, when n8n response is ready in 13 sec..it still is seen as null response. Is there a workaround?

 


@fabio.gaulke Is there a way to install Smart delay conditionally? Some n8n tools produce response in 3 sec (for example, answering simple questions), and some require up to 15 sec (performing a task). If answer is ready in 3 sec - I would prefer to deliver it in 3 sec, right away, and not wait obligatory 15 sec every time as it slows down normal flow of conversation..

I tried condition “if n8n_response has any value” - then Send message, otherwise “Smart delay” - but Smart delay never gets triggered, when n8n response is ready in 13 sec..it still is seen as null response. Is there a workaround?

 

 

You could include a “loop” condition every 3sec and check if your n8n response isn't empty…

  • Delay = 3sec
  • Condition checking if “n8n response” isn't empty
    • TRUE = Continues flow
    • FALSE = Goes back to the 3sec delay

@fabio.gaulke I tried to introduce 3 sec delay right after External request, but Manychat doesn’t allow me, says minimum is 10 sec..

 


Ah… that's true… had forgotten the minimum 10sec limitation… 🤦‍♂️

 

If there's a possibility to send some message after the contact sends his question (something like: "Checking… just a moment!”)… you could set a delay of 3sec before the message block.

 

OR… thinking now… never tested it, but it should work (and also be a solution for ​@paolafajardo's problem:

  • END the automation right after the HTTP Request to n8n.
  • Also send the Contact ID to n8n
  • Instead of Mapping the response and be forced to keep it below 10sec (timeout), use Manychat's API to…
    • Set your custom field with the AI Response (/fb/subscriber/setCustomField)
    • Start a second automation withe the next steps of your full automation (/fb/sending/sendFlow)…

If this works, doesn't matter if n8n takes 3sec or 20sec to run… once it finishes, the next part should start immediately.

 

Hope this helps!


@fabio.gaulke 

 

What I tried to do:

  1. Ended automation (with usual working webhook URL) right after HTTP request, with no block following it.  N8N Webhook didnt receive my userinput at all. I tried options - Respond Immediatly, and Respond Using respond to webhook node. So flow was not triggered in n8n.
  2. Ended automation (with usual working webhook URL) right after HTTP request with manychat Send message block with hardcored message : “Thank you for your message, please let me check”. Then N8N received my userinput and generated its own valid response - but, of course, it never reached manychat or user, as I already had hardcored Send message sent to user. And here flow stops
  3. Tried to set External request block without response settings - doesn’t allow to save. 
  4. Tried to set External request with dummy data in response settings - then External request also doesn’t work 

Reply