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:
- Detect when the customer is ready to proceed with the purchase;
- Check if the customer already exists in Asaas;
- 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);
- Register the selected product or plan;
- 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!