Skip to main content

Mutations: Content generation

GraphQL mutations for content generation sessions, jobs, flows, and content review in the Amplience GraphQL Management API.

Sessions & messages
Link copied!

createContentGenerationSession
Link copied!

createContentGenerationSession(
input: CreateContentGenerationSessionInput!
): ContentGenerationSession!

Returns: ContentGenerationSession!

Arguments:

ArgumentTypeDefaultDescription
inputCreateContentGenerationSessionInput!

updateContentGenerationSession
Link copied!

updateContentGenerationSession(
input: UpdateContentGenerationSessionInput!
): ContentGenerationSession!

Returns: ContentGenerationSession!

Arguments:

ArgumentTypeDefaultDescription
inputUpdateContentGenerationSessionInput!

deleteContentGenerationSession
Link copied!

deleteContentGenerationSession(
input: DeleteContentGenerationSessionInput!
): Boolean!

Returns: Boolean!

Arguments:

ArgumentTypeDefaultDescription
inputDeleteContentGenerationSessionInput!

submitContentGenerationSessionMessage
Link copied!

This mutation uses Amplience Credits.

Submits a message to a Content Studio session. Returns the details of the submitted message and a URL to stream the LLM response from, ideal for user facing front ends.

Consumes Amplience credits.

Labs preview.

See also: Mutations that use Amplience Credits

submitContentGenerationSessionMessage(
input: SubmitContentGenerationSessionMessageInput!
): SubmitContentGenerationSessionMessageResponse!

Returns: SubmitContentGenerationSessionMessageResponse!

Arguments:

ArgumentTypeDefaultDescription
inputSubmitContentGenerationSessionMessageInput!

scoreContentGenerationSessionMessage
Link copied!

scoreContentGenerationSessionMessage(
input: ScoreContentGenerationSessionMessageInput!
): ContentGenerationSessionMessage!

Returns: ContentGenerationSessionMessage!

Arguments:

ArgumentTypeDefaultDescription
inputScoreContentGenerationSessionMessageInput!

generateEditForContentGenerationSessionMessageProperty
Link copied!

This mutation uses Amplience Credits.

Submits a request to edit a selection of text. Returns a URL to stream the LLM response from.

Consumes Amplience credits.

Labs preview.

See also: Mutations that use Amplience Credits

generateEditForContentGenerationSessionMessageProperty(
input: GenerateEditForContentGenerationSessionMessagePropertyInput!
): GenerateEditForContentGenerationSessionMessagePropertyResponse!

Returns: GenerateEditForContentGenerationSessionMessagePropertyResponse!

Arguments:

ArgumentTypeDefaultDescription
inputGenerateEditForContentGenerationSessionMessagePropertyInput!

saveContentGenerationSessionMessageTextProperty
Link copied!

saveContentGenerationSessionMessageTextProperty(
input: SaveContentGenerationSessionMessageTextPropertyInput!
): Boolean!

Returns: Boolean!

Arguments:

ArgumentTypeDefaultDescription
inputSaveContentGenerationSessionMessageTextPropertyInput!

Briefs & templates
Link copied!

createContentGenerationBriefTemplate
Link copied!

createContentGenerationBriefTemplate(
input: CreateContentGenerationBriefTemplateInput!
): ContentGenerationBriefTemplate!

Returns: ContentGenerationBriefTemplate!

Arguments:

ArgumentTypeDefaultDescription
inputCreateContentGenerationBriefTemplateInput!

updateContentGenerationBriefTemplate
Link copied!

updateContentGenerationBriefTemplate(
input: UpdateContentGenerationBriefTemplateInput!
): ContentGenerationBriefTemplate!

Returns: ContentGenerationBriefTemplate!

Arguments:

ArgumentTypeDefaultDescription
inputUpdateContentGenerationBriefTemplateInput!

deleteContentGenerationBriefTemplate
Link copied!

deleteContentGenerationBriefTemplate(
input: DeleteContentGenerationBriefTemplateInput!
): Boolean!

Returns: Boolean!

Arguments:

ArgumentTypeDefaultDescription
inputDeleteContentGenerationBriefTemplateInput!

Audiences, brand voices & tones
Link copied!

