Set Up Adaptive Card Notifications Via Help Desk Workflows

Notify Users When A Chat Session Is Resolved

Our enterprise chat platform includes chat FAQ lookup, Chat Q&A, integration with ChatGPT, and routing to service desk agents.

In this guide, you'll learn how to set up a workflow that automatically sends an adaptive card to a guest user after an agent marks a session as resolved. This pattern can use the chat workflow engine to monitor any chat session values and send information to the employee based on any updates to the metadata - in this case, when a service desk agents marks that as resolved using the agent UI.

Follow the steps below to create and configure this workflow in your Chime environment.

Step 1: Create a Workflow

  1. Navigate to the Chime Advanced > Workflows page via the Admin menu.
  2. Click the Create Workflow button in the top right corner.
Create a background workflow task to monitor the data in all active chat sessions

Create a background workflow task to monitor the data in all active chat sessions

When the agent marks the chat session as resolved, the workflow engine will send the employee an adaptive card with the updated status

  1. Name the workflow and click Save.
Our chat platform uses the Orchard workflow engine

Our chat platform uses the Orchard workflow engine

Any chat session can raise a workflow task - and workflow tasks can run in the background and monitor all active chat sessions

Step 2: Add Session Metadata Updated Event

  1. On the Workflow editor page, click the Add Event button.
Monitor workflow events to trap the event when a chat session has the underlying chat data changes state

Monitor workflow events to trap the event when a chat session has the underlying chat data changes state

Workflow events, combined with adaptive cards, are a group combination for chatbot FAQs and chat Q&A

  1. In the pop-up window, scroll through or search for Session Metadata Updated.
  2. Select the Add button next to the event.
Monitor with chat session metadata changes - and then send an adaptive card

Monitor with chat session metadata changes - and then send an adaptive card

The Orchard workflow engine is powerful and our chat platform connects to the Orchard workflow engine

  1. Name the event
  2. Uncheck the 'Execute on every metadata change' toggle
  3. Under the 'Selected Metadata Keys' field insert: Session.Status.IsResolved
Just filter on the event where the chat session is marked as resolved.

Just filter on the event where the chat session is marked as resolved.

Our chat platform raises a lot of internal events - in this case, just filter the metadata where the chat status is marked as resolved

Step 3: Add If/Else Task

  1. On the Workflow editor page, click the Add Task button.
Add workflow task to monitor active chatbot sessions

Add workflow task to monitor active chatbot sessions

Chime V5 has a workflow engine that monitors all active chatbot, and chatFAQ, sessions - and can trigger events and tasks -

  1. In the pop-up window, scroll through or search for If/Else.
  2. Select the Add button next to the task.
Our chat workflow engine includes conditional logic and JS

Our chat workflow engine includes conditional logic and JS

Conditional tasks may be created based on chatbot events and conditions with active chats in Chime and our employee assistance platform

  1. Name the task, input the condition expression, and click Save.

Condition Expression:

input("ChangedMetadata").find((element) => element.Key == "Session.Status.IsResolved").Value == "True"
Add conditional workflow to any chat session

Add conditional workflow to any chat session

Here, active chat sessions are monitored and custom workflow events and tasks can notify employees of updates to the chat

Step 4: Add Send Adaptive Card Task

  1. On the Workflow editor page, click the Add Task button.
Easy send a Microsoft adaptive card using chat

Easy send a Microsoft adaptive card using chat

Use chat to send an adaptive card

  1. In the pop-up window, scroll through or search for Send AdaptiveCard.
  2. Select the Add button next to the task.
Use chat within Microsoft Teams to send an adaptive card

Use chat within Microsoft Teams to send an adaptive card

Our chat platform includes an adaptive card library as well as a workflow engine that can easily respond to chat events with a custom adaptive card

  1. Name the task, input the Adaptive Card JSON, and click Save.

Adaptive Card JSON:

{
    "type": "AdaptiveCard",
    "version": "1.3",
    "$schema": "https://adaptivecards.io/schemas/adaptive-card.json",
    "body": [
        {
            "type": "TextBlock",
            "text": "Your issue is resolved: ${Session.Status.IsResolved}",
            "wrap": true
        }
    ]
}
Use chat within Microsoft Teams to send an adaptive card

Use workflow within Microsoft Teams to send an adaptive card

Use the Microsoft Adaptive Card designer to create custom adaptive cards delivered via chat to Microsoft Teams or a web chat channel

Step 5: Connect the Event and Task Modules

  1. In the Workflow editor, drag the blue dot from the event to the If/Else task to connect them.
  2. Next, drag the green dot labeled 'True' from the If/Else task to the Send Adaptive Card task. This ensures the workflow proceeds correctly when the condition is met.
Build custom workflow for chat sessions - respond to custom chat based events

Build custom workflow for chat sessions - respond to custom chat based events

Here you can configure what response you want to send for the function’s ‘True’ result

Step 6: Enable and Start the Event and Task Modules

  1. Select each module and click the power icon to enable and start it.
  2. Once all modules are enabled and displayed in green, click the Save button at the bottom of the screen to save the workflow.
Enable the stages and save to make your chat workflow active

Enable the stages and save to make your chat workflow active

If you ever want to make edits to the workflow, disable your stages first to ensure no failed instances

Testing the Workflow

  1. Start a chat session and connect with an agent.
  2. Mark the session as resolved within the Agent UI.
  3. Verify that the guest user receives the adaptive card indicating their issue is resolved.

By following these steps, you can set up a simple workflow that enhances the customer experience by providing automated updates through adaptive cards.

Example of a chat FAQ app replying and routing to an agent

Example of a chat FAQ app replying and routing to an agent

Enable your service desk agent to accept chats from employees and quickly solve employee problems using chat


Previous
Previous

How to approve the Chime V5 Chat app

Next
Next

How to Make a Chatbot for FAQ Articles and Make Sure They Open in Teams Correctly