Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Copilot Studio - General
Unanswered

Access variable from LiveChatBootstrapper.js in Power Virtual Agent chatbot

(0) ShareShare
ReportReport
Posted on by

Hello

 

We have a requirement to add bot in a website and find out logged in user's name and say -Hello "user".

To achieve that we need to access variable from LiveChatBootstrapper.js or any external html page in the bot but unable to do so.

 

Code snippet we used to integrate the bot in Website as below:

-------------------------------------

<script id="Microsoft_Omnichannel_LCWidget" src="https://oc-cdn-public-ind.azureedge.net/livechatwidget/scripts/LiveChatBootstrapper.js" data-app-id="19ce74e2-c8cb-4ad7-8a6c-62ae7c3b8bc7" data-lcw-version="prod" data-org-id="e1981937-779d-4a01-aa87-0d0ab11db012" data-org-url="https://unqe1981937779d4a01aa870d0ab11db-crm8.omnichannelengagementhub.com"
data-color-override = "green"
"></script>

---------------------------------------

 

For example, we want to access the variable "data-color-override" in our chatbot and text will come as - Hello "green" in once user clicks on chatbot.

 

Any suggestion/idea would highly appreciable.

 

Thanks

Kushal

Categories:

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

🌸 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…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Copilot Studio - General

#1
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 25

#1
Pablo Roldan Profile Picture

Pablo Roldan 25

#3
stampcoin Profile Picture

stampcoin 10

Overall leaderboard