Bot Playbooks are an absolutely essential way to engage with your site visitors, discover their needs, connect them to your team, and help you book meetings. This improved visual builder was made to help you reduce the time it takes to build out flows, make it more visually accessible, and put skills at the forefront!
Billing Plan: Bot Playbooks are available on all paid Drift plans.
In this article, we'll cover:
Targeting your playbook is where you'll select who actually sees the bot when they visit your site. To read further on targeting options for playbooks, see our help doc here.
The bot should be your go-to tool to qualify leads before human interactions. Before you connect the site visitor to a human or book a meeting with them, you’ll want to discover their needs and get to know them a little bit. Remember to keep your questions short and simple!
Adding a question
1. Insert a question node

Click the + icon and select Question.
2. Edit the copy of the question

Within the question tab, edit the copy with your question! You'll be able to preview it on the right side of the window.
3. Save and close

Click Save and close to save your question! Looking to add custom responses using buttons and/or keyword groups? Check out the Responses section below!
Responses help guide the conversation and are a great way to qualify or disqualify prospects. You can utilize all responses, custom buttons, or keyword groups!
All Responses
By default, the question node will add an All responses option for Visitor responses. All responses refers to freely typed responses. These can be great when you’re asking questions that you don’t need a unique, specific answer to. For example, if you’re getting to know a site visitor, you might use All responses when asking “Let’s get to know each other - what’s your name?”

Buttons
Adding a Custom Button Response
Button responses are a great way to guide your site visitors by giving them specified options to choose from.
-
Add a new button.

From the response tab, click on the + button under the Buttons section.
-
Edit the copy of the button.

Within the Button text, edit the copy of your button. You can preview the button on the right side of the screen.
-
Apply triggered actions

You can trigger specific actions when a site visitor responds with your button. The actions include:
-
Mark as CQL (Conversation Qualified Lead): Qualify or disqualify leads using CQL scores. More about CQLs in this article!
-
Set lead stage: Tag the site visitor with a specific lead stage to know what point of the process they’re in! Check out this article about lead stages.
-
Apply contact attribute: Save a static value to a Drift or custom attribute for the contact record. This is attribute mapping on a specific response-level. See Mapping Responses to a Contact Attribute below.
- Tag conversation: Apply a tag to the conversation which you can use for filtering your live chat inbox. More about conversations tags here!
4. Add a bot response

Check the box for Bot response and edit the copy of the bot response.
5. Add more responses
If you want to add more button responses, click on All responses and you’ll be brought back to the responses tab. Repeat the above steps to add more.
You can also add a new button response right from the builder without clicking into the question node.

Click the + icon within Visitor responses and click Add button. This will automatically bring you to the window to add a new button.
6. Reorder the button responses

Want to switch up the order of your responses? Hover over the 3 horizontal lines next to the button and drag and drop it in the position you want.
7. Limit the responses to button only

You might not want to give site visitors the option to freely type a response to your question. Within the Response tab, scroll down to Advanced options and choose With buttons only from the How can visitors respond to this question field. Note that this will automatically remove the option for keyword groups and the default All responses.
8. Save and close

Once you’re done creating your responses, click Save and close!
Dropdown
Dropdown Responses are a great option for when you have too many potential responses to use buttons for. If you're prompting a site visitor to select their state, you don't necessarily want fifty buttons showing in the widget. This is where the dropdown feature comes in handy. In order to start using dropdown responses, select the "Dropdown" option while setting up your playbook responses.

Use the "Add Response" or "Quick add list" buttons to add new responses to the dropdown. We currently have two quick lists, one for US states and the other for countries so you don't have to go through and manually add all of those options to your dropdown. You can also click and drag each response to reorder how it will appear in the dropdown menu.
Just like with button responses, you have the ability to click into each individual response and configure any triggered actions you want to occur when a specific response is selected.

Keyword Groups
In addition to button responses, keyword groups allow your site visitor to freely type their own responses and help you identify what they’re typing so you can take action and direct the conversation. Note that in order to use keyword groups you need to allow visitors to respond With buttons or text for the How can visitors respond to this question field.

Adding a new keyword group
1. Select New keyword group

Within the Responses tab, click the + button under Keyword groups and choose New keyword group.
2. Choose how often the keyword group will be used

Choose how often you’ll be using this keyword group. Choosing one-time only will allow you to use this keyword group for this specific question and won’t save it. If you want to re-use this keyword group in other questions and/or playbooks, choose "More than once, in one or more playbooks." This will prompt you to name the keyword group. You can access all saved keyword groups in Settings > App settings > Bot > Saved keyword groups.
3. Choose the operator to recognize the keywords or phrases

