Automation library · Customer support

WhatsApp to Chatwoot message forwarder with Postgres and Redis

Started by an event in a connected app, and works across Postgres and Redis. 31 steps, 8 branches, 1 loop or waits: large, and worth reading before you trust it with anything live.

Large

31 stepsLarge: read it before trusting it with anything live
8Branches: places the flow splits
1Loop or waits
2Services it connects to

The flow

Starts it 1Logic 18Service 12

The steps in the order they run, from what starts it.

  1. 1When Executed by Another WorkflowExecute Workflow triggerStarts it
  2. 2WaitWaitLogic
  3. 3PARAMETERSSetLogic
  4. 4CODE - MESSAGE OBJECTCodeLogic
  5. 5TIPO MENSAGEM VÁLIDO?IfLogic
  6. 6IS THE PHONE NUMBER VALID?IfLogic
  7. 7REDIS - EVOLUTION MSG - GETRedisService
  8. 8MESSAGE SENT?IfLogic
  9. 9REDIS - EVOLUTION MSG - SETRedisService
  10. 10LOAD CONTACTChat WootService
  11. 11IS THERE CONTACT ON CHATWOOT?IfLogic
  12. 12EXISTING CONTACT CODESetLogic
  13. 13CREATE CONTACTChat WootService
  14. 14CONTACT - IDSetLogic
  15. 15NEW CONTACT CODESetLogic
  16. 16Get ConversationsPostgresService
  17. 17IS THERE CONVERSATION ON CHATWOOT?IfLogic
  18. 18EXISTING CONVERSATION CODESetLogic
  19. 19CREATE CONVERSATIONChat WootService
  20. 20CONVERSATION - IDSetLogic
  21. 21NEW CONVERSATION CODESetLogic
  22. 22WAS IT THE NUMBER ITSELF THAT IS CONNECTED TO EVOLUTION THAT SENT THE MESSAGE?IfLogic
  23. 23SEND OUTGOING MESSAGEChat WootService
  24. 24SEND INCOMING MESSAGEChat WootService
  25. 25SENT FILE?IfLogic
  26. 26EVOLUTION - GET FILEEvolution ApiService
  27. 27CHECK FILE TYPESwitchLogic
  28. 28BASE64CodeLogic
  29. 29SEND OUTGOING MESSAGE EXTENSION NOT ALLOWEDChat WootService
  30. 30Convert to FileConvert To FileService
  31. 31SEND CHATWOOT FILEHttp RequestService

How it's built

Starts on
An event in a connected app
Steps
31, with 8 branches, 1 loop or waits
Size
Large: read it before trusting it with anything live
Connects to
Postgres, Redis
Model
None. This is plumbing, not judgement

Questions

What does it need to run?

An n8n account, plus your own Postgres and Redis accounts. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an event in a connected app.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Take your time. At 31 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

Before you run it

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 31 steps before you point it at anything that matters.