Pro plan. OpenAI works through a connection and HTTP steps, which are part of Pro and Agency (and the free trial). Anything you already have keeps working on every plan. See Plans and billing.
How it connects: OpenAI’s API with your key as a bearer token. See OpenAI’s Chat Completions reference. The answer below follows OpenAI’s docs; the model id is yours to choose.
Before you start
- OpenAI billing: the API is billed per token on your OpenAI account, separately from ChatGPT plans.
- An API key: create a project key in the OpenAI platform.
- Data: only the fields you put in the prompt go to OpenAI, under your agreement with OpenAI.
1. Connect OpenAI
In Kerux, open Integrations > Connections, click Connect on Custom API (under Developers):- How it signs in: Bearer token, paste the key.
- Base URL:
https://api.openai.com
2. Ask for the line
Add a Webhook / HTTP step namedopenai, pick the connection:
{{steps.openai.response.body.choices.0.message.content}}, followed by your own text.
3. Keep it safe
- Test on a few contacts before launching, and read the lines.
- If the call fails, the contact stops in Needs attention with OpenAI’s message; nothing odd goes out.
Test with one contact
In the Builder, click Test to open Test on one contact. The journey shows the prompt that was sent and OpenAI’s answer.Common errors
401 invalid_api_key
401 invalid_api_key
The key is wrong or was revoked. Create a new one and edit the connection.
404 model_not_found
404 model_not_found
The model id is wrong or your project can’t use it. Check the model in OpenAI’s docs and your project’s limits.
429 rate limit or insufficient_quota
429 rate limit or insufficient_quota
Too many calls, or no credit left on the account. Kerux retries rate limits later; add credit for quota errors.