Skip to main content
ToolJet is a low-code platform for building apps. Integrate Portkey to add AI-powered chat, completions, and embeddings to your ToolJet apps.

Prerequisites

Watch Demo

Quick walkthrough of ToolJet’s UI components

Setup

1

Install Portkey Plugin

Go to ToolJet Dashboard → Plugins → Marketplace → Search PortkeyInstall.
2

Add as Data Source

  1. Go to Data Sources → Plugins → Add Portkey
  2. Enter:
    • Authorization: Your Portkey API Key
    • Default Provider: Your provider slug (e.g., @openai-prod)
  3. Test the connection
3

Use in Your App

  1. Go to Queries → Add Datasource → Select Portkey
  2. Choose an operation (Chat, Completion, Embedding, Prompt)
  3. Run to verify
4

Connect to UI

  1. Add Text Input and Button widgets
  2. Configure Button’s onClick to execute the Portkey query
  3. Display results in a Text Box

Supported Operations

Generate chat completions from messages.Parameters: Messages, Model, Max Tokens, Temperature, Stop Sequences, Metadata
Generate text completions from a prompt.Parameters: Prompt, Model, Max Tokens, Temperature, Stop Sequences, Metadata
Use pre-defined prompts from Portkey.Parameters: Prompt ID, Variables, Parameters, Metadata
Generate embeddings for text.Parameters: Input, Model, Metadata
For all operations, you can optionally specify a Config or override the default Provider.

Troubleshooting

IssueSolution
Authentication ErrorCheck API key and provider slug
Slow ResponseAdjust temperature or max_tokens
CORS IssuesEnsure API settings allow ToolJet’s domain

Next Steps