Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Copilot Studio - General
Answered

Send variables/parameters to chatbot before startup

(0) ShareShare
ReportReport
Posted on by 14

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:
  • Verified answer
    rodrigonogueir4 Profile Picture
    14 on at
    Re: Send variables/parameters to chatbot before startup

    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

     

     

  • rodrigonogueir4 Profile Picture
    14 on at
    Re: Send variables/parameters to chatbot before startup

     I will take a look and let you know

  • Monkeyman Profile Picture
    325 on at
    Re: Send variables/parameters to chatbot before startup

    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. 

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Copilot Studio - General

#1
Pablo Roldan Profile Picture

Pablo Roldan 33

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 25

#3
stampcoin Profile Picture

stampcoin 10

Overall leaderboard