A CTA (call-to-action) is an overlay that appears with your demo video. Use it to collect lead information from viewers or send them to an external link — such as a Calendly booking page. CTAs are configured per domain and apply to any video withDocumentation Index
Fetch the complete documentation index at: https://docs.demomatic.tech/llms.txt
Use this file to discover all available pages before exploring further.
cta_enabled set to true.
CTA types
Demomatic supports two CTA types:Form
Displays a modal form that collects information from the viewer. Submissions are stored as leads and accessible from your dashboard.
External link
Displays a button that opens a URL in a new tab — for example, a Calendly scheduling link or a product page.
Configure a CTA on your domain
Update your domain’s CTA settings withPUT /domains/:id:
Domain CTA fields
| Field | Type | Description |
|---|---|---|
cta_type | "form" | "external_link" | Controls which CTA experience is shown. |
cta_action_text | string | Button label (e.g. "Book a Demo", "Get in Touch"). |
cta_modal_title | string | null | Title displayed in the CTA modal. |
cta_modal_description | string | null | Body text displayed in the CTA modal. |
cta_modal_auto_open | boolean | When true, the CTA modal opens automatically when the video ends. |
cta_use_organization_name | boolean | When true, the CTA displays your organization name; when false, it uses the domain application name. |
cta_external_link | string | null | The URL to open when cta_type is "external_link" (e.g. a Calendly link). |
cta_fields | CtaFieldConfig[] | Form fields to display when cta_type is "form". |
Form field configuration
Each entry incta_fields follows the CtaFieldConfig shape:
| Field | Type | Description |
|---|---|---|
key | string | Field identifier used as the key in the submitted data. |
label | string | Label shown to the viewer. |
type | "text" | "email" | "tel" | "textarea" | Input type. |
required | boolean | Whether the viewer must fill in this field before submitting. |
Configure an external link CTA
To use an external link instead of a form:Embedding CTA in your own player
If you embed videos using your own player rather than the Demomatic embed, you can integrate CTA behaviour manually.Handling form submission
Whencta_type === "form", render the fields from cta_fields and submit the data to:
Tracking external link clicks
Whencta_type === "external_link", record a click before opening the external URL:
Auto-opening the modal
Whencta_modal_auto_open is true, open the CTA modal when the video’s ended event fires:
Choosing the display name
Usecta_use_organization_name to determine which name to show in the CTA:
