OpenAI
Generate text, images, and audio using OpenAI models. In Appbricx, your workflows and server functions call it by name once it is connected.
What you can do
9 actions, each one call from a workflow or a server function. Triggers come from your app: a row changing, a schedule or a webhook.
- Ask ChatGPTAsk ChatGPT anything you want!
ask_chatgpt - Generate ImageGenerate an image using text-to-image models
generate_image - Text-to-SpeechGenerate an audio recording from text
text_to_speech - Transcribe AudioTranscribe audio to text using whisper-1 model
transcribe - Vision PromptAsk GPT a question about an image
vision_prompt - Ask AssistantAsk a GPT assistant anything you want!
ask_assistant - Extract Structured Data from TextReturns structured data from provided unstructured text.
extract-structured-data - Translate AudioTranslate audio to text using whisper-1 model
translate - Custom API CallMake a custom API call to a specific endpoint
custom_api_call
Set it up
About two minutes, once per project or once for the whole workspace.
- Open Integrations in the builder
Backend panel, Integrations tab, then OpenAI. To connect it for every project, use Workspace settings, Integrations.
- Add your credentials
An API key (or token) from your OpenAI account, pasted once. It is stored encrypted and only read on the server when an action runs.
- API key From OpenAI's settings
- Call an action
From a workflow, by integration id and action name. The call answers with success, output and, when it fails, the reason.
Workflow // .workflow.js (native ctx) export async function run(ctx) { const res = await ctx.integrations.invoke("openai", "ask_chatgpt", { "model": "<model>", "prompt": "<question>", "maxTokens": 1 }); if (!res.success) throw new Error(res.error); ctx.log.info("OpenAI answered", { output: res.output }); }
More in AI and ML
OpenAI and its logo are trademarks of their owner, shown only to identify the service this integration connects to. Their use does not imply endorsement by, or affiliation with, that company.