Skip to main content
PATCH
Change a greeting

Authorizations

Authorization
string
header
required

A secret key (dk_live_…). Scopes: conversations:read, contacts:read, contacts:write, meetings:read, analytics:read, events:read, webhooks:write, knowledge:read, knowledge:write, agent:read, agent:write, experiments:read, experiments:write, privacy:write, chat:write.

Headers

Idempotency-Key
string

Retry safely: the first response is replayed for 24 hours (not for streamed answers).

Maximum string length: 255

Path Parameters

id
string
required

Body

application/json
page
string

One-page greetings: move it to another page.

Required string length: 1 - 500
show_to
object[]

Audience greetings: replace the filters.

Maximum array length: 12
name
string

What your team calls it. Defaults to the page or type.

Required string length: 1 - 80
text
string

What the chat says first. Openings shown beside the launcher read best under 120 characters. Link greetings may use {first|there}, {company|your team}, {title}, {last}.

Required string length: 1 - 300
buttons
object[]

Up to four reply buttons. Their label is what the visitor taps; message is what it sends (the label when left out).

Maximum array length: 4
agent_note
string | null

What the agent should know about people who see it. Null removes it.

Maximum string length: 500
outcome
string | null

What it steers toward: "meeting" or an outcome form id (out_…). Null keeps the chat's usual.

stays
enum<string>

How long it stays once it matched: match (only matching pages), visit (this visit), return (every visit for 90 days).

Available options:
match,
visit,
return
status
enum<string>

live greets visitors; draft and paused don't. An archived greeting comes back with live.

Available options:
live,
draft,
paused
testing
enum<string>

auto: Darwin may test new openings on it (one-page greetings and the default); off: it keeps these words.

Available options:
auto,
off
end_test
boolean

Changing the words, buttons or audience of a greeting under test is refused (409) unless end_test is true: the test ends first and its results are kept.

Response

OK

id
string
required
Pattern: ^gr_
Example:

"gr_yjh2jw"

object
string
required
Allowed value: "greeting"
type
enum<string>
required

page: one page. audience: visitors who match show_to. link: people who open its personal links. default: everyone else (the catch-all), one per workspace.

Available options:
page,
audience,
link,
default
name
string
required
text
string
required

What the chat says first.

Example:

"Comparing plans? Give me a rough count of meetings a month and I'll find your cheapest fit."

buttons
object[]
required

Reply buttons. Your locked buttons (Agent Studio) are added when it is shown.

agent_note
string | null
required

What the agent is told about people shown this greeting.

outcome
string | null
required

What it steers toward: "meeting" or an outcome form (out_…). Null: the chat's usual.

page
string | null
required

For type page: the page it shows on.

For type link: the personal links (lk_…) that open with it.

show_to
object[]
required

For type audience: the filters a visit must all match.

audience
string
required

Who sees it, in words.

Example:

"Page is any of /pricing"

stays
enum<string>
required

match: only on pages it matches. visit: the rest of the visit. return: every visit for 90 days.

Available options:
match,
visit,
return
status
enum<string>
required
Available options:
live,
draft,
paused,
archived
testing
enum<string>
required

auto: Darwin may test new openings on it (one-page greetings and the default). off: it keeps these words.

Available options:
auto,
off
position
integer
required

Order among greetings of the same kind, lowest first.

Required range: -9007199254740991 <= x <= 9007199254740991
created_by_darwin
boolean
required
test
object | null
required

The test running on it now (exp_…); read it with GET /experiments/{id}.

created_at
string<date-time>
required
Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$
updated_at
string<date-time>
required
Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$