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

Community site session details

Session Id :
Copilot Studio - Publish & Channel Management
Unanswered

Publishing a CoPilot Studio Agent to Slack – Authentication & Sign-In Card Issues

(1) ShareShare
ReportReport
Posted on by 4

Hi everyone,

I’ve built a CoPilot Studio agent and would like to publish it via Slack. The goal is for my colleagues to chat with the agent in Slack just like with another user (Direct Messages).

To start, I created a Slack app and connected it to the agent through an Azure Logic App (since Slack required a “challenge” that the agent could not handle directly). Now I am stuck at the authentication step: the agent requires authentication, but in Slack I only get the response “please sign in to continue” — without any sign-in card.

Here are my questions:

  1. Can I continue down this path, or is there a better way to connect Slack with the agent?

  2. If I can continue: How do I solve the authentication issue in general, what authentication do i choose, and how can I get the sign-in card to show up in Slack?

  3. If I manage to authenticate users, is it then possible to deliver personalized content to them since I already know them?

Important context: The agent uses internal SharePoint pages as its knowledge source. It is only intended for internal usage.

Thanks a lot for any advice or best practices!

Categories:
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    51,416 Super User 2025 Season 2 on at
    Publishing a CoPilot Studio Agent to Slack – Authentication & Sign-In Card Issues
    Hi 
     
    It's definitely an issue without using Manual Authentication. 
     
    Here are some direct ways and parts of this are from AI, but some is just their standard documentation.
     
    Slack does not support OAuth sign-in cards, so users see “Please sign in to continue” without a way to authenticate.
    Solution:

    Implement manual authentication using a custom OAuth flow and token exchange.
    Steps:
    Send a custom sign-in link to the user in Slack.
    After sign-in, capture the token and send a signin/tokenExchange event to Copilot Studio.
    Ensure your relay service (Logic App or bot) handles this event and passes the token correctly.
     
    Authentication Options:
    Use Azure AD v2 with a registered app.
    Configure Copilot Studio to require sign-in.
    Handle token exchange manually via your relay service.

    Once users are authenticated:
    You can access user properties like User.Email, User.DisplayName, and User.Id.
    Use these to deliver personalized content from internal SharePoint sources.
    Ensure the agent is configured to use authenticated context when querying knowledge sources.

    Best Practices
    Use manual authentication with fallback messaging.
    Test token exchange thoroughly in a sandbox.
    Consider using Direct Line API for more control over message flow.
    Use Power Automate or Azure Logic Apps to bridge Slack and Copilot Studio securely.
  • NW-18091216-0 Profile Picture
    4 on at
    Publishing a CoPilot Studio Agent to Slack – Authentication & Sign-In Card Issues

    Thank you for the input — I’ll definitely keep it in mind for future cases with a similar setup!

    In my current project, I found a workaround by switching from SharePoint to Confluence as the knowledge source. This way, authentication via Microsoft was no longer required, and I was able to authenticate manually. As a result, users no longer need to sign in to interact with the agent.

     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Tom Macfarlan – Community Spotlight

We are honored to recognize Tom Macfarlan as our Community Spotlight for October…

Leaderboard > Copilot Studio

Last 30 days Overall leaderboard

Featured topics