Skip to main content
Instead of stitching together API calls, you can describe a campaign declaratively in a YAML file and create it with ontora campaigns create -c campaign.yaml.

Example

Then:
With a future timeframe_start, --start activates the campaign but holds the invitations until the start date (08:00 in the campaign’s timezone). Without one, invitations go out immediately on launch. The CLI prints the campaign id (--json emits the full created campaign for scripting); if you skipped --start, launch with ontora campaigns start <id> when you’re ready. For larger contact lists, leave contacts out of the YAML and import them after creation:

Field reference

Top-level

Topic

Question

Contact

Email is required for invitations on in_app_chat; Slack campaigns need slack_user_id or email per contact. For bulk lists, prefer ontora contacts import <id> contacts.csv after creating the campaign — see Commands. CSV columns: name,email,phone,job_title,department,seniority_level. Only name is required.