> ## Documentation Index
> Fetch the complete documentation index at: https://developers.nlpearl.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Post-Chat

> All you need to know about Post-Chat in NLPearl

<div className="block dark:hidden">
  <Frame>
    <div className="p-1">
      <img src="https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/post-call-cover.svg?fit=max&auto=format&n=5aa5Rk7qHypaYdNc&q=85&s=193ac469b7573a80a988dc59fe79504d" alt="Post-Chat cover" className="rounded-[14px]" width="1048" height="720" data-path="images/dark_mode/post-call-cover.svg" />
    </div>
  </Frame>
</div>

<div className="hidden dark:block">
  <Frame>
    <div className="p-1">
      <img src="https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/post-call-cover.svg?fit=max&auto=format&n=5aa5Rk7qHypaYdNc&q=85&s=193ac469b7573a80a988dc59fe79504d" alt="Post-Chat cover" className="rounded-[14px]" width="1048" height="720" data-path="images/dark_mode/post-call-cover.svg" />
    </div>
  </Frame>
</div>

***

## What is a Post-Chat?

In NLPearl, a **post-chat** is a structured summary generated after each conversation handled by Pearl. It centralizes all key information captured before, during, and after the conversation to ensure full traceability, improve quality, and support human follow‑up when needed.

***

## What Does the Post-Chat Include?

A post-chat provides multiple key sections to review and analyze the outcome of a conversation:

### Chat ID

A unique identifier for each conversation, displayed at the top right of the page. It allows you to quickly reference or search for a specific conversation across the system.

<Frame>
  <img src="https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/postchat-1.png?fit=max&auto=format&n=Utixv1_73hqGLnyk&q=85&s=718492171089a4bb0cd5dc9132f874af" alt="Chat ID location in the post-chat view" className="rounded-[14px]" width="5120" height="2880" data-path="images/dark_mode/postchat-1.png" />
</Frame>

***

### Conversation Details

This section summarizes the essential metadata captured during the conversation, such as timing, the Pearl version used, credits consumed, and the overall outcome.

| Field                 | Description                                                                                                   |
| --------------------- | ------------------------------------------------------------------------------------------------------------- |
| **Date**              | The exact date and time the conversation took place.                                                          |
| **Pearl Version**     | The version of the Pearl that handled the conversation.                                                       |
| **Lead Name**         | The name of the lead (outbound conversations).                                                                |
| **Duration**          | The length of the conversation.                                                                               |
| **Queue Duration**    | Time the conversation spent waiting in the chat queue before being picked up (shown only when queued).        |
| **Transfer Duration** | Time spent with a human agent after a hand-off (shown only when handed off).                                  |
| **Credits Used**      | The number of credits consumed by the conversation.                                                           |
| **SMS Credits Used**  | The number of credits consumed by SMS messages sent during the conversation (shown only when greater than 0). |
| **Sentiment**         | The detected sentiment of the customer during the conversation.                                               |
| **Events**            | A shortcut to the actions triggered during the conversation — click **View** to jump to the **Event Log**.    |

<Note>
  Some fields are conditional: **Lead Name** appears for outbound conversations, **Queue Duration** only when the conversation was queued, **Transfer Duration** only when it was handed off, and **SMS Credits Used** only when at least one SMS was sent.
</Note>

<Note>
  The header shows the **participants** (the user and the channel used) and the **Conversation Status** badge — it does not show the name of the Pearl.
</Note>

<Frame>
  <img src="https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/postchat-5.png?fit=max&auto=format&n=Utixv1_73hqGLnyk&q=85&s=a552fed73ff036c51ee701082b3122c0" alt="Conversation Details in the post-chat view" className="rounded-[14px]" width="5120" height="2880" data-path="images/dark_mode/postchat-5.png" />
</Frame>

***

### Conversation Status

Indicates the outcome of the conversation from a business or process perspective. It is shown as a colored badge in the header, next to the participants. For chats, this is the **only** status displayed.

<Frame>
  <img src="https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/postchat-2.png?fit=max&auto=format&n=Utixv1_73hqGLnyk&q=85&s=f306d3fe56c071ab23e1e97bff13f0fe" alt="Conversation Status badge and participants in the post-chat header" className="rounded-[14px]" width="5120" height="2880" data-path="images/dark_mode/postchat-2.png" />
</Frame>