You have three options for keyword recognition and we define them as follows:
- Contains: Any part of the keyword is included in the typed response (e.g. the keyword is "art," but the visitor types in "start")
- Equals: The typed response exactly matches the keyword (e.g. the visitor types in "start" and the keyword is "start")
- Similar to: We use natural language processing to match the site visitor's intent (e.g. the keyword is "start" and the site visitor types in "let's get started")
4. Enter the keyword phrases

Type in the keywords and phrases that you want to include in your keyword group! Use Tab or a comma (,) to add another keyword or phrase. Too many words and phrases to type out? No worries - you can copy and paste them from a spreadsheet into the textbox!
5. Apply triggered actions

You can trigger specific actions when a site visitor responds with something in your keyword group. The actions include:
- Mark as CQL (Conversation Qualified Lead): Qualify or disqualify leads using CQL scores. More about CQLs in this article!
- Set lead stage: Tag the site visitor with a specific lead stage to know what point of the process they’re in! Check out this article about lead stages.
- Apply contact attribute: Save a static value to a Drift or custom attribute for the contact record. This is attribute mapping on a specific response-level. See Mapping Responses to a Contact Attribute below.
- Tag conversation: Apply a tag to the conversation which you can use for filtering your live chat inbox. More about conversations tags here!
2. Add a bot response
Check the box for Bot response and edit the copy of the bot response.
3. Add more keyword groups

If you want to add more keyword groups, click on All responses and you’ll be brought back to the responses tab. Repeat the above steps to add more.
You can also add a new or existing keyword group right from the builder without clicking into the question node.
Click the + icon within Visitor responses and click New keyword group (or Saved keyword group). This will automatically bring you to the Responses tab within the question node.
Note that when you’re using multiple keyword groups, visitors will only be able to trigger one. The priority of keywords groups will be based on their order within the question. For example, if you have a keyword group for “testing” and another for “hello,” when the site visitor types “Hello, I’m testing,” it will trigger the testing keyword group based on order.
1. Save and close
Once you’re done creating and adding your keyword groups, click Save and close!
Adding a saved keyword group
1.Select saved keyword group

Within the Responses tab, click the + button under Keyword groups and choose Saved keyword group.
1. Edit saved keyword group

You can choose to edit the saved keyword group which will affect all areas using this keyword group or you can create a new keyword group using the same keywords and phrases.
2. Apply triggered actions

You can trigger specific actions when a site visitor responds with something in your keyword group. The actions include:
- Mark as CQL (Conversation Qualified Lead): Qualify or disqualify leads using CQL scores. More about CQLs in this article!
- Set lead stage: Tag the site visitor with a specific lead stage to know what point of the process they’re in! Check out this article about lead stages.
- Apply contact attribute: Save a static value to a Drift or custom attribute for the contact record. This is attribute mapping on a specific response-level. See Mapping Responses to a Contact Attribute below.
- Tag conversation: Apply a tag to the conversation which you can use for filtering your live chat inbox. More about conversations tags here!
2. Add a bot response

Check the box for Bot response and edit the copy of the bot response.
1. Save and close

Once you’re done creating and adding your keyword groups, click Save and close!
Mapping Responses to an Attribute
Mapping responses to contact attributes, Drift or custom ones, allows you to save information about a site visitor within their contact record. You can then use these attributes in other areas of Drift such as playbook targeting or syncing to a CRM like Salesforce.
There are two ways to map attributes from question responses: general response-level and specific response-level.
General Response-Level Attribute Mapping
In general response-level attribute mapping, whatever value the site visitor responds with, whether it’s a button or a freely-typed response, will be mapped over to the specified attribute.
1. Enable attribute mapping at the general response-level

Within the Responses tab of the question node, check the box for ‘Save all visitor responses to an attribute on their contact record.
1. Choose the attribute to map to

All Drift and custom attributes will populate in the drop-down and you can choose which piece of information these responses correspond to! Don’t see an attribute you want to map to? You can create a custom attribute which is outlined in our Custom Contact Attributes article.
1. Save and close

Now that you’ve chosen which attribute to map to, click Save and close!
Specific Response-Level Attribute Mapping
For specific response-level attribute mapping, you can map over a static value to the contact attribute based on the site visitor’s response (button, keyword group, or freely-typed).
1. Choose which response to map

Within the Responses tab, click on the specific response (button, keyword group, or all responses) that you want to map.
1. Enable attribute mapping for the specific response-level

Within the Triggered actions section, check the box for ‘Apply contact attribute.’
1.Choose the attribute to map and assign a static value

All Drift and custom attributes will populate in the drop-down and you can choose which one to map. Don’t see an attribute you want to map to? You can create a custom attribute which is outlined in this article. Once you choose the attribute, assign the static value - note that it needs to be the same type as the attribute (e.g. text, numeric, etc.).
1. Save and close

