Case 2. Data Plans
Last updated
Last updated
This tutorial requires a webhook setup. Add a test webhook URL http://mock-webhook.mind.ai
to your webhook settings.
1. Click Add Subject on the Scope details page.
2. Stay in the Q&A
tab.
3. Enter a Subject name.
4. Enter Query Statement which is the expected customer query as "I want to see the mobile plans."
5. Click Recognize Statement to get the Recognition Result.
6. The Recommended Statement is the statement which is semantically related to more ontologies and can generally capture more statement structures with the same intent. To use the recommended statement, just tick the checkbox saying Use Recommended Statement.
7. Click Submit.
8. Additional Query Statement to Recognize may also be added but not required. This is used in case of multiple intents being expected to trigger this subject.
9. Click Add.
Click Add Action in the Conversation panel.
Under AI Response, Click Show response.
Select the Webhook
tab.
4. Choose a webhook URL http://mock-webhook.mind.ai
to use from the dropdown and enter URL Parameter (domain path and/or query string) as tutorial/mobile-plan-list?code=200
Webhook URL (Method: GET)
BASE URL http://mock-webhook.mind.ai
**URL PARAMETER **`
tutorial/mobile-plan-list?code=200`
****
Response Body
5. **** Stay with the GET
request method.
6. Select an error message display method as Template
and select an action as Terminate
to take in case of HTTP 400. If Passthrough
is selected, the webhook response will be displayed without modification.
7. Enter an error message that will be displayed to the customer.
8. Keep the Mapping toggle on.
9. Enter a Key and JSONPath pairing for Result Mapping.
KEY plan_list
JSONPATH $.plan-list
10. Enter the template to show to the customer as a response.
11. Click Save.
12. Click Publish to publish the Subject.
13. To test the subject, click on the sandbox button on the right side of the screen and enter the query statement configured, in this case, I want to see mobile plans
.
\