<Note>
  The **✕** next to the status badge lets you **close the conversation manually** at any time. See [Human Takeover](#human-takeover) for how closing differs from a takeover.
</Note>

| Status              | Description                                                          |
| ------------------- | -------------------------------------------------------------------- |
| `In Chat Queue`     | The conversation is waiting to be picked up.                         |
| `In Chat`           | The conversation is currently ongoing.                               |
| `Chat Successful`   | The conversation achieved its expected outcome.                      |
| `Chat Unsuccessful` | The conversation failed to meet its objective.                       |
| `Completed`         | The conversation was conducted and finalized, regardless of outcome. |

<Card icon="circle-info" iconType="light">
  <b>Important distinctions about Conversation Status</b>:

  The difference between `Chat Successful`, `Chat Unsuccessful`, and `Completed` depends on whether a **Success Definition** was configured when creating the Pearl:

  * If a **Success Definition** was configured:
    * `Chat Successful` → the Success Definition criteria were met during the conversation.
    * `Chat Unsuccessful` → the conversation did not meet the Success Definition criteria.
  * If **no Success Definition** was configured:
    * `Completed` → the conversation was completed without any Success Definition evaluation.
</Card>

<Note>
  Unlike voice calls, a chat has no separate technical status: the telephony-level **Call Status** is a back-end/API notion only and isn't shown in the post-chat UI.
</Note>

<Note>
  For more information on Success Definitions, see [PearlVibe](/pages/pearl_vibe#pearl-success).
</Note>

***

### Tags

The list of **tags defined during the last step of the Pearl creation process**. These tags represent key topics or categories you chose when setting up the Pearl configuration.

<Frame>
  <img src="https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/postchat-12.png?fit=max&auto=format&n=Utixv1_73hqGLnyk&q=85&s=649bee03d0221a5eb424661a02e09dbe" alt="Tags in the post-chat view" className="rounded-[14px]" width="5120" height="2880" data-path="images/dark_mode/postchat-12.png" />
</Frame>

<Note>For more information on setting up tags, see [PearlVibe](/pages/pearl_vibe).</Note>

***

### Events

A log of the actions triggered by Pearl during the conversation. Each event includes a timestamp, the action details, and an execution status.

Possible event types include:

| Event Type                | Description                                                                                          |
| ------------------------- | ---------------------------------------------------------------------------------------------------- |
| `Transfer Chat`           | The conversation was transferred to another destination.                                             |
| `Conversation Handed Off` | The conversation was handed off to a human agent.                                                    |
| `SMS Sent`                | A text message was sent to the customer.                                                             |
| `Email Sent`              | An email was sent during the conversation.                                                           |
| `API`                     | An API was triggered — before the chat (Pre-Chat), during it (API Request), or after it (Post-Chat). |
| `Appointment`             | An appointment was booked in the calendar.                                                           |
| `Slack`                   | A Slack notification was sent.                                                                       |

<Info>
  Each event carries an execution status: the **HTTP status code** for API calls, otherwise **sent** / **failed**, with a possible error state.
</Info>

***

### Sentiment Analysis

An automatic classification of the customer's tone and emotional state throughout the conversation. Possible sentiment values include:

| Sentiment Value     | Description                                                       |
| ------------------- | ----------------------------------------------------------------- |
| `Positive`          | The conversation was clearly positive in tone and emotion.        |
| `Slightly Positive` | The overall tone was mostly positive, with minor neutral moments. |
| `Neutral`           | The sentiment was balanced or emotionless.                        |
| `Slightly Negative` | The tone leaned slightly negative, but not strongly so.           |
| `Negative`          | The conversation had a clearly negative emotional tone.           |

<Frame>
  <img src="https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/postchat-7.png?fit=max&auto=format&n=Utixv1_73hqGLnyk&q=85&s=360497b4a8a779ac1be6bdbde2deadef" alt="Sentiment analysis in the post-chat view" className="rounded-[14px]" width="5120" height="2880" data-path="images/dark_mode/postchat-7.png" />
</Frame>

***

### Summary

A summary is a concise, human‑readable recap of the conversation, generated by Pearl. It includes:

* What the customer requested
* What was confirmed or declined
* The overall outcome of the interaction

Once a conversation is **closed or completed**, a summary is generated **automatically** at the end. While a chat is still **ongoing** (`In Chat`), no summary exists yet — you can generate one **on demand** with the **Generate Summary** button without waiting for the conversation to end.

<Frame>
  <img src="https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/postchat-4.png?fit=max&auto=format&n=Utixv1_73hqGLnyk&q=85&s=e44488df30f8e10eb75d106a62aae3fc" alt="Generate Summary button while the chat is ongoing" className="rounded-[14px]" width="5120" height="2880" data-path="images/dark_mode/postchat-4.png" />
</Frame>

<Frame>
  <img src="https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/postchat-6.png?fit=max&auto=format&n=Utixv1_73hqGLnyk&q=85&s=01df89b6201e398d649e0417576373af" alt="Generated summary in the post-chat view" className="rounded-[14px]" width="5120" height="2880" data-path="images/dark_mode/postchat-6.png" />
</Frame>

<Note>
  Generating a summary **on demand** (while the chat is ongoing) costs **2 credits**. The automatic summary produced when the conversation ends is included.
</Note>

***

### Transcript & Event Log

A toggle at the top of the right-hand panel switches between the **Transcript** and the **Event Log**.

**Transcript** — a full text version of the conversation between the customer and Pearl. It is structured into three blocks separated by dividers: **Pre-chat events → In-chat messages → Post-chat events**. Always available, and useful for reviewing the interaction, auditing, and training.

* **Delivery status**: each message shows its delivery state — **Pending**, **Sent**, or **Failed** — with a matching icon.
* **Attachments**: messages can include attachments (images, files) shared during the conversation.

<Frame>
  <img src="https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/postchat-9.png?fit=max&auto=format&n=Utixv1_73hqGLnyk&q=85&s=91115e5702441426d21062a9fef0186c" alt="Transcript in the post-chat view" className="rounded-[14px]" width="5120" height="2880" data-path="images/dark_mode/postchat-9.png" />
</Frame>

**Event Log** — a chronological view of all actions triggered by Pearl during the conversation. Each entry shows the action type (API call, SMS, email, transfer…), its execution status, and contextual data, so you can verify that every automated operation ran and inspect its output.

<Frame>
  <img src="https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/postchat-13.png?fit=max&auto=format&n=Utixv1_73hqGLnyk&q=85&s=ee0622fd614b61ae0a347fa380e1b3c5" alt="Event Log in the post-chat view" className="rounded-[14px]" width="5120" height="2880" data-path="images/dark_mode/postchat-13.png" />
</Frame>

***

### Variables

This section, labeled **Variables** in the UI, displays the **structured data captured before or during the conversation**, corresponding to the dynamic values collected through the Pearl configuration.
Examples:

* Delivery type
* Selected options (e.g. “Dessert: Cheesecake”)
* Customer preferences

<Frame>
  <img src="https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/postchat-8.png?fit=max&auto=format&n=Utixv1_73hqGLnyk&q=85&s=f53e5e3a5ef324d6affc88180b1da242" alt="Variables in the post-chat view" className="rounded-[14px]" width="5120" height="2880" data-path="images/dark_mode/postchat-8.png" />
</Frame>

<Info>
  You can learn more about creating variables in the Pearl [here](/pages/variables).
</Info>

***

### Human Takeover

At any point, a human agent can step in and **take over the conversation** directly from the post-chat page, then hand it back to Pearl once done. The full context (transcript, variables, and events) stays available throughout.

This is useful when:

* The customer explicitly asks to speak with a human
* The request falls outside what Pearl is configured to handle
* A sensitive or high-value conversation needs a personal touch

<Note>
  A takeover is a **manual** action you trigger from this page. It's different from a **human hand-off**, which Pearl performs **automatically** based on a node configured in your flow — logged as a *Conversation Handed Off* event.
</Note>

<Card title="Hand-Off Node" icon="headset" iconType="light" href="/pages/text/handoff_action">
  Learn how to configure automatic hand-off to a human agent from your Pearl flow.
</Card>

<Steps>
  <Step title="Pearl is handling the chat">
    While Pearl is in control, the footer shows *“Pearl is handling this chat”* and the composer is locked (*“Pearl is replying…”*). Click **Take over** to step in.

    <Frame>
      <img src="https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/postchat-10.png?fit=max&auto=format&n=Utixv1_73hqGLnyk&q=85&s=0a641f413a161628d2b327e5cf374d88" alt="Take over button while Pearl is handling the chat" className="rounded-[14px]" width="5120" height="2880" data-path="images/dark_mode/postchat-10.png" />
    </Frame>
  </Step>

  <Step title="The agent is in control">
    Once you take over, Pearl stops replying and the footer shows that you (the agent) took over. The composer unlocks to **Reply as agent…**, so you can type messages and send attachments to the customer in real time. When you're finished, click **Hand back** to return control to Pearl.

    <Frame>
      <img src="https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/postchat-14.png?fit=max&auto=format&n=Utixv1_73hqGLnyk&q=85&s=debcc0cbba3d13604cf4efb12396b932" alt="Agent replying and handing the conversation back to Pearl" className="rounded-[14px]" width="5120" height="2880" data-path="images/dark_mode/postchat-14.png" />
    </Frame>
  </Step>
</Steps>

<Note>
  A takeover does **not** close the conversation. Pearl simply stops responding so the human agent can reply, and everything stays logged in the post-chat for full traceability. When done, the agent can **hand the conversation back** to Pearl.
</Note>

<Note>
  **Closing a conversation** is a separate action from takeover. Using the **✕** next to the status badge in the header explicitly closes the conversation in the system, whereas a takeover only pauses Pearl's replies. Use it when the exchange is finished.
</Note>

***

<Tip>
  **Navigation & shortcuts** — move between conversations with the on-screen arrows or the **↑ / ↓** keyboard keys, and click **View** on the Events row in Conversation Details to jump straight to the Event Log.
</Tip>

***

## Why the Post-Chat Matters

<CardGroup cols={2}>
  <Card title="Traceability" icon="check" iconType="light">
    Every conversation leaves a documented trace for accountability.
  </Card>

  <Card title="Faster Follow‑Up" icon="check" iconType="light">
    Helps support and operations teams follow up efficiently with customers.
  </Card>

  <Card title="Quality & Analytics" icon="check" iconType="light">
    Enables continuous improvement through quality review, sentiment tracking, and conversation analysis.
  </Card>

  <Card title="Auditing & Compliance" icon="check" iconType="light">
    Provides an auditable record of AI-driven conversations to meet regulatory or internal policy needs.
  </Card>
</CardGroup>

***

By consolidating all these elements, the **Post-Chat** page provides a complete overview of each AI-handled conversation, ensuring transparency, traceability, and actionable insights for your team.
