Get the custom message by its ID
Successful Response
Response model for custom message operations. A custom message is a pre-configured message delivered by an agent as a greeting at the beginning of a conversation. Multiple agents can use the same custom mesasage. A custom message has one or more rules defined, which allow for different messages to be dynamically selected and delivered at runtime based on the current time and either date or day of the week. For more information, see Console docs.
The name of the custom message
"Customer service greeting"
The default message that the agent will deliver if no rules are set or no rules match the current timestamp.
"Hello and thank you for calling customer service. How can I help you today?"
The ID of the custom message
1
Timestamp of the most recent update to the custom message
"2024-01-01T00:00:00Z"
The email address of the user who most recently updated the custom message
An optional preamble that will be delivered before the main message, regardless of whether the current time and date match a rule or the system uses the default message. Cannot contain the "{{ language.mode }}" tag. In the case of a voice conversation, the user will not be able to interrupt the preamble. Can be used for e.g. legal disclaimers that the user must always see/hear.
"If this is an emergency, please hang up and call 911."
The label of the custom message
"Customer service"
Rules for time-specific message variants
[
{
"date": "2025-01-01",
"description": "Closed on New Year's Day",
"invert": false,
"text": "Hello, thank you for calling. Sorry, we're closed today.",
"time_range_end": "17:00",
"time_range_start": "09:00"
},
{
"days_of_week": ["sa", "su"],
"description": "Closed on weekends",
"invert": false,
"text": "Hello, thank you for calling. Sorry, we're closed on weekends.",
"time_range_end": "17:00",
"time_range_start": "09:00"
}
]The number of agents using the custom message
1
Type of the custom message (must be "greeting" for now)
"greeting"