Skip to main content

Notifications

Copilot Studio - General
Answered

Send variables/parameters to chatbot before startup

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

 

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

     I will take a look and let you know

  • Monkeyman Profile Picture
    Monkeyman 212 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. 

Helpful resources

Quick Links

Exciting News for Copilot Studio Communi…

Get ready to experience a whole new level of engagement with the Copilot Studio…

Celebrating the May Super User of the…

LaurensM is an exceptional contributor to the Power Platform Community…

Check out the Copilot Studio Cookbook…

We are excited to announce our new Copilot Cookbook Gallery in the Community…

Leaderboard

#1
renatoromao Profile Picture

renatoromao 6,459

#2
Pstork1 Profile Picture

Pstork1 1,997

#3
Expiscornovus Profile Picture

Expiscornovus 1,708

Leaderboard