Overview
The Ask module allows your users to ask questions in natural language and receive AI-generated answers based on your content. This guide walks you through the four steps to get it running.1
Obtain Your API Key
Log in to the Miso Dashboard, select your target environment (e.g., Production), and navigate to the Overview section to copy your Publishable API Key.

There is one publishable key and one secret key per environment. The publishable key is used in client-side code; the secret key is used for server-side API calls.
2
Upload Your Corpus via API
Before the Ask module can answer questions, you need to upload your content to Miso using the Product / Content Upload API. You can do this with any HTTP client β the steps below use Postman.Endpoint β View full API referenceStep 1 β Set your request headersIn Postman, go to the Headers tab and add your Secret API Key:
Step 2 β Add your request bodySwitch to the Body tab, select raw β JSON, and paste your corpus data:Step 3 β Send and verifyClick Send. A 
You can verify the upload under Miso Dashboard β Data Sets β Catalog.

200 OK response confirms the corpus has been uploaded successfully.

3
Install the Miso SDK
Add the Miso JavaScript SDK to your webpage using either method:
- npm (Node Module)
- Script Tag
Install the SDK via npm:Then import it in your JavaScript file:
4
Add the Ask UI to Your Page
Place the container element in your HTML where you want the Ask interface to appear:Configure the workflow by adding the following script:
Complete Example
Here is a minimal working HTML file that puts it all together:client_sdk_test_ask.html, open it in a browser, and append ?q=media to the URL to see the Ask module in action.
Live Demo & Visuals
Once configured, the Miso Ask module provides a professional, interactive UI out of the box. To verify your setup is working:- Open
client_sdk_test_ask.htmlin a browser. - Append
?q=mediato the URL β you should see an AI-generated answer based on your uploaded corpus, along with follow-up suggestions and related resources.


API keys can be passed via the
api_key query parameter or the X-API-KEY request header. There is one publishable key and one secret key per environment β use the publishable key in client-side code and the secret key for server-side API calls.Next Steps
Template Helpers
Customize the layout and content of Ask UI elements.
Elements Reference
Browse all customizable UI components available in the Ask module.
Product / Content Upload API
Full reference for uploading your corpus to Miso.
Ask Questions API
The underlying API powering the Ask module Q&A responses.
Authentication
Learn how API keys work and how to authenticate your requests.