Explore — API Configuration
Choose how many questions Explore shows under an article, and which articles they come from.
useApi takes the request body that Explore sends to the
Related Questions API. product_id
names the article, and the other fields control what comes back.
Number of questions
rows sets how many questions to ask for. The default is 5.
workflow.useApi({
product_id: "art_001",
rows: 3,
});
Miso returns fewer than rows questions when it has fewer for that article.
Filter the source articles
fq restricts which articles Miso draws the questions from. It takes the same
filter syntax as every other Miso endpoint.
workflow.useApi({
product_id: "art_001",
fq: 'categories:"Markets"',
});
Render the filter from your CMS, the same way as product_id. To keep each
article's questions inside its own section, write that section into the
filter.
Filter values are matched exactly. Check yours against the rules for case and quoting.
