Skip to main content
Was this helpful?

Smart Values Reference

Smart values are dot-notation paths that resolve to runtime data during automation evaluation. They are used as the field in conditions and can be used in action config templates.

Available smart values vary by trigger type. Use the API endpoint to retrieve them dynamically:

GET /api/automation/smart-values/:triggerType
Authorization: Bearer <token>

Event Trigger Smart Values

Available for triggers: event.created, event.updated, event.deleted, event.starts_in, event.ends_in, relative_time_to_event

PathCategoryDescription
event.titleEventEvent title/name
event.descriptionEventEvent description body
event.locationEventEvent location string
event.notesEventEvent notes field
event.durationEventDuration in minutes (computed)
event.is_all_dayEventBoolean — true if all-day event
event.colorEventEvent color identifier
event.statusEventEvent status string
event.calendar.idCalendarID of the parent calendar
event.calendar.nameCalendarName of the parent calendar

Webhook Trigger Smart Values

Available for trigger: webhook.incoming

Path PatternCategoryDescription
webhook.dataWebhookThe entire JSON payload body
webhook.data.<key>WebhookTop-level key from the payload
webhook.data.<key>.<nested>WebhookNested key using dot notation

Dot-Notation Path Traversal

PrimeCal resolves webhook.data.* paths at evaluation time using recursive property access. Paths are null-safe — a missing key evaluates as null/empty rather than throwing an error.

Example payload:

{
"event": "order.completed",
"data": {
"order_id": "12345",
"customer": {
"id": "cust_789",
"tier": "premium"
},
"total": 99.99,
"status": "paid"
}
}

Corresponding condition paths:

PathResolved Value
webhook.data.order_id"12345"
webhook.data.customer.tier"premium"
webhook.data.total99.99
webhook.data.status"paid"
webhook.data.customer.nonexistentnull

Scheduled Trigger Smart Values

Available for trigger: scheduled.time

The scheduled trigger fires without an associated event. Event-scoped smart values (event.*) are unavailable. Webhook smart values are also unavailable. Conditions in scheduled rules typically test against calendar state or time-based criteria.

Calendar Import Smart Values

Available for trigger: calendar.imported

PathCategoryDescription
event.titleEventTitle of the imported event
event.calendar.nameCalendarName of the importing calendar

Runtime Config Availability

The /api/automation/smart-values/:triggerType endpoint returns the full list of valid smart value metadata for any trigger type, including field, label, description, and category. Use this endpoint to populate UI pickers or validate rule configs programmatically.

Request:

GET /api/automation/smart-values/event.created
Authorization: Bearer <token>

Response shape:

[
{
"field": "event.title",
"label": "Event Title",
"description": "Event title/name",
"category": "Event"
}
]

Returns 400 if the trigger type is not a valid TriggerType enum value.