API Documentation
Web Scrape
Web Search
Prompt Engine
Speech to Text
File Store
Prompt Engine
Run Prompt
Execute a prompt using the prompt id.
POST
/
v1
/
prompt_engine
/
{id}
Copy
import { JigsawStack } from "jigsawstack";
const jigsaw = JigsawStack({ apiKey: "your-api-key" });
const response = await jigsaw.prompt_engine.run({
"input_values": {
"text": "How to get started with JigsawStack?"
},
"id": "0073d008-da9b-4c27-90a8-0240f3ecd4f5"
})
Copy
{
"success": true,
"result": {
"outline": [
{
"section": "Introduction to JigsawStack"
},
{
"section": "What is JigsawStack?"
},
{
"section": "Key Features and Benefits"
},
{
"section": "Prerequisites"
},
{
"section": "Setting up Your Environment"
},
{
"section": "Installation Guide"
},
{
"section": "Creating Your First JigsawStack Project"
},
{
"section": "Basic Project Structure"
},
{
"section": "Understanding Core Concepts"
},
{
"section": "Components"
},
{
"section": "Data Binding"
},
{
"section": "Routing"
},
{
"section": "Example: Building a Simple UI"
},
{
"section": "Step-by-step tutorial"
},
{
"section": "Testing and Debugging"
},
{
"section": "Best Practices"
},
{
"section": "Resources and Further Learning"
},
{
"section": "Official Documentation"
},
{
"section": "Community Forums"
},
{
"section": "Conclusion"
}
]
},
"_usage": {
"input_tokens": 17,
"output_tokens": 188,
"inference_time_tokens": 1741,
"total_tokens": 1946
}
}
Header
Your JigsawStack API key
Body
The input values. This is required if the inputs
parameter was specified
when creating a prompt. Each input value has a 500000
character limit
If set, partial message chunk will be sent.
Response
Indicates whether the call was successful.
Copy
import { JigsawStack } from "jigsawstack";
const jigsaw = JigsawStack({ apiKey: "your-api-key" });
const response = await jigsaw.prompt_engine.run({
"input_values": {
"text": "How to get started with JigsawStack?"
},
"id": "0073d008-da9b-4c27-90a8-0240f3ecd4f5"
})
Copy
{
"success": true,
"result": {
"outline": [
{
"section": "Introduction to JigsawStack"
},
{
"section": "What is JigsawStack?"
},
{
"section": "Key Features and Benefits"
},
{
"section": "Prerequisites"
},
{
"section": "Setting up Your Environment"
},
{
"section": "Installation Guide"
},
{
"section": "Creating Your First JigsawStack Project"
},
{
"section": "Basic Project Structure"
},
{
"section": "Understanding Core Concepts"
},
{
"section": "Components"
},
{
"section": "Data Binding"
},
{
"section": "Routing"
},
{
"section": "Example: Building a Simple UI"
},
{
"section": "Step-by-step tutorial"
},
{
"section": "Testing and Debugging"
},
{
"section": "Best Practices"
},
{
"section": "Resources and Further Learning"
},
{
"section": "Official Documentation"
},
{
"section": "Community Forums"
},
{
"section": "Conclusion"
}
]
},
"_usage": {
"input_tokens": 17,
"output_tokens": 188,
"inference_time_tokens": 1741,
"total_tokens": 1946
}
}
Was this page helpful?
Copy
import { JigsawStack } from "jigsawstack";
const jigsaw = JigsawStack({ apiKey: "your-api-key" });
const response = await jigsaw.prompt_engine.run({
"input_values": {
"text": "How to get started with JigsawStack?"
},
"id": "0073d008-da9b-4c27-90a8-0240f3ecd4f5"
})
Copy
{
"success": true,
"result": {
"outline": [
{
"section": "Introduction to JigsawStack"
},
{
"section": "What is JigsawStack?"
},
{
"section": "Key Features and Benefits"
},
{
"section": "Prerequisites"
},
{
"section": "Setting up Your Environment"
},
{
"section": "Installation Guide"
},
{
"section": "Creating Your First JigsawStack Project"
},
{
"section": "Basic Project Structure"
},
{
"section": "Understanding Core Concepts"
},
{
"section": "Components"
},
{
"section": "Data Binding"
},
{
"section": "Routing"
},
{
"section": "Example: Building a Simple UI"
},
{
"section": "Step-by-step tutorial"
},
{
"section": "Testing and Debugging"
},
{
"section": "Best Practices"
},
{
"section": "Resources and Further Learning"
},
{
"section": "Official Documentation"
},
{
"section": "Community Forums"
},
{
"section": "Conclusion"
}
]
},
"_usage": {
"input_tokens": 17,
"output_tokens": 188,
"inference_time_tokens": 1741,
"total_tokens": 1946
}
}
Assistant
Responses are generated using AI and may contain mistakes.