Skip to main content
Microsoft
Copilot
Copilot
  • Home
    • Microsoft 365 Copilot
    • Download Microsoft 365 Copilot app
    • Microsoft 365 Copilot for Sales
    • Microsoft 365 Copilot for Service
    • Microsoft 365 Copilot for Finance
    • Microsoft Copilot Studio
    • Microsoft Security Copilot
    • Microsoft Copilot in Azure
    • GitHub Copilot
  • Agents
  • Customer stories
    • Get started with AI for your business
    • Copilot learning hub
    • Copilot 101
    • Microsoft AI
    • Copilot blog
  • For personal use
  • Try Copilot Chat
    • Global

      • Microsoft Security
      • Azure
      • Dynamics 365
      • Microsoft 365
      • Microsoft Teams
      • Windows 365
    • Tech & innovation
      • Microsoft Cloud
      • AI
      • Azure Space
      • Mixed reality
      • Microsoft HoloLens
      • Microsoft Viva
      • Quantum computing
      • Sustainability
    • Industries
      • Education
      • Automotive
      • Financial services
      • Government
      • Healthcare
      • Manufacturing
      • Retail
      • All industries
    • Partners
      • Find a partner
      • Become a partner
      • Partner Network
      • Azure Marketplace
      • AppSource
    • Resources
      • Blog
      • Microsoft Advertising
      • Developer Center
      • Documentation
      • Events
      • Licensing
      • Microsoft Learn
      • Microsoft Research
    • View Sitemap
  1. Home
  2. Make your Power Virtual Agents bot start the conversation using a custom canvas

Power Virtual Agents is now Copilot Studio. Learn more here.

  • Feature Releases
  • Published Apr 20, 2020
  • 5 min read

Make your Power Virtual Agents bot start the conversation using a custom canvas

Diganta Kumar
Share
  • Content type
  • Feature Releases
  • News
  • Tips and guides
  • Topic
  • Agent governance
  • Agentic AI
  • Product Integrations
Power Virtual Agents now enables you to make your bot start the conversation using a custom canvas.

One of the topmost asks from Power Virtual Agents customers is to make a bot start the conversation. Customers want their bot to greet their users before they ask any questions. For example, a bot begins a conversation by saying, “Hi, I’m Botty, a virtual agent”.

In this blog, you can learn how to do that using a custom canvas. First, you’ll learn how to deploy a custom canvas that includes arguments that trigger the greeting. By default, the custom canvas calls the default system greeting topic. You can, however, create a new topic to be used as the greeting, although you will need to divert the default system greeting topic to a new topic.

Information: Having the bot start the conversation will show up in your analytics and increase your session count. If the user of your bot doesn’t engage with the bot (for example, they load the page but don’t ask the bot anything), the session will be marked as an unengaged session. This might impact your analytics.

You can also combine the customized greeting with customization to the look and feel of the bot.

Deploy a custom canvas for your bot

To make your bot start the conversation, you’ll need to deploy a custom canvas that includes arguments that cause the default system greeting topic to be displayed when the bot loads.

  1. Create and publish a bot.
  2. In the navigation menu under Settings, select Channels.
  3. Select Mobile app.
  4. Next to Token Endpoint, select Copy.
  5. Copy-paste the HTML code below and save it as index.html.
  6. In the index.html you created, enter your Token Endpoint at the line var theURL = "<BOT TOKEN ENDPOINT>".
  7. Open index.html using a modern browser (for example, Edge) to open the bot in the custom canvas.
  8. Test the bot to ensure you are receiving responses from your bot and that it’s working correctly. If you encounter problems, make sure you’ve published your bot, and that your Token Endpoint has been inserted in the correct place. It should be after the equals sign (=) at the line var theURL, and surrounded by double quotation marks (“).

Alternately, you can copy and paste the code below into the w3schools.com HTML try it editor to see how it works (remember to add your Bot ID).




    Contoso Sample Web Chat 
    
    


    

Contoso Bot Name

Change the bot’s default greeting

The code in the index.html file causes a topic to be called automatically when the bot is loaded. By default, it calls the system greeting topic. You can also create a new topic and divert the default system greeting topic to that new topic.

In both instances, you make changes to the topic you want to call as you would normally.

We recommend you modify the system greeting topic so that you don’t have to edit the index.html code.

