Answer
Last updated
Last updated
This is where the virtual agent's voice and personality will be displayed. An answer cell is the virtual agent reaction to a query.
You can also make your answer evaluable, which means your answer will appear with a thumbs up, thumbs down evaluation for users so they like or dislike the product or service.
To create a Answer cell, go to the Answer repository and click on “Create Answer”. The possibilities and answer templates for each channel will be explained later on.
There are some good practices when creating an answer:
Build answers that works in all channels as fallbacks to channel-specific answers.
Always double-check to which channel you are creating your answer to. Not only channels have different specifications but also users behave differently in each channel.
Answer Cells are compatible with the Dynamic Content feature, and may use them to dynamically customize content.
Transactional Answer
Answer by Channel
If you are a developer, access this page for more information.
Not expected answers are fallback answers delivered when the virtual agent doesn’t understand the user’s question. They are added automatically when the a interaction is demanded to handle content that are not part of your virtual agent's knowledge base.
You can add a counter for how many times the response will be delivered abd edit their content like regular Answer cells.
By editing your Not Expected answers, you can better guide users through the flow. For example, instead of just saying “Sorry, I don’t understand what you're saying”, the virtual agent can offer options, such as “Please, write ‘menu’, if you want to see the menu” or use buttons leading them to the options of said virtual agent.
When you create a Not Expected answer, you can select how many times an answer will be delivered to a user before the flow is terminated for that user.
For example, if you want it to be delivered twice and the user inserts an unexpected input for a third time, the flow ends.
The counter indicates how many times this answer will be delivered. If it marks 1x (one time), when the user says something unexpected, the Not Expected answer will be delivered one time only. If the user says something unexpected again, the system will end that flow and search another flow that better matches what the user is saying.
You can program the counter from 1 up to 100 times.
Before delivering a Not Expected answer (as they are added automatically by the system), you can set your virtual agent to deliver other options even if the input is still not predicted in the knowledge base.
For example: in a Help Desk virtual agent, imagine you have built a flow to help users solve problems with the email provider. After they followed the conversation to open a ticket, you finally ask them: “Has your issue been resolved after doing these steps?” with two possible answers to disambiguate using entities: yes or no.
But the user might give an answer different from the two options available, like “I’m not sure” or "I don't know...". If you don’t want the Not Expected answer to be delivered just yet and want to offer a third option as an alternative flow instead (directing them to an Advanced Support flow, for example), follow these steps:
Hover the Input cell to see the plus icon “+” to add cell
Click the sibling option
Go to the second tab for Advanced cells and click Rule
Insert in the value field the condition “true”, validate the code and click save.
You can now continue your dialogue and create a whole new sequence after the newly added Rule cell, or simply add a Jump cell to another flow.
Using the Help Desk example, you would just have to add a Jump cell leading to the Advanced Support flow:
Important: The order of the cells matters when it comes to validating what eva delivers first. If the Rule cell with the "true" condition is placed above other Rule cell, this second cell will never be delivered, because the first cell is always "true". In this case, you must reverse the order in which you add the Rule cells.
Learn more about Rule cells
eva also allows you to build answers that are independent of flows: the Frequently Asked Questions (FAQ) answers.
To build a FAQ-flow, just create an Intent and an Answer and give them the same name.
Important:
Intents and Answers don’t have to be connected directly to make your flow work.
If an intents and an answer cell have the same name, they will be paired.
It's a great way to link user questions to specific answers. For example: registering an Intent cell called "Recycling", with utterances such as "How do I discard a package?", etc... And also an Answer cell with the same name, "Recycling". In this Cell, you should write the specific solution/information to the user who wants to recycle a package.
Answer Cells can use Dynamic Content and contexts. You can use this feature to customize your answers with data pertained yo your each individual conversation. For instance, the same virtual agent can greet different users by their names, “Hi, Ana”, “Hi, Andrew”, based on previously acquired data, rather than greeting them with a static "Hi, user" prompt.
Refer to this feature's page for an in-detail explanation.
A Transactional Answer acts as a communication tool that interacts with external systems to perform a specific action. It is very useful to provide information that are in servers outside eva.
For example, a virtual agent for a Bank delivers each user information about their balance. eva doesn't have access to it, hence a Transactional Answer is needed to seek and deliver the information that are in external sources.
To use this option, insert a webhook (an URL that connects two applications). This is an external API called by eva that must be created following the rules in the "For Technicians" manual. The Header and Value fields can be left blank or a developer can insert a customized header and value.
After you have inserted the webhook, click "next" to view the regular answer creation modal, but with the added option to edit the error message that eva delivers automatically.
Sometimes those integrations don’t work and eva delivers a fallback message to the user automatically. You can edit this message by clicking on “add error message”.
If you are a developer, access this page for more information about tables
Different channels mean different users. A gif might be appropriate in a conversation with young people on Facebook, but it can be rude to an adult victim of fraud trying to solve this problem in a bank app chat.
You can create answers that work for multiple channels. For each channel, eva also offers templates so you can build answers according to the models. You can build your answer template and insert as a JSON in the custom option. Its template, aesthetics and functionalities will have to follow all the rules of the selected channel.
Most templates allow quick answers, buttons that trigger a user response. Some templates allow buttons so you have the option to keep the user in the flow or redirect him to an external URL.
These templates also allow technical text, a code snippet that you can add to complement the answer with specific elements. If you want to insert a calendar, for example, so your user can pick a date, you can use JSON.
The standard channel selection is “ALL”. It's the default text template that works on all channels. This answer is delivered when there isn’t a specific channel tied to an answer.
If you assigned a specific channel to an answer, eva will deliver that answer in the channel assigned. If that fails, eva will deliver a generic answer.
Important: Depending on the channel, some templates won't be available. While Facebook Messenger allows you to use text, images, audio, video, and files, and to add buttons, quick replies, etc., WhatsApp only allows text.
It is a good practice to carefully study the channels you are running your virtual agent on when building answers, even (and especially) with custom models.
Adding buttons to an answer
The text answer is the standard answer available in the channel ALL. It is the default template and works for all channels (even the ones that doesn’t support templates).
Type an answer and add options, if you want. You can add as many options as you need, as long as they follow the maximum character limit.
To add buttons, options or quick replies to an answer, click on “Add button” or “Add quick reply” below the text box.
Text Answer modal
When you click on the text box, you'll see two fields: one to insert a call to action for the button and another field to insert a value for this button.
This value can be an Intent example, a Synonym Entity value or an expression predicted by a pattern entity.
For example, you can name a button “order tomato soup” and insert “tomatosoup” as a value, and then add an intent with an example named “tomatosoup”. You can also add an entity with “tomatosoup” as a value.
After you insert the value, add a cell for each button, option or quick reply.
In some templates, if you add buttons, two options will appear to you: direct to URL and continue on flow.
If you click “Continue on flow”, there will be a field to insert a value. This value has to be tied to an Intent or Entity (image on the left). If you click “Direct to URL”, there will be a field to paste a URL. When users click on a button, eva will direct them to the URL inserted here (image on the right).
There is a limit of three buttons so the card doesn't exceed the chat window height. This limit doesn’t exist for quick replies.
Tie a Button to an Intent
To tie a button to an Intent, just put the title of your Intent in the value field of the buttons.
With this feature, you will be able to jump directly to any intention, even outside the flow in which the Answer Cell was built.
Tie a Button to an Entity
To tie a button to an entity, after you build an answer with buttons, create an entity where each button is a value. Then, add the same entity repeatedly, in the same validation level, but select only one value per button.
Example: for an answer with tomato soup, pea soup and garlic soup as options, you will have to create a synonym entity with values and synonyms for tomato, garlic and pea soup. Then, add the same entity repeatedly in the same validation level, but with different values selected.
Important:
Before an Entity, you must always precede an Input cell
You can also create a button using a value from a Pattern Entity. To do so, insert in the value field something predicted by the RegEx in the pattern entity that will come later in the flow.
Example: [email protected] for an email pattern entity
There is another text template that appears when you specify a channel. Depending on the chosen channel, you can add buttons by enabling the quick reply option. You can also insert a technical text if the selected channel supports it.
You can create answers with just images. Just insert the image URL. Supported formats: JPG, PNG, GIF.
You can add buttons by enabling the quick reply option. You can also insert a technical text if the selected channel supports it.
Tip: This feature also works for adding GIF to an answer
You can create a sequence of up to 11 cards with an image, title, subtitle and buttons.
This template is very useful if you want to present more than one option to your user. You can show 11 possibilities in one answer. A practical example is a virtual agent that sells tickets to a game. You can show in a single answer various categories of seats. It saves time for you, that doesn’t have to build up to 11 intents, and for the user, that doesn’t have to ask 11 times.
You can add buttons by enabling the quick reply option. You can also insert a technical text, a code snippet that complement an answer.
You can also use audios in the answers. Insert a URL on the requested field. The supported formats are: MP3, WAV, OGG.
It's posible to add buttons by enabling the quick reply option. You can also insert a technical text, a code snippet that complement an answer.
You can create a video answer. Just insert the video URL on the required field. Supported formats: MP4.
You can add buttons by enabling the quick reply option. You can also insert a technical text, a code snippet that complement an answer.
You can create an answer that is just a downloadable file. Just insert the file URL on the required field. You can name your document.
You can add buttons by enabling the quick reply option. You can also insert a technical text, a code snippet that complement an answer.
In telephony, eva offers three answer templates: text, audio, custom.
These three templates will have a particular difference from the other channels: they don't have quick reply and buttons.
Learn how to build a voice agent in eva
When selecting the text option, the template shows the "Option" field for disambiguation. The written content inserted here will be converted into speech (text-to-speech) in the languages supported by the NLP you're using. See list of languages.
When selecting the audio option, you’ll see the fields “Audio URL” and “Add technical text”, as in other channels with the audio template.
Supported formats: MP3, WAV, OGG, FLAC.
If you have a JSON or XML file, you can create a custom template. It is important that the developers of your channel understand how this custom template is created for them to show other types of answers for the user.
Before adding a custom template, study the channels you are using and check if it is supported.
Important: Through FAQs, you do not need to build a simple flow, with an Intent and its Answer. Simply by registering an Answer that has exactly the same name as an Intent, the NLP will automatically identify the user interaction and lead to the correct answer.