Hello, I need technical help reviewing a workflow in n8n.
I am building a WhatsApp customer registration/update workflow using n8n + Google Sheets + Z-API.
The workflow starts in WF001 and then continues in WF002.
The important design decision is that I DO NOT want to use an “ETAPA” column in Google Sheets.
Instead, WF002 should identify where the customer is in the conversation by analyzing the existing data in the Google Sheets row.
The conversation has these steps:
- Customer accepts the registration/update
- Customer provides their shoe size
- Customer answers M04, which is the preferred product category
- Customer answers M05, which is another question in the flow
- The workflow processes the final response and sends the remaining messages
In WF002, there is a Switch/Rules node called:
“Identificar momento da conversa”
It currently has rules that try to identify:
NUMERACAO
M04
M05
INTERESSE
RESPOSTA_M05
The rules use the existing fields in Google Sheets, such as:
- Numeração
- Categoria Preferida
- Última resposta
- other existing customer data
We previously tried several modifications to this workflow, but the tests did not work reliably.
Before making any more changes, I want to understand the correct n8n architecture.
My questions are:
-
Is it correct to use a Rules/Switch node to determine the current conversation step based on existing Google Sheets fields, without creating an ETAPA column?
-
Can a workflow reliably identify whether the incoming WhatsApp message is the customer’s answer to question 1, question 2, question 3, etc., using only the existing Google Sheets data?
-
Are there any problems with using expressions that reference another node, such as:
$(‘Preparar Resposta Recebida’).item.json
inside Switch/Rules conditions? -
We currently have several Wait nodes:
- 10 seconds
- 60 seconds after M04
- 60 seconds after M05
- 5 seconds between M06 and M07
- 5 seconds between M07 and M08
Some of these Wait nodes are intended only to create a delay between messages, while the 60-second Wait nodes are intended to give the customer time to send another response before the workflow searches for it.
Could these Wait nodes cause problems with webhook executions, concurrent executions, or the workflow losing/mixing customer context?
-
What would be the recommended n8n architecture for this type of WhatsApp conversation, where each customer can respond at different times and every new WhatsApp message starts a new webhook execution?
-
Is there a better way to identify the conversation state without using an ETAPA column?
I can provide screenshots of the workflow and the configuration of the Rules, Wait nodes, Google Sheets nodes and Z-API HTTP Request nodes.
I would like to understand the correct architecture before changing the workflow again, because we have already made several changes without getting reliable results.