[Python] Azure Bot Skill in Copilot doesn't receive event activities in omnichannel live chat...

Discussão em 'Python' iniciado por Stack, Janeiro 24, 2025.

  1. Stack

    Stack Membro Participativo

    I have a fairly simple copilot bot with a python-fastapi azure bot service in azure added as a skill doing passthrough of messages. When I use the send_activities method on the turn_context object, messages come through fine on Omnichannel's live chat widget that they provide for a chat stream.

    However, when I try to send an event, such as:

    transfer_event = {
    "type": "event",
    "name": "initiateHandoff",
    "from": {
    "id": "1234",
    "name": "me"
    }
    }

    response = await turn_context.send_activities([transfer_event_activity])


    The event never makes it to copilot to trigger a topic. There are no logged errors or anything.

    In the demo website, it uses directline channel and I can use the conversationId to send events. The conversation ids in the live chat widget and sms, however, do not work as they look like they're coming from ACS.

    If anyone has any ideas, it would be greatly appreciated.

    Continue reading...

Compartilhe esta Página