Azure Bot web chat shows no response

Ignacio Gonzalez Betegon 5 Reputation points
2024-05-06T12:27:19.8733333+00:00

I have created a bot which is a proxy over an LLM in AWS. It should only redirect messages to my API gateway via POST. When I test in the web chat, the message is received by the API gateway and the response is sent, but I don't see the response in the chat. This is an example of json payload response:
{

"type": "message",

"content":"Hello From your bot",

"text": "Hello! This is a message from your bot.",

"senderDisplayName":"Acs-Dev-Bot",

"metadata":'{"text":"random text","key1":"value1""}',

"messageType": "Text"

}  

What could be the issue? How do I start debugging this?

Thanks,
Best regards,
Ignacio

Azure AI Bot Service
Azure AI Bot Service
An Azure service that provides an integrated environment for bot development.
776 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Ignacio Gonzalez Betegon 5 Reputation points
    2024-05-08T09:55:00.08+00:00

    Hi, I solved my issues. For me and everbody else, your backend need to interact with the bot in a special way using activities api's and the app authentication. The botcore SDK (as you can see in the echo-project o cookiecutters) facilitate the handling of activities and app authentication. If you want to undestand more about the authentication see https://learn.microsoft.com/en-us/azure/bot-service/rest-api/bot-framework-rest-connector-authentication?view=azure-bot-service-4.0&tabs=singletenant If you want to understand more about activities api https://learn.microsoft.com/en-us/azure/bot-service/bot-builder-basics?view=azure-bot-service-4.0

    1 person found this answer helpful.
    0 comments No comments