Back to Blog

How to use existing data to create context for your chatbot

Many chatbots today fail to deliver valuable conversations because they lack context. Context means being aware of what’s going on around the conversation, something that humans are very good at.

Like a good salesperson or customer service representative, a good chatbot should be aware of the context to deliver a valuable experience. A chatbot should offer its users, just like a good sales manager, the right information at the right time. Or even contacting them proactively by initiating a conversation at the right time!

In this article, we will show you how you can use existing data to create context for your bot so that it will be able to deliver valuable and personal experiences.

You can use different types of existing data to create context:

  1. Page information
  2. User Input
  3. Profile information
  4. Channel information

Existing data

You can use existing data to create context from several sources. We’ve list 4 common sources:

1. Page information

Personalize chatbot context
Is your user engaging on a specific page? Use that data to create context. Just as a car salesman will tailor his approach depending on which car types you are looking at. Create context, but it might be wrong so don't forget to check it. Welcome to our features page. What would you like to know about our features?

2. User input

Personalize chatbot journey

The input of the user can be extracted for several workflows. You might want to create a ticket in your CRM, send an e-mail with the extracted data, request the status of an order or simply use the extracted data in your chatbot to personalize the experience.

Read more about extracting data in our article aboutCapturing and Extracting Data

3. Profile Information

When using messaging channels like WhatsApp or Facebook Messenger you will receive information of the user, just like when a friend calls you on your phone. You’ll probably pick up in a different way when you don’t know the user that’s calling you. Why not let your bot do the same thing?

{{}} 				//- name of the user
{{user.profile.firstName}} 	//- first name of the user
{{user.profile.lastName}} 	//- Last name of the user
{{user.profile.fullName}} 	//- first and last name combined
{{user.profile.picture}} 	//- profile picture
{{user.profile.locale}} 	//- user language
{{user.profile.gender}} 	//- user gender

Things starting to get fun when you use the available profile picture in combination with Machine Learning to detect age, gender, hair color to follow up with different flows.

Personalize chatbot experience

4. Channel related

This one is a bit different from the three above as it’s not really a data point where we extract data from but still we can use different channels to create unique customer journeys. Some channels are considered “richer” than others, meaning that they allow more types of messages.

The Web Widget and Facebook Messenger are considered as very rich while WhatsApp is a bit more limited. You can check which channel is using to deliver the richest reply possible on that channel. Read more at our articleChannel specific flows

Get StartedContact us