CannedReply
A canned reply is a prewritten answer to commonly asked customer questions.
To fetch all canned replies:
query CannedReplies {
cannedReplies {
nodes {
body
category {
id
}
createdAt
creator {
id
}
id
name
snippet
subject
updatedAt
lastUsedAt
countUsed
attachments {
id
}
}
}
}
To fetch all canned replies with a given search string:
query CannedReplies {
cannedReplies( filter: { keywords: "foo" } ) {
nodes {
id
name
}
}
}
To fetch all canned replies with a given search string in a particular category:
query CannedReplies {
cannedReplies( filter: { keywords: "foo", category_ids: [ "crc_123456" ] } ) {
nodes {
id
name
}
}
}
type CannedReply implements Node, Timestamped, Utilizationabled {
attachments(
after: String
before: String
first: Int
last: Int
): AttachmentConnection!
automaticActions: [CannedReplyAutomaticAction!]!
body: String
category: CannedReplyCategory
countUsed: Int!
createdAt: DateTime!
creator: Agent
id: ID!
interpolatedBody(
channelId: ID
contactId: ID!
conversationId: ID
messageId: ID
): String
lastUsedAt: DateTime
mailboxIds: [String!]
name: String
snippet: String
subject: String
updatedAt: DateTime!
}
Fields
CannedReply.attachments ● AttachmentConnection! non-null object common
All attachments on this canned reply.
CannedReply.attachments.after●Stringscalar commonReturns the elements in the list that come after the specified cursor.
CannedReply.attachments.before ● String scalar common
Returns the elements in the list that come before the specified cursor.
CannedReply.attachments.first ● Int scalar common
Returns the first n elements from the list.
CannedReply.attachments.last ● Int scalar common
Returns the last n elements from the list.
CannedReply.automaticActions ● [CannedReplyAutomaticAction!]! non-null object common
All automatic actions set on this canned reply.
CannedReply.body ● String scalar common
The content of the canned reply template.
CannedReply.category ● CannedReplyCategory object common
The category of the canned reply.
CannedReply.countUsed ● Int! non-null scalar common
The number of times the object has been utilized.
CannedReply.createdAt ● DateTime! non-null scalar common
The date and time that the object was created.
CannedReply.creator ● Agent object common
The agent that created the canned reply.
CannedReply.id ● ID! non-null scalar common
CannedReply.interpolatedBody ● String scalar common
The content of the canned reply template with all variables interpolated.
CannedReply.interpolatedBody.channelId●IDscalar commonThe ID of the channel to use for interpolation.
CannedReply.interpolatedBody.contactId ● ID! non-null scalar common
The ID of the contact to use for interpolation.
CannedReply.interpolatedBody.conversationId ● ID scalar common
The ID of the conversation to use for interpolation.
CannedReply.interpolatedBody.messageId ● ID scalar common
The ID of the message to use for interpolation.
CannedReply.lastUsedAt ● DateTime scalar common
The date and time that the object was last used.
CannedReply.mailboxIds ● [String!] list scalar common
Searches for a mailbox that match the id.
CannedReply.name ● String scalar common
The name of the canned reply.
CannedReply.snippet ● String scalar common
A short snippet from the canned reply body.
CannedReply.subject ● String scalar common
The subject line of the canned reply.
CannedReply.updatedAt ● DateTime! non-null scalar common
The date and time that the object was last updated.
Interfaces
Node interface common
An object with an ID.
Timestamped interface common
An object with timestamp fields for when it was created and last updated.
Utilizationabled interface common
An object with utilization fields for when it was last used and how many times it has been used.
Member of
CannedReplyConnection object ● CannedReplyEdge object ● EmailMessage object ● FacebookMessage object ● ForwardedMessage object ● Message interface ● Note object ● Reply object ● SummaryMessage object ● TwitterMessage object ● WidgetMessage object