Whatsapp AI Agente - Prompt error

I tried to create a workflow in which I have a message being received on WhatsApp and I use openai to answer writing a message back. The problem is that I get a message about a prompt missing, even though I had already written it.


Could you ctl a, ctl c (or cmd) to copy your workflow and then on the forums click ‘</>’ and paste that into the backticks?

Can you show what the error is?

Hey @Soho

Another Brazilian here :wave:

The problem is the USER prompt. See this error icon here?

Set it up like this:

Remember to enable the Expression tab here:

You can copy and paste this node to your workspace to see how it’s done:

Take a look at this template for more detailed instructions.

.

:point_right: If my reply answers your question, please remember to mark it as a solution.

Ah yes, I missed that. @solomon is correct. A system prompt defines how the agent functions, and the Prompt (User Message) is the “question” or “query” you ask the agent itself.

Thx for the help, but solved it. Now my workflow is much more complex, I am developing it quite fast, N8N is quite amazing…

1 Like

Hey Solomon! Yes… another brazilian :sweat_smile:. I managed to solve the problem, now my problems are a bit more complex, posting soon for more help. N8N, what a tool, right? Loving it… Thx anyway!!!

But I still have a question though, is whatsapp more complicated to deal with? It seems to lose connection all the time, as the credential suddenly expires all the time

1 Like

You may now be encountering different errors. There are a couple known bugs with WhatsApp at the moment that are under investigation, you can find/search them on the n8n github:

Unless your errors are different?

Hey @Soho !

Yeah, n8n is the best.

About WhatsApp, there’s a bug being fixed, as Think it mentioned above.

But other than I don’t know about other issues.
I mostly use Evolution API. It’s an unofficial WhatsApp Web API.

Very stable. I think you can connect to WhatsApp Business Cloud too.