Once you’re done mapping the attribute, click Save and close!
You now have the ability to create different branching paths based on where you want the conversation to go. This makes it much easier to visualize the conversation's flow!
To add a new path, click the + icon next to a set of responses after your question. You'll be able to build this new path our with questions, skills, and messages!

Each time you add a new path, you'll see a new conversation endpoint labeled added with "End of Bot Flow" and a "conversation status" box. Click on "Conversation status" to change the end behavior. You'll see three available options.

We recommend Auto-Close Conversation, But Allow Site Visitors to Chat Back In as several of our integrations, such as Salesforce and Marketo, sync on conversation close, and it also helps keep your inbox tidy! Each of your paths can have its own end of conversation status.

Reordering your paths
To easily move a question or skill to a new position, simply click and hold to drag and drop the node into its desired position.

Note: Drag and drop is only supported for nodes with a single output path.
If you add a button response to the wrong path, you can easily drag it into the correct position. You'll see that an empty path state is created but the subsequent nodes in that path are retained.

While your draft will save, you won't be able to Publish changes to a Playbook with an empty path and you'll see a red error appear. Click into the error get information on where the error is! Resolving the error will allow you to publish your changes!
With the new builder, you can now branch based on different conditions! Rather than having different Playbooks for online/offline status, you can account for both within one Playbook! You can create conditional branches based on any of the same targeting conditions you set within Audience.
Creating a Conditional Branch
To create a conditional branch, click the + icon, select Add skill, then select Conditional Skill. You'll see a Conditional Skill node appear in your flow with outputs below it!

Clicking on the node will bring you to where you can add conditions! Click on the pre-filled Condition 1 to edit! You'll see Add a group where you can add any and all conditions you'd like. Then, name the condition by clicking on the condition's name and then click Save!
To add subsequent conditions, go back into the conditional branching node, click the + icon, and enter your desired conditions. Name and Save your condition set and you'll see it added in the Outputs section.
Building out Paths from the Conditional Branch
Your conditions will appear in the Outputs node, which closely resembles the way button responses are formatted.

To create paths based on these branches, you can drag each condition onto the + icon or click the + icon for each condition you want to branch off of.

You can then continue to build your paths as usual!
Mapping Question Responses to an Attribute
You can still easily map the responses to a question to an attribute. Simply click the gear icon above a question, check the attribute mapping box, and select the attribute you'd like to populate with the answer to that question!
We strongly recommend using this feature alongside 'buttons only' questions, to eliminate mapping values that aren't useful. For example, someone typing in "no" to your "What industry are you in?" question.
Your bot can do a lot of the identifying, qualifying and routing for you with skills! We've put skills front and center and as a best practice we recommend using those individual skills over goals.
To add a skill, click the + icon on any branching line, hover over "Add skill" and you'll see a list of the available skills pop out. Select one and it will be added to the end of this branching line!
Check out how we added an email capture skill to this path!

To add a new goal or add an existing goal, hover over "Conversation status" and click the gear icon. There have been no changes to the options with goal setup or editing.

You have a few options when choosing how to target your playbooks. We will go over all of the following settings:
- Audience
- Frequency
- Settings

Audience
Under "Targeting," you can set who sees your Playbook, where it would or would not display, and how often!
There will be the option of choosing what types of site visitors you want the playbook sent to, as well as which groups you want to specifically exclude. All of your segments (accounts, dynamic, and static) will also appear as options for you to send/don't send the playbook to.
We define "engaged" contacts as someone who have scheduled a meeting in the past 21 days or have one scheduled for sometime in the next 21 days. People who have had a "recent" conversation chatted in through the widget on your site in the last 7 days.
If you select to exclude people based on these two smart filters, if a contact becomes engaged they will not receive further messaging from that playbook; they will be unenrolled.
You can find a full list of all available audience conditions and how to set them up in this doc .
Frequency
Within "Audience" you'll see three options to choose how often you would like to show this Playbook to visitors.
On every page load
- This will fire the Playbook every time the page is refreshed or reloaded
Until they interact, once per session (30 minutes)
- This means that the playbook will deliver every time there is 30 minutes of inactivity or if the user opens a new browser, even if they interact with it
This is the default option and we recommend this frequency as a best practice.
Until they interact, then hide it
- This means that if the user interacts with your playbook (e.g. they dismiss or click on the greeting) then it will disappear and not fire for that contact again
If a site visitor comes onto the page where your Playbook is running and does not interact with it, then it will always continue to show every time. Once there is interaction, then your frequency settings will kick in.
Here, you can toggle on whether or not you'd like to use Bot Conversation Ratings and adjust the copy at the Playbook level. For more on Conversation Ratings, check out this doc!