Post call analysis
Post call analysis collects insights, summaries, and structured data after conversations. For example, for agents that performs a job interview, you may collect answers to all questions asked during the interview. Or, you can evaluate user sentiment during the call, and perform call summarization.
Collected information may be consumed via one of the following ways:
-
It can be sent to the WebHook URL specified by customer.
-
It can be seen in the Live Hub portal:
-
In the Post Call Analysis screen, switch to the Results tab.
-
In the Logs screen, look for the 'post_call_analysis' log entry at the end of the conversation.
-
-
It can be accessed via REST API at
/ai-framework-management/api/v1/post_call_analaysis_data/{conversation_id}.
Modes of operation
Post call analysis can operate in one of the following modes:
Structured data extraction
Use this mode when you want AI Agent to extract specific information from the conversation.
To configure this:
-
Open the Post Call Analysis configuration screen.
-
Set Type to 'Extract variables'.
-
Define one or more variable. For each variable, specify:
-
Name – a unique name.
-
Description – detailed guidance on what data should be captured for this parameter.
-
Type – the expected data type (e.g., string, number, boolean).
-
-
Optionally, configure a custom Extract prompt, or leave it empty to use default extraction prompt. If you provide a custom prompt avoid including parameter-specific extraction instructions within it; instead, define those instructions in each parameter’s Description field.
Call summarization
Use this mode when you need a structured or insightful summary of the conversation.
To configure this:
-
Set Type to 'Summarize conversation'.
-
Configure the Summarization prompt by specifying the desired structure, key insights, and any important items that should be included in the summary.
Conversation transcript
Use this mode when you need only a transcript of the conversation, without any summarization or data extraction.
To configure this:
-
Set Type to 'Conversation log'.
Note: This mode will generate only the call transcript. The same result can also be achieved by configuring the finish webhook, as described in Post call analysis WebHook section.
Add post call analysis to the agent
After creating the post call analysis in the Post call analysis screen, you must assign it to the specific agent. To do this, use the Post call analysis tab in the Agent Configuration screen.
Defining a post call analysis in the Post Call Analysis screen alone is not enough, you must also assign it to the specific agent in the Agent Configuration screen.
You can add multiple post call analysis instances to the same agent. These instances may operate in different modes, for example, one is may perform structured data extraction while another summarizes the call. Alternatively, they may use the same mode but generate different content, for example, a detailed call summary and an executive summary.
You can also reuse the same post call analysis instances across multiple agents.
Post call analysis WebHook
The Post call analysis WebHook uses the following format:
{
"account_id": ..., # account ID
"conversation_id": ..., # conversation ID
"agent": ..., # agent name
"post_call_analysis": ..., # post call analysis name
"start_time": ..., # conversation start time
"end_time": ..., # conversation end time
"duration ": ..., # conversation duration
"conversation_data": { # conversation data as populated by Live Hub
"caller": ... # refer to https://techdocs.audiocodes.com/voice-ai-connect >
"callee": ... # Bot integration > Basic behavior > Call initiation
}, # (may be missing for chats)
"variables ": {}, # conversation variables
"data": ... # extracted post call analysis data
# or plain-text LLM response, if it couldn't be parsed
# or conversation history, if no params are defined
}
The data field is populated based on the selected operation mode:
-
Structured data extraction mode - contains a dictionary of all extracted parameters.
-
Call summarization mode - contains the generated conversation summary.
-
Conversation transcript mode - contains the full conversation transcript.
The status of the WebHook transmission is included in the Post call analysis log entry recorded in the conversation history and displayed in the Logs screen:
-
response_status– contains HTTP status of the response to WebHook; statuses 2xx indicate successful WebHook transmission; statuses 4xx-5xx indicate error returned by the receiving endpoint; status 700 indicates transmission timeout. -
response_text– contains additional information that may help with troubleshooting.
Advanced configuration
You may further customize the Post call analysis behavior via the post_call_analysis advanced configuration parameter:
|
Parameter |
Type |
Description |
|---|---|---|
|
|
boolean |
Include logs in the Post call analysis transcript. |
|
|
boolean |
Join
data from all Post call analysis instances into a single webhook call. The |
|
|
boolean |
Multi-agent topologies use Post call analysis configuration of the main agent, that starts the conversation. Post call analysis configuration of the sub-agents is ignored. You
may change this default behavior at by enabling the |
|
|
List[str] |
You may specify logical conditions for running Post call analysis. Use variable names and comparison operators, for example:
If multiple conditions are specified they are concatenated using AND Boolean operator. Alternatively you may include Boolean operators in your conditions, for example:
|