Chatbot with an option of sending whatsapp - evolution Api

Describe the problem/error/question

Hi Community, i am stuck with a Chatbot. It is very simple - Chatbot - Code to extract phone number - Agent IA connected to chatgpt - Memory - Tools (Http request to gather info from several internal sites) - Gmail send with additional info. I want to add a way to send also a whatsapp using evolution api - HTTP request as additional info when the chatbot detects the phone number, but dont find a way. Always i add the if node outside the Agent IA in case the phone number is detected, fails when i start typing in the chatbot.

What is the error message (if any)?

No response in the chatbot as soon as i add the if node to get the phone number.

Please share your workflow

Using Docker and N8N in local … Would like to get some imput and see how can i get this running.

Hi you need to make sure you return actual output to the chat

Normally this would be $json.output.

Simple understanding if you use a simple set field after the ai and set output to {{ 'hello '+$json.output }} the ai answer will always be hello …

So just to show you that whatever you do further even if you need to return the original or some other message in the output variable.

Reg
J.

Thx… what I was doing was add a set node and if node after the Ia agent to extract the info from the conversation and if detects a phone number try to send the WhatsApp via http request. However , since I added those nodes, always I type something in the chat fails… so, returning the if node to the chat should be fine?