cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
fedejousset
Regular Visitor

Add trigger phrases in bulk

Hello there,

 

Is there a way of adding trigger phrases in bulk? I've tried using separators as ";" or "," but it just doesn't work:

 

fedejousset_0-1624293359209.png

 

We have around 20 bots with a very specific topic that has approximately 100 trigger phrases, the whole idea of doing this manually in each bot is simply soul-destroying.

 

Thank you.

Regards

1 ACCEPTED SOLUTION

Accepted Solutions
Diganta
PVA
PVA

If you are comfortable updating JSON, you can bulk add trigger phrases to a topic using the following steps,

  1. Go to https://make.powerapps.com/.
  2. Select Data > Tables (on the left navigation panel).
  3. Select Default dropdown (top right) to select All.
  4. Search Chatbot to see Chatbot and Chatbot subcomponent.
  5. Select Chatbot subcomponent and select the Data tab, which will list all bots' topics in that environment.
  6. Find the topic you want to add the trigger phrases.
  7. Select the topic and select Edit record (top menu), opening another browser tab with the dynamics.com site.
  8. Copy Obi Data JSON content on a text pad of your choice and add your trigger phrases under "triggerQueries" (see JSON sample below). NOTE: Do not update anything else.
  9. Copy the JSON content from the text pad to the Obi Data JSON property in the dynamics site.
  10. Select Save on the dynamic.com site.
  11. Go to the PVA web app bot topic to see the updated trigger phrases.

NOTE: The above steps are for bots in your development environment only.

 

{
"intents": [
{
"systemIntentTypes": [
"ConversationStart",
"Greeting"
],
"intentType": "System",
"triggerQueries": [
"Good afternoon",
"Good morning",
"Hello",
"Hi virtual agent"
],
"dialogId":​​

 

 

 

 

View solution in original post

2 REPLIES 2
Diganta
PVA
PVA

If you are comfortable updating JSON, you can bulk add trigger phrases to a topic using the following steps,

  1. Go to https://make.powerapps.com/.
  2. Select Data > Tables (on the left navigation panel).
  3. Select Default dropdown (top right) to select All.
  4. Search Chatbot to see Chatbot and Chatbot subcomponent.
  5. Select Chatbot subcomponent and select the Data tab, which will list all bots' topics in that environment.
  6. Find the topic you want to add the trigger phrases.
  7. Select the topic and select Edit record (top menu), opening another browser tab with the dynamics.com site.
  8. Copy Obi Data JSON content on a text pad of your choice and add your trigger phrases under "triggerQueries" (see JSON sample below). NOTE: Do not update anything else.
  9. Copy the JSON content from the text pad to the Obi Data JSON property in the dynamics site.
  10. Select Save on the dynamic.com site.
  11. Go to the PVA web app bot topic to see the updated trigger phrases.

NOTE: The above steps are for bots in your development environment only.

 

{
"intents": [
{
"systemIntentTypes": [
"ConversationStart",
"Greeting"
],
"intentType": "System",
"triggerQueries": [
"Good afternoon",
"Good morning",
"Hello",
"Hi virtual agent"
],
"dialogId":​​

 

 

 

 

fedejousset
Regular Visitor

Hi @Diganta ,

 

Thanks for that, it was really helpful 🙂

 

The only difference from your solution is that we updated the JSON on the Content field as the Obi Data you mentioned was empty:

 

fedejousset_1-1624897072522.png

Helpful resources

Announcements
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a free PVA chatbot creation workshop

Register for a free PVA chatbot creation workshop

Learn how to respond rapidly to your customers and employees at scale, using intelligent conversational chatbots.

Users online (1,546)