User specific Proactive notification through Composer Bot

Phallini jupudi 1 Reputation point
2022-07-18T12:51:24.457+00:00

Hi Team,

We are looking for proactive notification over Composer based bot on Azure

Problem Statement: User specific Proactive notification

Scenario: After UiPath api updates the job status as success in Cosmos DB document, Azure function triggered should send a notification
to that specific user who has created the job.

Components ready:
API which creates a document in Cosmos DB from the bot composer once the job is triggered
function which triggers the proactive notification - just a single message

Kindly help us in understanding
1)how the message can be sent specifically to the user who has initiated the process
2)In order to send the name of process and status to the user, how can api/notify be parameterized

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,876 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,207 questions
{count} votes

1 answer

Sort by: Most helpful
  1. ChetanSharmamsft 1,031 Reputation points Microsoft Vendor
    2022-08-07T11:01:02.34+00:00

    Hello @phallinijupudi - In this case, you need to first capture the user details once user clicks and start your job.
    Afterwards, once the job is completed, you can sent proactive notification to that particular user.

    Reference doc
    https://learn.microsoft.com/en-us/microsoftteams/platform/bots/how-to/conversations/send-proactive-messages?tabs=dotnet

    Reference sample:
    https://github.com/OfficeDev/Microsoft-Teams-Samples/blob/main/samples/bot-proactive-messaging/csharp/coordinate-logger/Bot/CoordinateLoggerActivityHandler.cs


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.