From Bright Pattern Documentation

Revision as of 15:21, 5 October 2026 by Emma.stutzman (talk | contribs) (Updated via BpClonePage extension. Source page: draft:Tutorials-for-admins/Workflows/SendHistoricalAISummaryToCRM)

< Previous
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Send Historical AI Summary To CRM

This tutorial demonstrates how to use the Wait Historical Asset workflow block to retrieve post-interaction analytics data and send it to an external CRM system. For more details on this block's use cases and settings, see Wait Historical Asset.

Because historical analytical assets are generated after an interaction ends, workflows may need to pause until the data becomes available. The Wait Historical Asset block pauses workflow execution until a specified asset (such as a transcript or AI summary) has been generated. When the asset becomes available, the block stores the result in the corresponding historical asset variable collection.


Historical assets are not available for Email or Task interactions.


Downloadable Workflow

You can download the completed workflow used in this tutorial. Note that this is an example workflow and not intended for use in a production environment.


In this tutorial, you will configure a workflow that:

1. Waits for the Historical Transcript to be generated

2. Waits for the Historical AI Summary

3. Sends the AI summary to an external CRM using the Fetch URL block

4. Sends an internal message if either asset cannot be retrieved

Retrieving the transcript first helps with troubleshooting because AI summaries depend on transcripts. If transcript generation fails, the workflow reports that failure before attempting to retrieve the summary.

Step 1: Create a Workflow

1. In the Contact Center Administrator, click on Workflows. Click "add" to create a new workflow and give it a name.

2. Create an associated workflow entry and configure a post-interaction trigger (for example, when an interaction ends or an agent sets a disposition).


Configure a post-interaction trigger for the workflow.


Step 2: Wait for the Historical Transcript

1. Drag a Wait Historical Asset block into the workflow.

2. Configure the block to wait for Historical Transcript for a duration of two days. When the transcript becomes available, it is stored in the variable collection:

  • $(item.histTranscript)


Wait for the Historical Transcript for two days.


This block is included primarily for troubleshooting purposes. Because AI summaries depend on transcripts, retrieving the transcript first allows administrators to identify transcript-generation issues before attempting to retrieve the summary.

Step 3: Wait for the Historical AI Summary

Add a second Wait Historical Asset block to the workflow. Configure it to wait for Historical AI Summary. The Historical AI Summary will only appear as an option in the dropdown menu if the feature is enabled for your environment. When the summary becomes available, it is stored in the variable collection:

  • $(item.customerSummary)

The summary text can be accessed using:

  • $(item.customerSummary.text)

Step 4: Send the Summary to an External CRM

1. Drag a Fetch URL block into the workflow. The Fetch URL block sends an HTTP request to an external system. The exact URL and request format depend on your CRM or integration requirements.

2. Connect the Success exit of the summary block to the Fetch URL block. Configure the block as follows:

Request Type:

  • POST

URL (example):

Replace this URL with the endpoint provided by your CRM or external system that will receive the interaction data.

Content Type:

  • application/json

Request Body Example:

The request body can include any variables available in the workflow.

 "interactionId": "$(item.globalInteractionId).",
 "aiSummary": "$(item.customerSummary.text)"


Fetch URL block configuration.


This sends the AI-generated summary for the interaction to an external CRM system.

Step 5: Add Error Handling

To ensure that issues with historical asset retrieval are visible to administrators, configure error handling using the Internal Message block.

1. Add two Internal Message blocks to the workflow.

2. Connect the Failed exit of both Wait Historical Asset blocks to an Internal Message block.

Configure each message to include error details and interaction information. In the Username field, enter the username of the user who should receive the message. This is typically a supervisor or administrator. For testing, you can use your own login.

Message example:

Historical asset retrieval failed.
Error code: $(waitErrorCode)
Error details: $(waitErrorBody)
Interaction ID: $(item.globalInteractionId).

The Wait Historical Asset block automatically stores error details in the following variables:

  • $(waitErrorCode)
  • $(waitErrorBody)

These values can help administrators determine whether the failure occurred during transcript generation or summary processing.


Completed workflow with Wait Historical Asset blocks, Fetch URL, and Internal Messages.


Testing the Workflow

After saving and activating the workflow:

1. Complete a voice or chat interaction.

2. Allow the interaction to end and trigger the workflow.

3. Wait for the transcript and summary to be generated.

4. Verify that the CRM endpoint receives the summary data.

The same workflow pattern can be used to export other historical analytics data by changing the asset type and variable used, for example:

Asset Variable
Category Sets $(item.categorySets)
Discovery Tags $(item.discoveries)
< Previous