Skip to main content
Solved

How can I make n8n trigger an automation?

  • January 1, 2026
  • 2 replies
  • 31 views

Rafael Penido

About a whatsapp automation.

 

When it's the other way around, it's easy with an external request and a webhook, but in this case, I can't find any useful trigger in ManyChat.
How can I make n8n trigger an automation for whatsapp messaging?

Best answer by Fabio Gaulke

Hi, ​@Rafael Penido!

 

For that, you’ll have to use Manychat’s API to send a specific flow to a new or existing contact = https://api.manychat.com/swagger

But there’s a catch... 😂

The /sendFlow endpoint needs the subscriber_id. To get it, you need to search for existing contacts before creating a new one (if the contact already exists, you get an error message). And the only way to get it done with a WhatsApp ID is creating a custom field and an extra automation that populates this field with the contact’s WhatsApp phone number. Then you use the /findByCustomField endpoint to get the subscriber_id if it already exists.

 

That requires to create the custom field and an extra automation to populate the field once a new contact is created in Manychat.

On n8n’s side, it will just need 3 nodes to do all the work:

 

  1. Tries to create a new Subscriber.
    • If there’s no contact with that WhatsApp number, it creates a new contact and returns the subscriber_id in the response.
    • If a contact with the WhatsApp number already exists, you get an error
  2. If you get an error, the next node searches for the contact with that WhatsApp Number and gets the subscriber_id as response.
  3. Uses the /sendFlow endpoint to send the automation with the messages you selected to the new/existing contact.

 

If you need some help with that, feel free to send me a message. 😉

 

Happy new year/ Feliz ano novo!!

2 replies

Manaia45t
  • Up-and-Comer
  • January 1, 2026

In ManyChat, n8n cannot directly trigger WhatsApp automations because ManyChat only supports triggers from incoming messages or user actions. To work around this, I would use ManyChat’s API or an external webhook. From n8n, I can send a request to ManyChat’s API to start the automation for the user or segment I want.


Fabio Gaulke
Forum|alt.badge.img+3
  • Manychat Community Moderator
  • Answer
  • January 2, 2026

Hi, ​@Rafael Penido!

 

For that, you’ll have to use Manychat’s API to send a specific flow to a new or existing contact = https://api.manychat.com/swagger

But there’s a catch... 😂

The /sendFlow endpoint needs the subscriber_id. To get it, you need to search for existing contacts before creating a new one (if the contact already exists, you get an error message). And the only way to get it done with a WhatsApp ID is creating a custom field and an extra automation that populates this field with the contact’s WhatsApp phone number. Then you use the /findByCustomField endpoint to get the subscriber_id if it already exists.

 

That requires to create the custom field and an extra automation to populate the field once a new contact is created in Manychat.

On n8n’s side, it will just need 3 nodes to do all the work:

 

  1. Tries to create a new Subscriber.
    • If there’s no contact with that WhatsApp number, it creates a new contact and returns the subscriber_id in the response.
    • If a contact with the WhatsApp number already exists, you get an error
  2. If you get an error, the next node searches for the contact with that WhatsApp Number and gets the subscriber_id as response.
  3. Uses the /sendFlow endpoint to send the automation with the messages you selected to the new/existing contact.

 

If you need some help with that, feel free to send me a message. 😉

 

Happy new year/ Feliz ano novo!!