Getting Started with Using Metadata

Overview - Why use metadata in Chime?

One of the powerful feature sets that Chime V5 provides is the use and availability of metadata from chat sessions. All chat sessions have a set of metadata tied to them that can be used either within that chat session to empower your end users, service desk employees, and managers. In this getting started guide we hope to show you why this will be useful to learn, where you can utilize it within Chime, as well as how you can begin implementing changes to Chime V5 to tailor it to your exact business needs.

All metadata values available in Chime V5 ↗

Which features can I use metadata with?

Chime lets you use metadata to make some features more flexible. The primary features you can utilize metadata with are:

  • Adaptive Cards - You can give end users better information on how long it will take to route to a live agent, provide context on which user is sending messages, save down answers to questions into metadata, provide company branding to cards, present options for user feedback, etc…

  • Evaluate JavaScript - Send users down different routes based on their choices, add in metadata based on responses that can be used in reporting, send users to different cards based on which language they want to use etc…

  • Reports - Report on any metadata that is captured or created in Chime. If you want to make a report, using metadata will be able to achieve that.

  • Standard Replies - Create dynamic and powerful premade responses that your live agents can use and help resolve issues.

  • Add your own metadata - Using Chime V5 you can create your own metadata that can be used in reports and data collection.

For more ideas on how you can use metadata with features, take a look at our page on using custom reporting, as well as how complex chatbot workflows would utilize metadata to provide more powerful for your users.

What are the different variables I can use?

We have an ongoing list of all metadata values available in Chime V5 ↗ which would work as a companion for when you are developing adaptive cards, JavaScript pipeline items, reports, or standard replies. In addition, you are able to create your own metadata variables easily using adaptive cards which we will cover in the next section.

A snapshot of metadata variables can be found in each of the session details for chat sessions. These metadata variables update live if you are watching the chat session as a manager, and after the chat session will be as they were as the chat concluded.

How can I start to implement changes?

Metadata variables fall into different categories of when they would be useful; some are more useful during a live chat while other variables would be more useful after the fact for reporting. Additionally, if you have user input from the end user, you could create your own metadata variables.

Adaptive Cards

If you wanted to make a custom adaptive card form, you could set the id of the input to whatever you want that metadata variable to be named. Once a user submits the form, that metadata will show up as a key/value pair that you can use later in other adaptive cards, JavaScript pipeline items, reports, etc…

JavaScript as part of a chat Pipeline

If you wanted to use the metadata to set or update an existing metadata variable based on information the user has submitted. In the JavaScript pipeline item you are able to select the metadata values either using:

  • var sessionData = sessionMetaData.metadataVaraibleName;

  • var sessionData = '${metadataVaraibleName}';

From there, you could use this to check if the variable contains certain text, set another metadata value equal to something, or use the result of the metadata you received to change where the user routes in the chat session.

  • updateSessionMetaData() is useful to update any metadata you know about for the chat session.

  • sessionData.indexOf() or sessionData.includes() are useful to tell if the metadata has certain text within it.

Reporting using metadata

Once you have collected the metadata that you need, you can start to build reports based on that data.

When you are building a report, in the metric column you can add any of the default metrics that we collect, or add in any of the metadata that you have collected through the chat session.

Any chat session that has the new metadata added into it will be able to show up when the report runs and you can get at this data through the charts, result sets, exporting the report, or through our reporting API.

Any questions?

Please let us know if you have any questions about how to use metadata and our team members can help either over email or on a meeting. Best place to reach us is support@instant-tech.com