Skip to content

Enhanced slack support#785

Draft
tracyboehrer wants to merge 24 commits intomainfrom
users/tracyboehrer/slack
Draft

Enhanced slack support#785
tracyboehrer wants to merge 24 commits intomainfrom
users/tracyboehrer/slack

Conversation

@tracyboehrer
Copy link
Copy Markdown
Member

@tracyboehrer tracyboehrer commented Apr 17, 2026

  • Support direct-to-slack responses, allowing full range of slack API requests/content that ABS does not support
  • Implemented as a SlackAgentExtension at the moment
  • Provides flat models that match slack property naming (snake_case) for easing the use of slack docs vs the models in code.
  • Provides path based property retrieval

Example:

    private async Task OnSlackMessageAsync(ITurnContext turnContext, ITurnState turnState, CancellationToken cancellationToken)
    {
        var channelData = turnContext.Activity.GetChannelData<SlackChannelData>();

        var message = new 
        { 
            channel = channelData.EventEnvelope?.Get<string>("event.channel"), 
            text = $"You said: {turnContext.Activity.Text}" 
        };

        await Slack.CallAsync(turnContext, "chat.postMessage", message, channelData.ApiToken, cancellationToken);
    }

@github-actions github-actions Bot added ML: Samples Tags changes to samples ML: Core Tags changes to core libraries ML: Tests Tags changes to tests labels Apr 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ML: Core Tags changes to core libraries ML: Samples Tags changes to samples ML: Tests Tags changes to tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant