Mutation
mutation GenerateHelpCenterArticle($input: GenerateHelpCenterArticleInput!) {
generateHelpCenterArticle(input: $input) {
helpCenterArticles {
id
title
description
icon
contentHtml
slug
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"threadId": "id",
"helpCenterId": "id"
}
}Response
{
"data": {
"generateHelpCenterArticle": {
"helpCenterArticles": [
{
"id": "id",
"title": "string",
"description": "string",
"icon": "string",
"contentHtml": "string",
"slug": "string"
}
],
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Mutations
generateHelpCenterArticle
Use AI to generate one or more draft help center articles from the content of a support thread. Returns the generated articles in DRAFT status for review before publishing. Requires the helpCenter:edit permission.
MUTATION
generateHelpCenterArticle(input: GenerateHelpCenterArticleInput!): GenerateHelpCenterArticleOutput!Arguments
input
required
Returns
helpCenterArticles
error
Mutation
mutation GenerateHelpCenterArticle($input: GenerateHelpCenterArticleInput!) {
generateHelpCenterArticle(input: $input) {
helpCenterArticles {
id
title
description
icon
contentHtml
slug
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"threadId": "id",
"helpCenterId": "id"
}
}Response
{
"data": {
"generateHelpCenterArticle": {
"helpCenterArticles": [
{
"id": "id",
"title": "string",
"description": "string",
"icon": "string",
"contentHtml": "string",
"slug": "string"
}
],
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Was this page helpful?

