Type Alias: WorkflowGreetingEntries
WorkflowGreetingEntries =
GreetingEntry[]
Defined in: packages/sdk/src/types/task-types.ts:234
A workflow revision's opening assistant turn for one direction, as a list of
{channel, locale, text} entries.
[ { "channel": "default", "locale": "en-US", "text": "Hi there" },
{ "channel": "phone-voice", "locale": "en-US", "text": "This call may be recorded…" } ]
(channel, locale) is unique — the request boundary rejects duplicates —
and order is not significant: the resolver ranks by channel/locale
specificity, never by position.
Locales are strict full tags (en-US, not en); bare subtags are rejected
at the boundary, and the resolver — not the data — does language-prefix
matching.
There are two of these on a revision, initialMessageOutbound and
initialMessageInbound, with deliberately no fallback between them: an
outbound opener replayed as an inbound reply is actively wrong, so a
workflow with only an outbound greeting is silent on inbound.
The element type is GENERATED from the backend model — see
./generated/task. It is re-exported here so consumers get the greeting
contract from one place.