createContentGenerationAudience
Link copied!

createContentGenerationAudience(
input: CreateContentGenerationAudienceInput!
): ContentGenerationAudience!

Returns: ContentGenerationAudience!

Arguments:

ArgumentTypeDefaultDescription
inputCreateContentGenerationAudienceInput!

updateContentGenerationAudience
Link copied!

updateContentGenerationAudience(
input: UpdateContentGenerationAudienceInput!
): ContentGenerationAudience!

Returns: ContentGenerationAudience!

Arguments:

ArgumentTypeDefaultDescription
inputUpdateContentGenerationAudienceInput!

deleteContentGenerationAudience
Link copied!

deleteContentGenerationAudience(
input: DeleteContentGenerationAudienceInput!
): Boolean!

Returns: Boolean!

Arguments:

ArgumentTypeDefaultDescription
inputDeleteContentGenerationAudienceInput!

createContentGenerationBrandVoice
Link copied!

createContentGenerationBrandVoice(
input: CreateContentGenerationBrandVoiceInput!
): ContentGenerationBrandVoice!

Returns: ContentGenerationBrandVoice!

Arguments:

ArgumentTypeDefaultDescription
inputCreateContentGenerationBrandVoiceInput!

updateContentGenerationBrandVoice
Link copied!

updateContentGenerationBrandVoice(
input: UpdateContentGenerationBrandVoiceInput!
): ContentGenerationBrandVoice!

Returns: ContentGenerationBrandVoice!

Arguments:

ArgumentTypeDefaultDescription
inputUpdateContentGenerationBrandVoiceInput!

deleteContentGenerationBrandVoice
Link copied!

deleteContentGenerationBrandVoice(
input: DeleteContentGenerationBrandVoiceInput!
): Boolean!

Returns: Boolean!

Arguments:

ArgumentTypeDefaultDescription
inputDeleteContentGenerationBrandVoiceInput!

createContentGenerationTone
Link copied!

createContentGenerationTone(
input: CreateContentGenerationToneInput!
): ContentGenerationTone!

Returns: ContentGenerationTone!

Arguments:

ArgumentTypeDefaultDescription
inputCreateContentGenerationToneInput!

updateContentGenerationTone
Link copied!

updateContentGenerationTone(
input: UpdateContentGenerationToneInput!
): ContentGenerationTone!

Returns: ContentGenerationTone!

Arguments:

ArgumentTypeDefaultDescription
inputUpdateContentGenerationToneInput!

deleteContentGenerationTone
Link copied!

deleteContentGenerationTone(
input: DeleteContentGenerationToneInput!
): Boolean!

Returns: Boolean!

Arguments:

ArgumentTypeDefaultDescription
inputDeleteContentGenerationToneInput!

Examples
Link copied!

createContentGenerationExample
Link copied!

createContentGenerationExample(
input: CreateContentGenerationExampleInput!
): ContentGenerationExample!

Returns: ContentGenerationExample!

Arguments:

ArgumentTypeDefaultDescription
inputCreateContentGenerationExampleInput!

updateContentGenerationExample
Link copied!

updateContentGenerationExample(
input: UpdateContentGenerationExampleInput!
): ContentGenerationExample!

Returns: ContentGenerationExample!

Arguments:

ArgumentTypeDefaultDescription
inputUpdateContentGenerationExampleInput!

deleteContentGenerationExample
Link copied!

deleteContentGenerationExample(
input: DeleteContentGenerationExampleInput!
): Boolean!

Returns: Boolean!

Arguments:

ArgumentTypeDefaultDescription
inputDeleteContentGenerationExampleInput!

createContentGenerationExampleFolder
Link copied!

createContentGenerationExampleFolder(
input: CreateContentGenerationExampleFolderInput!
): ContentGenerationExampleFolder!

Returns: ContentGenerationExampleFolder!

Arguments:

ArgumentTypeDefaultDescription
inputCreateContentGenerationExampleFolderInput!

updateContentGenerationExampleFolder
Link copied!

updateContentGenerationExampleFolder(
input: UpdateContentGenerationExampleFolderInput!
): ContentGenerationExampleFolder!

Returns: ContentGenerationExampleFolder!

