Skip to main content
Integrating OpenAI transforms your chatbot into an intelligent assistant capable of understanding context, generating creative text, and even creating images.

Connection Guide

1

Get Your API Key

  1. Log in to your OpenAI Platform account.
  2. Navigate to the API Keys section.
  3. Create a new secret key and copy it immediately.
2

Connect to Chatbot Builder AI

  1. Log in to your Chatbot Builder AI dashboard.
  2. Go to Settings > Integrations > Prompt Engineering (formerly OpenAI/ChatGPT).
  3. Click the Connect button.
  4. Paste your API Key and save.
3

Configure Business Prompt (The Brain)

Your “System Prompt” defines how your bot behaves.
  1. Click Edit on the integration page.
  2. In the Business Information or Prompt section, write a clear, detailed persona for your bot.
  • Example: “You are a helpful support agent for [Business Name]. You answer questions about [Product X] concisely and politely.”

Default Agent (Auto-GPT)

By default, Chatbot Builder AI uses the “Default Agent” to automatically answer any user message that doesn’t match a specific keyword or flow trigger.

Enable Auto-Reply

If you want the AI to handle all general conversation, ensure Default Agent (or “Automated Response”) is toggled ON in Settings.

Disable for Control

If you want to build strict, rule-based flows and only use AI when specifically requested, toggle Default Agent to OFF.

Using OpenAI in Flows

Besides the global default agent, you can use OpenAI actions inside specific flows for targeted tasks.

1. Generate Text

Use this to create dynamic responses based on user input.
  • Action: OpenAI > Generate Text
  • Input: You provide a prompt (e.g., “Write a thank you note for user_name”).
  • Output: The result is saved to a Custom Field (e.g., ai_response) which you can then display in a text bubble.

2. Trigger Actions (Functions)

You can instruct the AI to trigger specific flows instead of just talking.
  • Setup: Define Functions in the integration settings.
  • Usage: If a user says “Book a meeting,” the AI recognizes the intent and triggers your “Booking Flow” instead of just replying with text.

3. Generate Images

Turn text descriptions into images.
  • Action: OpenAI > Generate Image
  • Input: A description (e.g., “A futuristic city skyline at sunset”).
  • Output: The action produces an image URL you can display in an Image, Card, or Gallery element.
Pro Tip: Your System Prompt is the single most important factor in your bot’s quality. Be specific about what the bot should and should not do.