Skip to content

Unable to return succes for feedback #325

@PauwelsYoran

Description

@PauwelsYoran

Hi,
I am trying to implement the feedback feature for our teams agents that we created in .net. (https://learn.microsoft.com/en-us/microsoftteams/platform/teams-ai-library/csharp/in-depth-guides/feedback)

We were able to catch the event by creating an agent based on Agent appplication and then triggering the invoke activity.

public class TeamsAgent : AgentApplication

OnActivity(ActivityTypes.Invoke, HandleInvoke, rank: RouteRank.Last);

The function to handle the feedback then returns a Task.completed task

protected async Task<Task> HandleInvoke(ITurnContext turnContext, ITurnState turnState, CancellationToken cancellationToken)
{
    var a = turnContext;
    await turnContext.SendActivityAsync(new Activity { Type = ActivityTypes.Typing });
    return Task.CompletedTask;
}

So the invoke works and I can process the data, but in teams user get this message:

Image

When using the teams browser the http invoke call returns the following json

{
    "errorCode": 1008,
    "message": "<BotError>Agent returned unsuccessful status code NotImplemented",
    "standardizedError": {
        "errorCode": 1008,
        "errorSubCode": 1,
        "errorDescription": "<BotError>Agent returned unsuccessful status code NotImplemented"
    }
}

How can properly close the feedback screen without the warning?

Metadata

Metadata

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