# v0.2.0 Transcript Setup

This version improves transcript handling and display.

## What changed

- The dashboard now formats transcripts as separate Assistant/Customer lines.
- The app normalizes transcript payloads from strings, arrays, message objects, turns, utterances, and Telnyx webhook payloads.
- The assistant prompt now asks the AI to send a concise Assistant/Customer transcript in the `transcript` body parameter when calling `submit_lead` or `escalate_urgent`.

## Required Telnyx tool setting

In both `submit_lead` and `escalate_urgent`, add this body parameter:

Name: `transcript`
Type: `string`
Required: `No`
Description:
`Conversation transcript formatted as alternating lines using only Assistant: and Customer:. Include the opening assistant greeting and important customer replies. Do not send raw JSON.`

## Optional Telnyx webhook setting

If your Telnyx Assistant supports post-call insights, recordings, or transcripts, point those webhooks to:

`https://pestdemo.recovermissedcall.com/telnyx/events`

The app can also receive transcript/insight callbacks there.

## Debug check

After a test call, open:

`https://pestdemo.recovermissedcall.com/api/ai-tools/recent-requests?api_key=YOUR_ADMIN_KEY`

Look for `body_keys` that include `transcript`. If `transcript` is missing there, Telnyx did not send it through the tool call.
