Query Parameters
Learn how to configure chat conversations using URL query parameters in IntelliAsk. Set models, endpoints, and conversation settings dynamically.
IntelliAsk can configure a chat conversation directly from the URL. Append query parameters to a chat path to choose the endpoint and model, pre-fill the input, or override conversation settings before the chat loads.
Chat Paths
Query parameters must follow a valid chat path:
- New conversations:
/c/new? - Existing conversations:
/c/[conversation-id]?(whereconversation-idis an existing one)
Basic Usage
The endpoint and model parameters cover most cases. Set both for predictable results:
Endpoint selection
Use endpoint on its own to switch endpoints without naming a model:
When only endpoint is set, IntelliAsk falls back to the last model selected for that endpoint (from localStorage). If there is no previous selection, it uses the first model in the endpoint's list.
The endpoint value must be one of:
For a custom endpoint, use its configured name as the value (case-insensitive):
Model selection
Use model on its own to switch models within the current endpoint:
When only model is set, IntelliAsk applies it only if the model exists in the current endpoint. The current endpoint is the default endpoint or the last one selected.
Prompt
The prompt parameter pre-populates the chat input:
q is an interchangeable shorthand for prompt:
Combine it with other parameters:
Automatic submission
Add submit=true to send the prompt automatically, without manual confirmation:
This is useful for automated workflows (Raycast, Alfred, Automator) and external integrations. Combine it with the other parameters for a fully scripted launch:
URL Encoding
Special characters in query values must be URL-encoded. Common substitutions:
| Character | Encoded |
|---|---|
: | %3A |
/ | %2F |
? | %3F |
# | %23 |
& | %26 |
= | %3D |
+ | %2B |
| Space | %20 (or +) |
For example:
JavaScript's built-in encodeURIComponent() handles the encoding for you:
Run this in your browser console (Ctrl+Shift+I) to see the encoded URL.
Specs, Agents, and Assistants
Model specs
Select a model spec by name:
This loads every setting defined by the spec. Other model parameters in the URL are ignored when spec is present.
Agents
Load an agent by ID without naming an endpoint:
This sets the endpoint to agents automatically.
Assistants
Load an assistant by ID the same way:
This sets the endpoint to assistants automatically.
Supported Parameters
IntelliAsk settings
| Parameter | Description |
|---|---|
maxContextTokens | Override the system-defined context window. |
resendFiles | Control file resubmission in subsequent messages. |
promptPrefix | Set custom instructions / system message. |
imageDetail | Image quality: low, auto, or high. Applies only to OpenAI, OpenAI-like custom endpoints, and Azure OpenAI (defaults to auto). |
spec | Select a model spec by exact name. When set, other model parameters are ignored in favor of the spec. If specs are configured with enforce: true, this parameter may be required for URL query params to work. |
fileTokenLimit | Maximum token limit for file processing, to control cost and resource usage. The request value overrides the YAML default. |
Model parameters
Supported model parameters vary by endpoint. Values must be valid according to the provider's API.
OpenAI, Custom, Azure OpenAI:
Google, Anthropic:
Anthropic, Bedrock (Anthropic models):
Set promptCache to true or false to toggle prompt caching:
See the Anthropic prompt caching docs and the Bedrock prompt caching docs for details.
Bedrock:
Assistants / Azure Assistants:
Most of these parameters are shared with Model Spec Preset Fields; refer there for the full reference.
Examples
Multiple parameters in one URL:
Loading a model spec with a prompt:
When using spec, other model parameters are ignored in favor of the spec's configuration.
Validation
All parameters are validated against IntelliAsk's schema before they are applied. Invalid parameters and values are ignored; valid settings are applied to the conversation.
Use query parameters carefully
- Misuse or exceeding provider limits can produce API errors.
- If you hit a bad request error, reset the conversation by clicking New Chat.
- A parameter has no effect if the selected endpoint does not support it.
Best Practices
- Set both
endpointandmodelwhenever possible. - Confirm the endpoint supports each parameter you pass.
- Keep values within the provider's limits.
- Test parameter combinations before sharing URLs.
Query parameters make it easy to share specific conversation configurations, bookmark different chat setups, and automate chat startup from external tools.
Last updated on