Creating your first workflow, step by step
In this guide, we'll build a workflow that turns sales chats into deals. When an agent tags a chat lead, the workflow adds a deal to your pipeline, creates a follow-up task and emails your sales team. Your agents tag the chat, and the rest happens by itself.
New to Workflows? Getting started with Workflows explains how a workflow works.
What we'll build:
New to Workflows? Getting started with Workflows explains how a workflow works.
What we'll build:
- Trigger: Chat tagged, so the workflow starts each time an agent tags a chat.
- Condition: checks that the tags include lead. Other tags end the run.
- Create card: adds the deal to your pipeline, linked to the chat.
- Create activity: creates a follow-up task for your sales team.
- Send email: tells your sales team that a new lead is waiting.
Before you start
- You must be a property admin. Only admins can create and manage workflows.
- You need a pipeline for your deals. The deal goes into a stage that you choose.
- To send the email, you need a connected email inbox. The email is sent from that inbox. If you have none, leave out step 6.
Step 1: Create a workflow
- Go to Automations > Workflows.
- Click Create workflow.

Step 2: Start the workflow when a chat is tagged
The trigger decides when the workflow starts. For every trigger and its options, see Choosing what triggers a workflow.
1. Click Choose a trigger.
2. Click Conversations.
1. Click Choose a trigger.
2. Click Conversations.

3. Click Chat tagged.

The trigger now shows under When any of. The workflow starts each time an agent adds a tag to a chat. A tag on the contact does not start it.
You can't pick a tag in the trigger itself. Its filter offers only Conversation ID, Event and Occurred at. So the next step checks the tag.
You can't pick a tag in the trigger itself. Its filter offers only Conversation ID, Event and Occurred at. So the next step checks the tag.
Step 3: Continue only for the lead tag
A Condition step checks your data and decides which steps run next. For all step types, see Building workflow steps: actions, conditions, waits and AI steps.
- Under the trigger, in Add your first step, click Condition.
- In the IF branch, in Select a field, select Chat · Tags.
- In the operator list, select contains.
- In the value box, type lead.

In the outline, the Condition step now has an IF branch and an ELSE branch. You add the actions under IF. Leave ELSE empty, so that a chat with other tags ends the run there.
Step 4: Add the deal to your pipeline
- In the outline, under IF, click Add step.
- Click Action.
- In Category, select Pipeline.
- In Action, select Create card.
- In Pipeline, select your sales pipeline.
- In Stage, select the stage for new leads.
- In Card title, type New lead from chat.
- In Link ticket or conversation, select Conversation ID.

The link puts the chat on the deal, so your sales team can read what the customer asked. The other fields, such as Priority, Value and Assignee, are optional.
Tip: Above each text field is a list. Keep Enter a custom value to type your own text, or select a data field to fill in the value for you, such as a detail from the chat. See Using runtime data in workflows.
Tip: Above each text field is a list. Keep Enter a custom value to type your own text, or select a data field to fill in the value for you, such as a detail from the chat. See Using runtime data in workflows.
Step 5: Create the follow-up task
- Below the Create card step, click Add step.
- Click Action.
- In Category, select Activities.
- In Action, select Create activity.
- In Activity type, select Task.
- In Activity title, type Follow up on new lead.
- In Priority, select High.
- In Assignee, select the person who follows up. This is optional.

Step 6: Email your sales team
- Below the Create activity step, click Add step.
- Click Action.
- In Category, select Communication.
- In Action, select Send email.
- In Inbox, select the inbox that sends the email.
- In To (email addresses), type your sales team's address, for example sales@yourcompany.com. Separate more than one address with commas.
- In Subject, type New lead from chat.
- In Message, type A chat was tagged lead. The deal and a follow-up task are in your pipeline.
Step 7: Name and save the workflow
- Click the Settings tab.
- In Name, type Chat leads to pipeline.
- In Description, type a short description. Your team sees it on the Workflows page.
- Keep Email property admins when a run fails selected, so that you hear about failed runs.
- Click Create.

The workflow is saved, and the Runs tab appears. The workflow is still Disabled, so it does not run yet.
Step 8: Turn the workflow on
- In the Settings tab, turn on Enabled.
- Click Save.
Step 9: Test the workflow
The surest test is a real chat. Every step of the run is real, so use a chat of your own, not a customer's.
If the run failed, the step trace shows which step stopped and why. See Testing, monitoring and troubleshooting workflow runs.
- Start a chat with your own website, for example in a private browser window.
- In your dashboard, add the tag lead to that chat.
- Go back to the workflow and click the Runs tab.
- Click the new run to see its status and each step.
If the run failed, the step trace shows which step stopped and why. See Testing, monitoring and troubleshooting workflow runs.
Good to know
- The workflow runs again each time an agent adds a tag to the chat. If a chat already has lead and an agent adds another tag, the workflow creates a second deal and task.
- For other ways to turn chats into deals, for example with AI that decides which chats are leads, see Creating deals from chats with workflows.
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
