Ask — API Configuration
Choose which articles Ask can cite in its answers.
useApi takes the request body that Ask sends to the
Answer API. The question comes from the reader, and the
other fields control the answer.
Filter the source articles
fq restricts which articles an answer can cite. It takes the same
filter syntax as every other Miso endpoint.
Set it on client.ui.asks, the context that covers every Ask workflow on the
page. Each follow-up answer is a new workflow, so a filter on client.ui.ask
does not reach it.
client.ui.asks.useApi({
fq: 'categories:"Markets"',
});
Filter values are matched exactly. Check yours against the rules for case and quoting.
To change the filter while the page runs, see Filtering (fq).
