Receive message

The next step is to receive conversations from the service. To do that, make a GET call to the conversation API, as shown:

-- connect to directline.botframework.com --
GET directline.botframework.com/api/conversations/[Conversation Id]/messages HTTP/1.1
Authorization: Bearer [Token]

-- response from directline.botframework.com --
HTTP/1.1 200 OK
{
"messages": [{
"conversation": "[Conversation Id]",
"id": "[Conversation Id]|0000",
"text": "hello",
"from": "Manish"
}, {
"conversation": "[Conversation Id]",
"id": "[Conversation Id]|0001",
"text": "Nice to see you, user1!",
"from": "bot1"
}],
"watermark": "[watermark code]"
}

As you can see, it's quite a simple API call to build a conversation bot. In addition to these, you can use the TextToSpeech class of HolograpicToolkit to build in-voice conversational capability within the holographic bot.

Refer to the Microsoft Bot Framework documentation at https://docs.botframework.com/ for more details.

 

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.117.99.152