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

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

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
Power Virtual Agents News & Announcements

Power Virtual Agents News & Announcements

Keep up to date with current events and community announcements in the Power Virtual Agents community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Virtual Agents Community Blog

Power Virtual Agents Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,464)