Ask API - related questions

Generate related questions against an article.


Syntax

const response = await client.api.ask.relatedQuestions(payload, options);

Payload

The payload parameter is an object with the following properties:

Name Type Description
product_id string The product_id of the article to generate questions against.

Return value

A Promise of response object with the following properties:

Name Type Description
related_questions array of strings An array of questions.

Examples

const payload = {
product_id: '...'
};
const { related_questions } = await client.api.ask.relatedQuestions(payload);