4

I have been referring to docs like this and this to send a reply to a proactive message as threaded message.

But, I am only able to send each message as independent message and not as reply message.

I want to have a reply like this: enter image description here

I am pretty sure the channel allows reply, since the screenshot is from the channel itself.

My request payload : URL:https://smba.trafficmanager.net/amer/v3/conversations/{conversationId}/activities/{activityId} Method: POST

{
  "type": "message",
  "from": {
    "id": "bot-id",
    "name": "bot name"
  },
  "conversation": {
    "id": "19:channelId",
    "name":"random name"
  },
   "recipient": {
        "id": "recepientId",
        "name": "name"
    },
  "text":"I want to reply to threadid",
  "replyToId":"{activityId}"
}

This is supposed to be very simple, but I am struggling to find what I am doing wrong. Any help is appreciated.

Swati Sneha
  • 355
  • 2
  • 17

1 Answers1

4

I used the URL Like this:

https://smba.trafficmanager.net/amer/v3/conversations/{channelId;messageid={activityId}/activities

and it worked like a charm!

Dharman
  • 30,962
  • 25
  • 85
  • 135
Swati Sneha
  • 355
  • 2
  • 17
  • How did you know to use that URL? After looking at the documentation for hours, I've never seen it mentioned. Anywhere. It's super frustrating. – Anthony Jun 11 '22 at 14:34
  • https://learn.microsoft.com/en-us/previous-versions/azure/bot-service/rest-api/bot-framework-rest-connector-send-and-receive-messages?view=azure-bot-service-3.0&preserve-view=true @Anthony – druveen Jan 16 '23 at 11:52
  • @druveen I don't see an explanation of this format on the page: `{channelId;messageid={activityId}` – Anthony Jan 17 '23 at 13:14
  • @Anthony I feel there is a typo in the below URL, https://smba.trafficmanager.net/amer/v3/conversations/{channelId;messageid={activityId}/activities "To send the reply, issue this request: POST /v3/conversations/{conversationId}/activities/{activityId} " is what the below link says https://learn.microsoft.com/en-us/previous-versions/azure/bot-service/rest-api/bot-framework-rest-connector-send-and-receive-messages?view=azure-bot-service-3.0&preserve-view=true – druveen Jan 17 '23 at 17:31