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

# Update CRM after calls | Agent guide

> Convert a ready meeting transcript into reviewed CRM update proposals with source evidence.

[Human guide: task steps and agent prompt →](https://deepline.com/docs/human/guides/post-call-crm-automation.md)

Turn an authorized meeting transcript into CRM proposals and a follow-up draft. Keep each proposal attached to its speaker and supporting passage. The first pilot produces review artifacts only: no CRM writes, task creation, or message delivery.

## Check transcript readiness and record identity

A meeting-ended event does not prove the transcript is available. Use the source's supported readiness signal or an explicit retrieval check. Keep these outcomes separate:

| Source outcome | Workflow result |
| - | - |
| Transcript not ready | Pending through the supported readiness path |
| Retrieval or authorization fails | Operational error; hold extraction and drafting |
| Transcript ready, no agreed next step | Record no commitment found |
| Transcript ready, explicit commitment | Propose the supported change with evidence |

Resolve participants to the intended CRM account, contact, and opportunity before proposing updates. Hold ambiguous identities. Supported change feeds can use [Monitor setup](https://deepline.com/docs/plays/set-up-a-monitor.md); confirm the source actually supports the required feed.

## Test extraction with this synthetic call

Example input:

```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
{
  "source_id": "call-7",
  "meeting_date": "2026-10-26",
  "transcript_status": "ready",
  "crm_account_id": "account-42",
  "crm_opportunity_id": "deal-42",
  "participants": [
    { "speaker": "Mira", "role": "seller", "crm_contact_id": null },
    { "speaker": "Dev", "role": "buyer", "crm_contact_id": "contact-42" }
  ]
}
```

```text theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
00:12 Mira: I'll send the security questionnaire by October 28, 2026.
00:20 Dev: Thanks. I'll share it with our security team once it arrives.
00:35 Mira: Shall we meet on November 3?
00:42 Dev: I need to check with the team before confirming a date.
00:55 Dev: We have not approved the budget yet.
```

Expected proposals under this example policy:

| Evidence | Proposed artifact | Date and decision |
| - | - | - |
| Mira, 00:12 | Seller task proposal: send security questionnaire | Due October 28, 2026; resolve Mira's destination user ID before creating a task |
| Dev, 00:20 | Buyer commitment: share questionnaire after receipt | Due date unknown; conditional on receipt |
| Mira, 00:35 and Dev, 00:42 | Suggested next meeting | November 3 is proposed, not confirmed; year remains unstated |
| Dev, 00:55 | Evidence note: budget not approved | No supported stage, amount, or close-date change |

A seller's suggestion is not an accepted buyer commitment. Keep missing owners and dates unknown; preserve the original phrase and its context if a relative date cannot be resolved. The source identity and timestamps above are example evidence references, not a universal transcript format.

Return a review artifact for each proposal. For example:

```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
{
  "source_id": "call-7",
  "crm_opportunity_id": "deal-42",
  "artifact": "task_proposal",
  "text": "Send security questionnaire",
  "speaker": "Mira",
  "destination_owner_id": null,
  "due_date": "2026-10-28",
  "evidence": {
    "timestamp": "00:12",
    "passage": "I'll send the security questionnaire by October 28, 2026."
  },
  "review_reason": "Resolve seller user ID before task creation",
  "write_outcome": "not_attempted"
}
```

The follow-up draft can say: “I'll send the security questionnaire by October 28. You said you would share it with your security team after receipt. Please confirm whether November 3 works for a follow-up.” Keep the recipient unresolved until their address and CRM identity are verified. Do not describe November 3 as booked or budget as approved.

## Build and pilot the proposals

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline auth status --json
deepline search "meeting transcript -> CRM meeting notes" --json
```

Inspect a returned ID with `deepline describe <returned-id> --json`. For activity or follow-up variants, search `deepline search "meeting transcript -> CRM follow-up tasks" --json`. Confirm identifiers, readiness behavior, output, access mode, and price.

Author `post-call-crm-automation.play.ts` using [Build a Play](https://deepline.com/docs/sdk-v2/plays.md). Declare the input and preserve source IDs. Implement readiness checks, participant resolution, evidence-linked extraction, and separate outputs for CRM field proposals, task proposals, and drafts. Keep external changes and sending disabled in the authored logic for this pilot.

Prepare a small authorized sample using [CSV-safe selection](https://deepline.com/docs/sdk-v2/batch-csv.md). Include an unready transcript, retrieval failure, no commitment, an unaccepted date, an unknown owner, and the synthetic case above. Review the source and price before provider-backed execution, which can incur usage.

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline plays check post-call-crm-automation.play.ts
deepline plays run --file post-call-crm-automation.play.ts --csv pilot.csv --watch
deepline runs get '<run-id>' --full --json
deepline runs export '<run-id>' --out post-call-crm-automation-review.csv
deepline billing usage --run-id '<run-id>' --json
```

Use the returned run ID and select a dataset path if several exist.

## Verify this task

Trace every field, task, and draft claim to the passage that supports it. Confirm that unaccepted dates remain proposed, unknown owners remain unresolved, and retrieval errors remain distinct from calls with no commitment. Every source ID needs a result or explicit exception; the first pilot must create no external tasks, updates, or messages.

Before enabling an approved action, verify the destination identity and field authority. Keep stage changes and commercial terms under the required review. For a timeout after an update, task creation, or delivery attempt, reconcile the destination before retrying; repeating an uncertain action can create a duplicate task or message. [Repair CRM records](https://deepline.com/docs/guides/crm-data-quality-automation.md) covers write verification, and [Integrate a Play into your app](https://deepline.com/docs/sdk-v2/production-integration.md) covers destination reconciliation.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.