🔍 Branch Overview and Goal
This branch details the initial branch of the AI bot. The primary goal is to handle the very first message or a reply from a user. The workflow catches the message, checks if it's already assigned to a human, determines if the user is new to the bot, and if so, assigns the conversation to the AI and triggers the first-reply generation process. This ensures new, unassigned chats get an immediate, helpful, and automated response.
📊 Key Input Data for This Branch:
- An incoming message from a user in Intercom. This can be a brand new conversation or a reply.
📈 Key Output Data from This Branch:
- A structured, helpful first response generated by an AI Agent, ready to be sent back to the user.
- The Intercom conversation is officially assigned to the bot's user account.
- A new conversation thread is created and stored in a database if the user is new.
🧩 Step-by-Step Breakdown
Step 1.1: Receiving and Standardizing the Incoming Message
This is the entry point. The workflow listens for any new user activity in Intercom and consolidates the essential data.
➡️ Nodes & Logic: Two Intercom triggers listen for messages, and a Set Variables node merges their data.
🔧 Nodes 1 & 2: Two intercom Integrations: New Conversation Instant and New Reply
- 🎯 Purpose: To activate the automation scenario. Node 1 (New Conversation (Instant)) and Node 2 (New Reply) listen for user interactions in Intercom, such as a user starting a new conversation or replying to an existing one.
- 📥 Input: A payload from Intercom containing all details about the message event.
<aside>
📤
Output: The full data packet from the Intercom integrations.
</aside>
🔧 Node 3: Set Variables
- 🎯 Purpose: To extract and standardize the most critical pieces of information from the incoming messages, regardless of which trigger (new message or reply) started the workflow.