Help Integrating WhatsApp Chatbot and Asaas Payment Flow into a Single n8n Workflow

Hello n8n community,

I’m currently developing an automation where customers reach out via WhatsApp and a Chatbolt — which is already set up and working — assists them with information about our store’s products and subscription plans.

Once the customer expresses interest in proceeding with a purchase or subscription, the flow should continue to the next step: interacting with Asaas, our billing platform.

I also already have a separate n8n workflow that connects to Asaas. It handles:

  • Checking if the customer already exists in the Asaas database;
  • Creating a new customer if necessary;
  • Generating a payment link based on the selected payment method (Boleto, Credit Card, or Pix).

What I need now is to integrate the chatbot and the billing flows into a single unified workflow in n8n. Currently, they’re separated, and I would prefer not to rely on two different webhooks, which I believe is not the ideal or most efficient approach.

Here’s what the combined flow should accomplish:

  1. Detect when the customer is ready to proceed with the purchase;
  2. Check if the customer already exists in Asaas;
  3. If not, create the customer using the following data:
  • Name and phone (automatically obtained from WhatsApp),
  • CPF/CNPJ and address (provided by the customer in the conversation);
  1. Register the selected product or plan;
  2. Generate a payment link in Asaas according to the selected payment method.

My main doubts are:

  • What’s the best way to integrate the Chatbolt logic with the Asaas logic within a single n8n workflow?
  • How can I manage the transition from chatbot interaction to billing using only one webhook (from the WhatsApp integration)?
  • Are there any best practices or examples for combining real-time chat automations with external billing systems via API in n8n?

Any guidance, node samples, or practical tips would be highly appreciated!

Hi there, my suggestiob would be to create a sub agent workflow

so your main workflow that it’s main focus is to answer user chats and stuff, connect it to the other workflow using the call n8n workflow tool, where in here you would call the workflow that handles the payment and customer validation just like you said in your message

that way there will be only 1 whatsapp webhook, and there’s still a clear separation between the chats and the payment stuff, hope ithelps

1 Like