🔍 Branch Overview and Goal

This branch is activated when a user, who has already received a first reply from the bot, sends a follow-up message. The primary goal is to maintain a contextual conversation, provide further assistance, and intelligently determine the next step: either resolve the issue and close the chat, or escalate it to a human agent. This branch has an advanced AI agent with a richer set of rules and tools.


📊 Key Input Data for This Phase:

📈 Key Output Data from This Phase:


🧩 Step-by-Step Breakdown

Step 2.1: Identifying a Returning User

This entire branch is predicated on the system recognizing that this is not the user's first message to the bot.

➡️ Triggering Gateway (after Node 5): The branch starts here.

Step 2.2: Preparing the Context for the AI

Before invoking the AI, the workflow gathers all the necessary information to ensure the agent has full context of the ongoing conversation.

➡️ Nodes & Logic: A Set Variables node is used to consolidate the user's new message with their existing session ID.

🔧 Node 21: Set Variables  - Store the User Reply

<aside> 📤

Output: Two variables: question (the new prompt) and session_id (the existing conversation context).

</aside>

Step 2.3: Engaging the Advanced Conversational AI Agent