Have the agent reply
Bring the AI into the flow.
Hand over the turn to your agent to draft the response, using the tools you have given it.
With "Wait for user to finish typing" turned on, the agent waits for the number of seconds you choose (6 by default) in case the customer keeps sending messages, and replies only once to everything. This also works for photos, videos, and audios sent at the same time, even if they take time to process: the second one waits for the first to reach the agent and gets combined with it. And even if two responses end up sharing the same message, it will only reply to it once.
What you can do
- Let the agent handle a section of the conversation.
- Give it tools only for that section.
- Return to the flow once it finishes.
- Have it reply only once when the customer sends multiple messages in a row.
An example
Fixed flow, free conversation
- The flow greets and asks what they are looking for: that is fixed.
- The agent steps in and chats until it understands what they want.
- Once the customer decides, the agent triggers the payment tool.
- The flow continues with the order and shipping.
Recommendations
- Use the agent for what cannot be scripted, and the flow for what can. Scripting an entire conversation feels rigid.
Watch out for this
- If one of its tools writes to the customer, the tool speaks and the agent does not. This prevents sending two messages saying the same thing.
