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

 

Categories:
  • 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 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. 

Helpful resources

Quick Links

Welcome to the Power Platform…

We are thrilled to unveil the newly-launched Power Platform Communities!…

Getting Started…

Welcome to the Power Platform Community! We appreciate your visit…

Welcome to the new Power Platform Community!…

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

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 138,016

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,075

Leaderboard