ToolJet is a low-code platform that lets you build apps by connecting APIs and data sources, with Portkey integration adding AI features like chat interfaces and automation.
Use this file to discover all available pages before exploring further.
This guide provides a streamlined process for integrating Portkey AI into ToolJet using the ToolJet Marketplace Plugin. Follow this guide to add AI-powered capabilities such as chat completions and automations into your ToolJet apps, helping developers create powerful, low-code applications backed by Portkey’s AI for chat-based interfaces and automated workflows.
Generates completions based on a pre-defined prompt.Parameters:
Prompt ID: The ID of the pre-defined prompt.
Variables: Variables to use in the prompt.
Parameters: Additional parameters for the completion.
Metadata: Additional metadata for the request.
Response Example
Response Example
{ "id": "chatcmpl-9w6D8jZciWVf1DzkgqNZK14KUvA4d", "object": "chat.completion", "created": 1723633926, "model": "gpt-4o-mini-2024-07-18", "choices": [ { "index": 0, "message": { "role": "assistant", "content": "The Industrial Revolution, starting in the late 18th century, transformed production from hand methods to machine-based processes, introducing new manufacturing techniques, steam power, and machine tools. It marked a shift from bio-fuels to coal, with the textile industry leading the way. This period resulted in significant population growth, increased average income, and improved living standards.", "refusal": null }, "logprobs": null, "finish_reason": "stop" } ], "usage": { "prompt_tokens": 145, "completion_tokens": 71, "total_tokens": 216 }, "system_fingerprint": "fp_48196bc67a" }