Arguments:

ArgumentTypeDefaultDescription
inputUpdateContentGenerationExampleFolderInput!

deleteContentGenerationExampleFolder
Link copied!

deleteContentGenerationExampleFolder(
input: DeleteContentGenerationExampleFolderInput!
): Boolean!

Returns: Boolean!

Arguments:

ArgumentTypeDefaultDescription
inputDeleteContentGenerationExampleFolderInput!

Jobs & models
Link copied!

submitContentGenerationJob
Link copied!

This mutation uses Amplience Credits.

Submits a content generation job and returns the details of the submitted job. Full LLM text response retrievable without streaming, by accessing the job.

Best for programmatic access to an LLM.

Consumes Amplience credits.

Labs preview.

See also: Mutations that use Amplience Credits

submitContentGenerationJob(
input: SubmitContentGenerationJobInput!
): ContentGenerationJob!

Returns: ContentGenerationJob!

Arguments:

ArgumentTypeDefaultDescription
inputSubmitContentGenerationJobInput!

enableContentGenerationModel
Link copied!

enableContentGenerationModel(
input: EnableContentGenerationModelInput!
): Boolean!

Returns: Boolean!

Arguments:

ArgumentTypeDefaultDescription
inputEnableContentGenerationModelInput!

disableContentGenerationModel
Link copied!

disableContentGenerationModel(
input: DisableContentGenerationModelInput!
): Boolean!

Returns: Boolean!

Arguments:

ArgumentTypeDefaultDescription
inputDisableContentGenerationModelInput!

Text & SEO generation
Link copied!

generateRichText
Link copied!

This mutation uses Amplience Credits.

See also: Mutations that use Amplience Credits

generateRichText(
input: RichTextGenerationInput!
): RichTextGenerationTicket

Returns: RichTextGenerationTicket

Arguments:

ArgumentTypeDefaultDescription
inputRichTextGenerationInput!

generateSEOText
Link copied!

This mutation uses Amplience Credits.

See also: Mutations that use Amplience Credits

generateSEOText(
input: SEOGenerationInput!
): SEOGenerationResponse

Returns: SEOGenerationResponse

Arguments:

ArgumentTypeDefaultDescription
inputSEOGenerationInput!

Content review
Link copied!

submitContentReview
Link copied!

submitContentReview(
input: SubmitContentReviewInput!
): SubmitContentReviewResponse!

Returns: SubmitContentReviewResponse!

Arguments:

ArgumentTypeDefaultDescription
inputSubmitContentReviewInput!

Content flow
Link copied!

createContentFlow
Link copied!

createContentFlow(
input: CreateContentFlowInput!
): ContentFlow!

Returns: ContentFlow!

Arguments:

ArgumentTypeDefaultDescription
inputCreateContentFlowInput!

updateContentFlow
Link copied!

updateContentFlow(
input: UpdateContentFlowInput!
): ContentFlow!

Returns: ContentFlow!

Arguments:

ArgumentTypeDefaultDescription
inputUpdateContentFlowInput!

deleteContentFlow
Link copied!

deleteContentFlow(
input: DeleteContentFlowInput!
): Boolean!

Returns: Boolean!

Arguments:

ArgumentTypeDefaultDescription
inputDeleteContentFlowInput!

runContentFlow
Link copied!

runContentFlow(
input: RunContentFlowInput!
): String!

Returns: String!

Arguments:

ArgumentTypeDefaultDescription
inputRunContentFlowInput!

testContentFlow
Link copied!

testContentFlow(
input: RunContentFlowInput!
): String!

Returns: String!

Arguments:

ArgumentTypeDefaultDescription
inputRunContentFlowInput!

cancelContentFlowRun
Link copied!

cancelContentFlowRun(
input: CancelContentFlowRunInput!
): Boolean!

Returns: Boolean!

Arguments:

ArgumentTypeDefaultDescription
inputCancelContentFlowRunInput!

setContentFlowStatus
Link copied!

setContentFlowStatus(
input: SetContentFlowStatusInput!
): Boolean!

Returns: Boolean!

Arguments:

ArgumentTypeDefaultDescription
inputSetContentFlowStatusInput!