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

# Prep a demo

> Fill in your demo form before a call. Each demo becomes a record on the company, Custral writes the call's script, and your app builds the demo account.

## Overview

Before a demo, a rep fills in a short form about the prospect. Three things come out of it:

* **The demo record.** Each prep becomes a record on the **Demos** object, linked to the company, the deal and the people coming. It shows on the company's page, and holds the answers, the status and the demo's link.
* **The script.** Custral builds the call's talk track from your demo talk tracks, led by the rep's answers, and saves it on the meeting so the live coach runs it on the call.
* **The demo.** Custral sends the answers to your own app, which builds a demo account in your product and sends back its link. The rep sees **Open demo** next to the script.

Your product doesn't live in Custral, so Custral never builds the demo itself. Your app does, from the answers.

## Before you start

You need:

* At least one switched-on talk track of the **Demo** type. See [talk tracks](https://docs.custral.com/comms/talk-tracks/overview.md).
* A workspace admin to create the demo form.
* An app that receives the [`demo.requested`](https://docs.custral.com/dev/webhooks/events/demo-requested) webhook, if you want the demo account built for you. Without one, Prep a demo still writes the script.

**Settings → Calls → Demos** shows a **Set up demo prep** checklist with these steps, ticking each one as it's done, until all three are. Once a demo talk track is on, **Get started** also lists **Prep demos with your app**. It ticks when your demo form exists and the first demo is prepped. Until both a demo talk track and the demo form exist, Prep a demo says what's missing instead of showing the form.

## Create the demo form

The demo form is an ordinary form in **Forms**, on the **Demos** object. An admin creates it from **Settings → Calls → Demos → Demo form** with **Create demo form**. That adds the Demos object (linked to your company, deal and contact objects) and a starter form asking which company and which deal.

Then press **Edit in Forms** and build it like any form:

**1. Add the questions your app needs**

Add a field for each, like "How many trucks do they run?". A field tied to a select property offers its options, and one tied to a relation picks a real record, such as the plan from your Products.

**2. Fill answers from the company**

In a field's settings, **Fill from** picks a relation (Company or Deal) and a field on it, like Company › Fleet size. Once the rep picks the company, the answer starts with that value. The rep can change it.

**3. Mark what's required**

Tick **Required** for anything your app can't build a demo without. Prep demo waits until those are answered.

**4. Make it live**

Reps can only prep with a live form.

Your app reads each answer by its property's **key**, like `how_many_trucks_do_they_run`. Rewording a question doesn't change the key, so your app keeps working. The Demos object also reads some of the company's facts, like its industry and size, and sends those too.

## Connect your app

On the same tab, the **Demo environments** card connects your app:

1. Add a webhook endpoint that receives `demo.requested`. See [webhooks](https://docs.custral.com/dev/webhooks/events/demo-requested.md).
2. Press **Send test request** to send a sample, so you can build your receiver against it.
3. Choose whether to **Include attendee emails**. They're left out unless an admin turns them on.

Your app builds the demo and answers on `POST /v1/demo-requests/:id/environment` with the demo's link, or with why it couldn't build one. See [demo requests](https://docs.custral.com/dev/api-reference/demo-requests.md).

## Prep a demo

**1. Open Prep a demo**

Open **Demos** (add it to your sidebar with **Edit**, or press ⌘K and type "Demos") and press **Prep a demo**.

**2. Pick the meeting**

Pick the meeting from your calendar. With no meeting, pick how long the demo runs.

**3. Fill in the form**

Pick the company and answer your workspace's questions. Answers that fill from the company appear once you pick it. Required ones are marked.

**4. Press Prep demo**

Custral makes the demo record, builds the script and, when your app is connected, sends the record to it.

The script appears below, with a link to the demo record. Reorder it, remove parts or add left-out ones back, and press **Use on call** if you didn't pick a meeting. While your app builds the demo the row reads "Your app is building the demo…". When it answers, **Open demo** opens it in a new tab.

Changed an answer, or the meeting moved? Press **Send again**, and your app gets the request with the next `revision`.

## What your app receives

The `demo.requested` payload holds the prospect, the meeting and its guests, who is presenting, and the answers:

```json theme={null}
"answers": [
  {"key": "how_many_trucks_do_they_run", "question": "How many trucks do they run?", "value": 120},
  {"key": "which_regions", "question": "Which regions?", "value": ["West", "Central"]}
]
```

Answers come in the form's order, then the company facts the Demos object reads. A question the rep left blank is left out. A choice sends its label, and a linked record sends its name. See [`demo.requested`](https://docs.custral.com/dev/webhooks/events/demo-requested) for the whole payload.


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