web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Send variables/paramet...
Copilot Studio
Answered

Send variables/parameters to chatbot before startup

(0) ShareShare
ReportReport
Posted on by 16

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

 

Categories:
I have the same question (0)
  • Monkeyman Profile Picture
    325 on at

    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-value-from-external-sources

     

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

  • rodrigonogueir4 Profile Picture
    16 on at

     I will take a look and let you know

  • Verified answer
    rodrigonogueir4 Profile Picture
    16 on at

    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

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 633

#2
Vish WR Profile Picture

Vish WR 301

#3
Haque Profile Picture

Haque 219

Last 30 days Overall leaderboard