web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / How to enable the web ...
Copilot Studio
Suggested Answer

How to enable the web app channel

(2) ShareShare
ReportReport
Posted on by Microsoft Employee
Hello, I'm trying to call my copilot studio agent from an internal home-grown html-based web app that I created using GitHub Copilot, however, authentication fails because the web app channel is disabled. The agent was built in a personal development environment.  Is there a way to enable the web app channel or an alternative method to integrate the agent with a personal app?
I have the same question (0)
  • Suggested answer
    11manish Profile Picture
    2,467 on at
    Yes — the issue is not with your HTML app. The limitation comes from the type of environment where the Microsoft Copilot Studio agent was created.
     
    In a personal developer/trial environment, the Web app (Custom website) channel is often unavailable or restricted. Because of that:
    • Direct Line authentication cannot be generated properly
    • External embedding fails
    • Custom HTML applications cannot authenticate against the agent
    So this behavior is expected in many personal/dev tenants.
     
    best solution is to move the agent to a Sandbox environment with Dataverse enabled and proper Copilot Studio licensing.
  • Suggested answer
    Valantis Profile Picture
    5,578 on at
     
    The authentication failure when embedding in a custom web app is most likely caused by the authentication settings, not the environment type.
     
    Microsoft docs confirm: to use the Embed code for the web app in Copilot Studio, set your security authentication options to No authentication. Go to Settings > Security > Authentication and select No authentication to make it publicly available.
     
    If you need authentication (for an internal app), the correct approach is:

    1. Go to Channels > Mobile app in Copilot Studio
    2. Copy the Token Endpoint
    3. In your HTML app, make a GET request to that token endpoint to get a Direct Line token
    4. Use that token to authenticate the webchat control
     
    Also check: Settings > Security > Web channel security. If Require secured access is turned on, your HTML app needs to pass a Direct Line secret or token with every request. The secret is visible in the Custom website channel settings.
     
    The personal development environment limitation 11manish mentioned is real but only applies to Teams-only licenses which can't generate secrets for secure access. If you have a standard Copilot Studio license the web channel should work.
     
     

     

    Best regards,

    Valantis

     

    ✅ If this helped solve your issue, please Accept as Solution so others can find it quickly.

    ❤️ If it didn’t fully solve it but was still useful, please click “Yes” on “Was this reply helpful?” or leave a Like :).

    🏷️ For follow-ups  @Valantis.

    📝 https://valantisond365.com/

    💼 LinkedIn

    ▶️ YouTube

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Vish WR Profile Picture

Vish WR 238

#1
Valantis Profile Picture

Valantis 238

#3
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 212 Super User 2026 Season 1

Last 30 days Overall leaderboard