Overview
You can create links to Ninja that automatically prefill a message in the text input. This is useful for:- Sharing a task prompt with a colleague
- Embedding contextual links in emails, docs, or internal tools
- Creating quick-action buttons that start a specific workflow
?q= parameter:
How it works
When a user opens a Ninja link with a?q= query parameter, the message is automatically placed in the text input so they can review it before submitting.
URL format
%20 or +.
Examples
| Link | Message |
|---|---|
https://ninja.new/?q=Connect%20my%20Shopify%20store | Connect my Shopify store |
https://ninja.new/?q=Write+a+product+description+for+my+new+sneakers | Write a product description for my new sneakers |
https://ninja.new/?q=Analyze%20my%20top%2010%20selling%20products | Analyze my top 10 selling products |
Building links in JavaScript
Link builder
Use this tool to generate a prefilled Ninja link:The user must be logged in to Ninja to submit the message. If they are not logged in, they will be redirected to the login page first.