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

Send variables/parameters to chatbot before startup

I'm creating a very simple chatbot for a React application that I have and basically I would like to improve the usability of this bot a little, because some information that I am requesting for the user to type in the chat I already have in the application where this chatbot is embedded, I would like to know if there is any way to send these variables/parameters to the chatbot.

 

This is the way to implement it, I'm doing the automatic startup by clicking on an icon in the corner of the screen and some custom visuals.

Screenshot 2022-03-30 at 10.54.35.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
rodrigonogueir4
Regular Visitor

SOLUTION

 

Between lines 88 and 91 This is how you pass variables to a power virtual agents using custom canvas bot-framework react.

 

Screenshot 2022-04-05 at 14.50.33.png

 

 

View solution in original post

3 REPLIES 3
Monkeyman
Resolver III
Resolver III

yes. There is. The variables that you want to populate, make them BOT variables inside PVA. Then there is a tick box that says something like “External sources can set values” 

 

More info here https://docs.microsoft.com/en-us/power-virtual-agents/authoring-variables-bot#set-a-bot-variables-va...

 

Please accept this solution if I have solved this for you. 

 I will take a look and let you know

rodrigonogueir4
Regular Visitor

SOLUTION

 

Between lines 88 and 91 This is how you pass variables to a power virtual agents using custom canvas bot-framework react.

 

Screenshot 2022-04-05 at 14.50.33.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.

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 (6,265)