- Postpaid Plan Inquiries
- Personality: Polite and Professional
Create an agent on the DialogFlow console and give it your desired name. sample_agent
was used for this example
Short Introductory to the DialogFlow console:
1: Intents Tab
Where you would build, delete and modify your intents
2: Entities Tab
Where you would build, delete and modify your entities
3: Fulfillment Tab
Where you would setup your fulfillment and webhooks
4: Integrations Tab
Where you would setup your agent's integration
5: Tab Indicator
Tells what tab you're currently at
6: Agent Tester
Text Field are where you can test your agent (Intent invocations, etc.)
There is a preloaded agent response provided by google under Default Welcome Intent
, change it to the desired response when users greets the agent. In the example, we used:
Hi, Welcome to Sample Telecom! How may I help?
After changing the response, save it and use the agent tester
to see the changes
- Create a new intent for when the user is Asking the Plans. In the example we named it:
plans
- Add the training phrases or the user utterances. Or what the user must say to trigger the intent
- Add the agent's response when this trigger is intent. For the example, we used:
We are offering multiple plans to fit your budget and needs. We have Sample Plan 499 and Sample Plan 999. Please let me know what plan you would like to know more.
From this example, we have seen that there are two plans of choice given by the agent. And instead of creating two different sets of intents, we could just make an entity for it to know what Postpaid Plan
our user is talking about.
- On the
Entities
tab, clickCreate Entity
- Set the Entity Name to
postpaid_plans
- Set the first property/parameter to
499
and set its synonyms - Set the second property/parameter to
999
and set its synonyms - Save the entity created
- Verify if the entity was created by going back to the
Entities
tab - Add our response
An intent for specific plans will be created to cater the third scenario on where the user specifically says what Plan he or she would want.
-
The intent name for this example is:
specific_plan
-
We will use our
postpaid_plans
entity here. -
Add the training phrases or invocations mentioning the entity
-
Check for the parameters under
Actions and parameters
to verify whether the correct entity was detected for the current intent. -
For the response:
You chose Plan $postpaid_plans. Would you like to proceed?
- The
$postpaid_plans
is the variable carrying the parameter of the entity we have used. - (OPTIONAL) Test it on the agent tester
You would want to have a separate response when a user said yes
on the previous question of our intent, or when our user, said no
.
- Hover to the
specific_plan
intent - Select on the
Add follow-up inten
- Select the pre-made sub-intent by DialoFlow which is
Yes
- Do the steps again for
No
- Select the pre-made sub-intent by DialoFlow which is
- Check by hovering on the
specific_plan
intent again and clicking the drop down arrow
- Select
specific_plan - yes
sub intent - Check for the Contexts, you will see
specific_plan-followup
on the input contexts - On the conversational design flow, this would be the last intent so we would en our conversation here. Toggle enable the
Set this intent as the end of conversation
- Add the response the agent will give back to the user:
Great! Here is your receipt for plan #specific_plan-followup.postpaid_plans : 072419. Please proceed to your nearest Sample Telecom store and present it for further processing. Thank you and have a nice day!