Modify a system topic (recommended)

  1. Select Topics in the side navigation pane.
  2. Under System Topics, select the Go to authoring canvas icon on the Greeting topic row.
  3. Edit the text inside the Message boxes. You can also add or delete additional nodes.
  4. Select Save when you’re finished editing the message.
  5. Publish your bot.
  6. You can now test your bot by going to the web page where you deployed your bot’s custom canvas. You’ll see the bot start the conversation by automatically showing the greeting topic.

Create a new user topic

Warning: Using a user topic to start a conversation will increase your billed sessions. A billed session is an interaction between a customer and a bot and represents one unit of consumption. The billed session begins when a user topic is triggered. More information: Licensing guide.

  1. Select Topics on the side navigation pane.
  2. Select New topic, and give it a name.
  3. Select Go to authoring canvas.
  4. Add the text inside the Message node.
  5. Select Save when you’ve finished editing the message.
  6. Select Topics again on the side navigation pane.
  7. Under System Topics, select the Go to authoring canvas icon on the Greeting topic row.
  8. Delete the message nodes on the Greeting topic.
  9. To automatically divert the bot to a user topic, select + to add a node, and then Go to another topic.
  10. In the flyout menu, select the user topic you created above.
  11. Select Save when you’ve finished editing the message.
  12. Publish your bot.
  13. You can now test your bot by going to the web page where you deployed your bot’s custom canvas. You’ll see the bot start the conversation by automatically showing the new topic.

You can also find additional documentation here.

We’d love to hear your feedback. Please visit our community forum at https://aka.ms/PowerVirtualAgentsForum and share your feedback.

And submit your idea requests at https://aka.ms/PowerVirtualAgentsIdeas.

Disclaimer

You may install and use the sample code included in this documentation only for use with the Microsoft Power Virtual Agents service. The sample code is licensed “as is” and is excluded from any service level agreements or support services. You bear the risk of using it. Microsoft gives no express warranties, guarantees, or conditions and excludes all implied warranties, including merchantability, fitness for a particular purpose, and non-infringement.

Diganta Kumar

Diganta Kumar

See more articles from this author

Related Posts

  • A woman sitting at a desk with a laptop
    • Tips and guides
    • Aug 18
    • 7 min read

    Simplifying agents in Copilot: A field guide 

  • A decorative image with the text "Announcing GPT-5 in Microsoft Copilot Studio" on a white rectangle background over shades of blue and abstract shapes.
    • News
    • Aug 7
    • 3 min read

    Available today: GPT-5 in Microsoft Copilot Studio 

  • Copilot Studio U I. Text reads "What's new in Copilot Studio, July 2025."
    • Monthly Updates
    • Aug 4
    • 7 min read

    What’s new in Copilot Studio: July 2025 

Try Copilot Studio

Streamline business processes across your organization by building custom agents with low-code tools and generative AI.

Try for free
Learn more
A man looking at his phone
What's new
  • Surface Pro
  • Surface Laptop
  • Surface Laptop Studio 2
  • Copilot for organizations
  • Copilot for personal use
  • AI in Windows
  • Explore Microsoft products
  • Windows 11 apps
Microsoft Store
  • Account profile
  • Download Center
  • Microsoft Store support
  • Returns
  • Order tracking
  • Certified Refurbished
  • Microsoft Store Promise
  • Flexible Payments
Education
  • Microsoft in education
  • Devices for education
  • Microsoft Teams for Education
  • Microsoft 365 Education
  • How to buy for your school
  • Educator training and development
  • Deals for students and parents
  • AI for education
Business
  • Microsoft Cloud
  • Microsoft Security
  • Dynamics 365
  • Microsoft 365
  • Microsoft Power Platform
  • Microsoft Teams
  • Microsoft 365 Copilot
  • Small Business
Developer & IT
  • Azure
  • Microsoft Developer
  • Microsoft Learn
  • Support for AI marketplace apps
  • Microsoft Tech Community
  • Azure Marketplace
  • AppSource
  • Visual Studio
Company
  • Careers
  • About Microsoft
  • Company news
  • Privacy at Microsoft
  • Investors
  • Diversity and inclusion
  • Accessibility
  • Sustainability
English (United States) Your Privacy Choices Opt-Out Icon Your Privacy Choices Consumer Health Privacy
  • Sitemap
  • Contact Microsoft
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Safety & eco
  • Recycling
  • About our ads
  • © Microsoft 2025