Microsoft Power Virtual Agents Chatbots for the Metaverse

Connecting Microsoft Power Virtual Agents Chatbot to Hyperspace Avatar Bots

Create your Microsoft Power Virtual Agents Chatbot

Publish your Microsoft Power Virtual Agents Chatbot

  1. Choose publish on the right hand menu
  2. Click the Publish button

Click the Go to channels link

Choose the Custom website tile

Copy the embed code to your clipboard by clicking the Copy button

Eg.

<!DOCTYPE html><html><body><iframe src="https://web.powerva.microsoft.com/environments/Default-b4f1d0ef-b449-4a22-9185-43ce17b54e29/bots/new_bot_a6c0eb932f9a4e7bbcd3cc3ec53d64bc/webchat" frameborder="0" style="width: 100%; height: 100%;"></iframe></body></html>

Extract the URL from the embed code you copied.

Eg. https://web.powerva.microsoft.com/environments/Default-b4f1d0ef-b449-4a22-9185-43ce17b54e29/bots/new_bot_a6c0eb932f9a4e7bbcd3cc3ec53d64bc/webchat

In your metaverse space

  1. Add an avatar bot using the Pencil+ toolbar icon
  2. Select Add bot from the menu

Choose a bot from your library

Click the chat bubble icon to edit the bot actions

Click the More button

Choose Custom action

  1. Set the custom Action name to displayIframe
  2. Add an 2 Extra parameter using the plus + button
  3. Add the url parameter and paste the iframe src from your Chatbot here
  4. Add the isPersistent parameter and set it to true so chat discussions don’t ended when dismissing the chat popup
  5. Click Save action
  6. Click Save

Stop editing and click on the bot to start the conversation.

How useful was this article?

Click on a star to rate it!

We are sorry that this article was not useful for you!

Let us improve this article!

Tell us how we can improve this article?