Mission 1: Configure Scripted Agent to answer basic questions
🚨 Important Lab Dependency
This mission requires configuration created in the following missions:
- NO DEPENDENCY
Mission Details
- Your mission is to create a new Scripted AI Agent from the template and configure basic Scripted AI Agent functionalities by adding intents and responses.
Build
Task 1. Creating a AI Agent using a Template
-
Download the Scripted Agent.

-
Login in to Webex Control Hub by using your Admin profile wxcclabs+admin_IDYour_Attendee_ID@gmail.com.
-
Go to Contact Center from the left side navigation panel, and under Quick Links, click on Webex AI Agent.
-
Click on Import agent to create a new AI Agent by importing preconfigured template. Click on Upload button, locate and select the ScriptedAIAgent.json you downloaded at the beginning of the mission.
- Name your Agent as Your_Attendee_ID_Scripted_AI_Agent and click Import.
- Make the bot live by clicking on Save Changes and then Publish button on top right.
-
Click on the Preview button on the top right side to test the bot. Try the bot flow by typing What are the store hours?. You will notice the following response:
Sorry, I was unable to understand your query accurately.
-
The initial response can be customized, and we also need to configure intents and responses to enable the Scripted AI Agent to answer questions about store hours.
Task 2. Update the initial greeting
-
As soon as the interaction reaches the Scripted AI Agent, the system initiates the Welcome response. To change the initial greeting, go to Script ⮕ Responses then open the Welcome response and update the response text there. Change the text to: Hi, my name is Blossom, the virtual assistant. I can help you with tracking your order or providing the store's business hours.
Do it for both Web and Voice channels. After the change, Save and Publish the Scripted AI agent.
-
Click on the Preview button on the top right side to test the bot. Check if the initial greeting was changed.

Task 3. Configure Scripted AI agent to answer questions about store hours.
Good to Know: Understanding the Scripted AI Agent Flow.
Once a customer asks a question, the AI engine and Natural Language Understanding (NLU) service tries to match it to an intent based on the training phrases. The intent is then configured with a response. After the customer receives the response, they can ask another question, and the same process applies. The AI engine and NLU match the customer’s query to an intent, which is configured with a response. Additionally, fulfillment can also be configured as part of the response. This is the basic flow concept of the Scripted AI Agent.

- While on the Script configuration page, switch to Intents tab and click on the Create Intent button located in the top right corner.
-
Add a new intent by providing the intent name as store_hours and include the following two utterances:
What are the store hours?
What is the business hours for this store? -
Click on the Generate button to utilize Generative AI for creating additional training phrases.
-
Enter a description such as Generate intents store business hours Set the Number of Variants to 10, which will determine the number of new phrases to be generated. Click Generate.
Make a note of newly created Utterances.
-
Now, we need to configure a response that would be related to this intent. Scroll down to Response and click Select a response drop down menu and click on Create new.

-
Name the response as store_hours. Update Variant 1 text to The store hours are from 9 am to 5 pm. Please let me know if you have any other questions..

-
Add one more Variant and provide the text: The store is open from 9 am to 5 pm. Is there anything else I can do for you?. Then click on Create.

-
Click on Manage selected response to add Voice Channel. Click on "+" next to Default (web) and select Voice.

-
Configure Voice Channel with the same Variants and click on Save.
The store is open from 9 am to 5 pm. Is there anything else I can do for you?
The store hours are from 9 am to 5 pm. Please let me know if you have any other questions. -
After we added the response to our intent, we can complete the intent configuration. Click on Add on the right bottom corner. Save changes and Publish the Scripted AI Agent. Add publishing comment if required.

-
Click on the Preview button on the top right side to test the bot. Try the bot flow by typing What are the store hours?

Congratulations, you have officially completed this mission! 🎉🎉





