Skip to content

Issue: RelayBotSample - The bot is unable to deliver a response to the client #354

@negiAnkit40

Description

@negiAnkit40

I'm integrating a Copilot agent with a Slack app. As part of the setup, I retrieved the token endpoint for the Slack channel from my Copilot agent and used it to generate a token and initiate a conversation with the bot. The bot successfully returns responses.

However, the following line of code is throwing an error. I'm running the bot locally and making the request via Postman.

await turnContext.SendActivitiesAsync(_responseConverter.ConvertToBotSchemaActivities(botResponses).ToArray());

While debugging, I noticed that the Conversation property on ITurnContext is null. This issue appears to occur when converting bot responses from DirectLineActivity to the Activity type—during this conversion, the Conversation property is not being set.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions