Creating deals from chats with workflows
Visitors who are ready to buy often say so in chat. A workflow can turn those chats into deals in your pipeline, linked to the chat, so that your sales team follows up while the lead is warm.
There are three ways to do it. Pick the one that fits who answers your chats.
There are three ways to do it. Pick the one that fits who answers your chats.
Choose your way
| A. Your team tags the chat | B. AI reviews each chat after it ends | C. Your AI agent creates the deal during the chat | |
|---|---|---|---|
| Use it when | Your agents answer chats and can spot a lead | Your team answers chats, and you want AI to judge each one | An AI agent answers your chats |
| Who decides it is a lead | The agent who tags the chat lead | AI, from rules that you write | Your AI agent, once it has the lead's name, email address and need |
| What you get | A deal linked to the chat, a follow-up task and an email to sales | A deal with a one-line AI summary. Warm leads get a follow-up task. | A deal with the name, email address, company, need, budget and timeline that the agent collected |
| Start with | Your own workflow | Chat to qualified deal template | Qualified lead hand-off template |
| AI credits | None | One AI step for each chat, also for chats that are not leads | Only when the agent creates a deal |
Turn on only one way for the same chats. Each workflow decides on its own, so two workflows can each create a deal for the same lead.
Before you start
You need:
- The property admin role. Only property admins can create and manage workflows.
- A pipeline for your deals, with a stage for new leads.
- For way B or C: AI Assist set up and AI credits available. Way C also needs at least one AI agent. See Getting started with AI Assist.
- For the email to sales in way A: an email inbox connected to your Omnichannel Inbox. The email is sent from that inbox.
- Optional: a Slack incoming webhook for your sales channel. See Sending Slack alerts with workflows.
A. Your team tags the chat
An agent adds the tag lead to a chat. The workflow then adds a deal linked to that chat, creates a follow-up task and emails your sales team.
The workflow has five parts:
The workflow has five parts:
| Part | What to set |
|---|---|
| Trigger | Chat tagged, under Conversations |
| Step 1: Condition | Chat · Tags contains lead. If not, the workflow ends. |
| Step 2: Create card (category Pipeline) | Pipeline, Stage, a Card title such as Lead from chat, and Link ticket or conversation set to Conversation ID to link the deal to the chat. Optional: Assignee, Priority and Lead source. |
| Step 3: Create activity (category Activities) | Activity type and an Activity title such as Follow up on chat lead. Optional: Assignee. |
| Step 4: Send email (category Communication) | Your sales team's address, a subject and a short message. |
Why a Condition and not a trigger filter: the filter on the Chat tagged trigger cannot pick one tag, so the Condition checks for lead instead.
Watch for repeat tags: the workflow runs each time an agent adds a tag. If a chat already has lead and gets another tag, the workflow creates a second deal.
Why the title is plain text: the visitor's name and email address work only in conditions and Slack messages, so they cannot go in the deal. The link to the chat takes your team to all the details.
For a click-by-click build of this workflow, see Creating your first workflow, step by step.
Watch for repeat tags: the workflow runs each time an agent adds a tag. If a chat already has lead and gets another tag, the workflow creates a second deal.
Why the title is plain text: the visitor's name and email address work only in conditions and Slack messages, so they cannot go in the deal. The link to the chat takes your team to all the details.
For a click-by-click build of this workflow, see Creating your first workflow, step by step.
B. AI reviews each chat after it ends
About 3 minutes after the visitor leaves, AI reads the chat and rates the buying intent:
- Hot visitors become a deal, and your team gets a Slack alert.
- Warm visitors get a follow-up task.
- Cold chats are skipped.
Set it up
- Go to Automations > Workflows.
- Click Browse templates (or Start from a template if you have no workflows yet).
- Click Chat to qualified deal.
- Complete the Finish setting up this template checklist: Pipeline, Pipeline stage, Task type and Slack channel. If you do not use Slack, click the trash icon of the Send Slack notification step.
- Optional: to give leads an owner, select an Assignee in Create card (under IF Hot) and in Create activity (under ELSE IF Warm).
Tell the AI what a good lead is
- Click AI step.
- In Instruction, change the rules for INTENT=HOT and INTENT=WARM. Keep the codes, because the Condition step checks for them.
You qualify sales leads. The chat transcript is in nodes.fetch_chat.output and the visitor details are in record. Start your reply with INTENT=HOT when the visitor asks about pricing, a demo, budget or a purchase timeline, INTENT=WARM when they are interested but not ready, or INTENT=COLD otherwise. Then write " | " and one sentence on who they are and what they need. Keep the whole reply under 250 characters.
Write your rules the same way, with the signs that matter in your business. See Fit it to your business below.

Save, turn on and test
- Click Create.
- Click the Settings tab.
- Turn on Enabled.
- Click Save.
- Open your website as a visitor and start a chat that sounds like a hot lead, for example "How much is your premium plan? We want to buy this month."
- Close the website tab.
- Wait about 3 minutes, then open the Runs tab.
- Click the new run to see the AI's rating and which branch it took.
C. Your AI agent creates the deal during the chat
Your AI agent talks to the visitor. Once it knows their name, email address and need, it starts the workflow, which creates the deal and alerts sales.
What the agent collects
| Detail | Required |
|---|---|
| Name | Yes |
| Email address | Yes |
| What the lead needs | Yes |
| Company name | No |
| Budget, if the visitor mentions it | No |
| Purchase timeline, if the visitor mentions it | No |
Set it up
- Go to Automations > Workflows.
- Click Browse templates (or Start from a template if you have no workflows yet).
- Click Qualified lead hand-off.
- In the Finish setting up this template checklist, select the Pipeline and Pipeline stage for new leads.
- In the checklist, paste your Slack webhook URL in Slack channel and click Apply. If you do not use Slack, click the trash icon of the Send Slack notification step.
- Optional: to give each lead an owner, click the Create card step and select an Assignee.
- Click Create.
- Click the Settings tab.
- Turn on Enabled.
- Click Save.
- Go to Automations > Agents and open your agent.
- Click Tools, then the Workflows tab.
- Make sure that the switch next to the workflow is on.
Test it
- Open the chat preview of your agent.
- Act as a buyer, for example: "Hi, we need a quote for 3 locations. My name is Sam Lee, sam@yourcompany.com. We want to start next month."
- Open the Runs tab of the workflow. The new run shows Agent test as the source.
- Open your pipeline. The new deal has the title Company - Name, high priority and AI agent as the lead source. Its description has the need, budget, timeline and email address.
Do you need other details, for example a move-in date? The template's inputs are fixed. Make your own workflow with the AI agent trigger, add your own inputs, then add a Create card step that uses them. See Letting your AI agent run workflows.
Fit it to your business
For way A, tell your agents when a chat counts as a lead. For way B, put these signs in the AI step's instruction. For way C, your agent's knowledge and instructions decide what it asks before it creates the deal.
| Business | Hot when the visitor… | Warm when the visitor… |
|---|---|---|
| Online store | asks about bulk prices or a large order | asks about one product or stock |
| Agency or professional services | asks for a quote or gives a budget and a start date | asks what services you offer |
| Home and trade services | asks for a quote for a job at an address | asks what services you offer |
| Clinic, dentist or salon | wants to book a treatment or asks about prices | asks what a treatment involves |
| Hotel, restaurant or tour operator | gives dates and group size | asks about destinations or rooms |
| Software or IT services | asks for pricing, a demo or a quote, or gives a timeline | compares options or asks general questions |
| School or training | asks how to enroll or about fees and start dates | asks about course content |
| Real estate | asks to view a property or gives a budget and an area | asks about areas or the buying process |
| Manufacturer or wholesaler | asks for a quote with quantities | asks about products or minimum orders |
Tips for way B:
- Be specific. "Gives a budget and a move-in date" works better than "is serious".
- Tell the AI what is cold, for example "existing customers who need support".
- After a week, open some runs and check the ratings. Change the instruction if you need to.
Other ways to get leads into your pipeline
- Website forms: a Webhook trigger can create a deal from each form. Your form must sign each request, so you usually need a developer. See Choosing what triggers a workflow.
- Another tool for your leads: you can send the same details to Notion or ClickUp. See Adding leads to Notion with workflows and Creating ClickUp tasks with workflows.
Limits and good to know
- One deal per agent conversation: in the Qualified lead hand-off template, Run at most once per conversation is on. If the agent tries again in the same chat, the workflow does not create a second deal.
- That setting works only inside one workflow. If you turn on two ways, for example B and C, a chat where the agent created a deal can get a second deal from B when the chat ends.
Related guides
Have a question we haven't covered or need support?
- Chat with us (live chat is available 24/7)
- Visit our Feedback page
- Schedule a call with us
