Installation
The Algolia Guides API Client package is available on the npm registry.Usage
Guide headlines
ThegetHeadlines method lets you retrieve different guides for your app.
JavaScript
getOrGenerateHeadlines method by passing a source parameter.
For this method you must use an API key with the search and addObject ACLs.
Only use this method on your backend or if you provide a layer of authentication.
JavaScript
Parameters
The customized instructions that the model should take into account for generating content,
for example, to refine the focus of the article, add constraints, or adjust to a target audience.
Guide content
ThegetContent method lets you retrieve the content of a guide.
JavaScript
getOrGenerateContent method by passing a source parameter.
For this method you must use an API key with the search and addObject ACLs.
Only use this method on your backend implementation or if you provide a layer of authentication.
JavaScript
Parameters
If
source is generated: the type of guide to generate.The customized instructions that the model should take into account for generating content,
for example, to refine the focus of the article, add constraints, or adjust to a target audience.
Gather feedback
Thevote method lets you gather feedback for the guide’s headlines or content.
This feature uses the Insights API to gather events related to Guides feedback.
This requires a user token.
JavaScript