Module Assessment | Yext Hitchhikers Platform
Background
Now that you know more about instruction types and how they work, it’s time to set up some more complex goals!
You get feedback from users that they want to be able to find more information about your business and job openings through the bot on your website. You have previously used this information from Content in two Search experiences: Brand Search and Job Search. You can now utilize the information in these Search experiences in Chat.
To do this, we will add two new goals that each contain a Search instruction type (one for each Search experience)!
Your Challenge
Step 1: Add a Search Goal Linked to Brand Search Experience
Click the + Add Goal button.
Select No Template and click Continue.
Fill out the goal settings and click Continue once finished:
- Goal:
Answer Brand Questions
- Goal ID:
answer-brand-questions
- Goal:
Add example phrases. Click Save and Configure Bot once finished.
- Do you offer delivery?
- Reset password
- How many locations do you have?
- What menu items do you have?
- How do I place an order?
Click + Add Instruction and create a search instruction with the inputs below. This lets Chat know to utilize Search to find the information the user is looking for.
- Instruction:
Use Search to answer questions about your brand.
- Action: Search
- Search Experience: Brand Search
- Search Experience Version: Production
- Permitted Verticals: All Verticals
- Instruction:
Click + Add Instruction and create a reply Instruction with the inputs below. This allows your bot to use the information found in the Search instruction to respond back to the user.
- Instruction:
Answer the user's question with the data provided.
- Action: Reply
- Mode: Direct Answer
- Fallback Mode: Suggest Alternatives
- Instruction:
Click Save.
Refresh your bot preview and run the query: “How do I reset my password?”. You should see a response from the bot with directions on how to reset you password. If so, you have configured this goal correctly!
Step 2: Add a Search Goal Linked to Job Search Experience
Navigate back to the Goals screen and click the + Add Goal button.
Select No Template and click Continue.
Fill out the goal settings and click Continue once finished:
- Goal:
Answer Job Questions
- Goal ID:
answer-job-questions
- Goal:
Add example phrases. Click Save and Configure Bot once finished.
- Full-time jobs
- How many jobs do you offer
- Marketing Jobs
- Do you offer internships
- Job openings
Click + Add Instruction and create a collect instruction with the inputs below. This will prompt the user to input the general location the user is looking for a job in. Click Update once finished.
- Instruction:
Ask the user what state they are looking for a job in
- Action: Collect
- Field Type: String
- Field ID:
state
- Description:
The state the user is located in or is looking for a job in
- Instruction:
Click + Add Instruction and create a search instruction with the inputs below. This lets Chat know to utilize the collected location information in Search to find relevant jobs for the user. You will use the Job Search experience that you previously set up in the Search final challenge. Click Update once finished.
- Instruction:
Use [[collectedData.state]] to search for jobs in the users area
- Action: Search
- Search Experience: Job Search
- Search Experience Version: Production
- Permitted Verticals: All Verticals
- Instruction:
Click + Add Instruction and create a reply instruction with the inputs below. This allows your bot to use the information found in the Search instruction to respond back to the user. Click Update once finished.
- Instruction:
Answer the user's question with the data provided. When listing the job openings, format them as “Job Title | City, State”. At the end of the message, let the user know that if they want to apply, they can send their resume to jobs@brand.com along with the title of the role they are applying for
- Action: Reply
- Mode: Direct Answer
- Fallback Mode: Suggest Alternatives
- Instruction:
Click Save.
Refresh the bot preview and run the query: “Do you have any chef openings?”. When prompted by the bot, input “Texas” as your preferred location. Confirm that the bot gives you some options and tells you how you can apply. Note that the bot may take a while to fully refresh and respond.