For TypeScript, the GraphQL SDK gives you a fully typed client for these operations.
Adding a suggested reply
To add a suggested reply you need to provide thethreadId, the timelineEntryId of the customer message you are responding to, and the markdown content of the reply. The timeline entry must be from a customer. Suggested replies cannot be added against non-customer messages.
A timelineEntryId identifies a single entry on a customer’s timeline (e.g. an email or chat message). You can get one by querying a thread’s timelineEntries connection, where each entry has an id you can use here.
The markdown field supports a maximum of 5,000 characters.
To add a suggested reply, you need an API key with the following permissions:
generatedReply:create
Mutation
Variables

