MARKETPLACE
PLUGINS
PLUGBRAIN AI
PlugBrain AI logo

PlugBrain AI

Published April 2026
   β€’    Updated this month

Plugin details

Stop struggling with complex JSON arrays and unsecured API calls. PlugBrain AI brings the power of OpenAI (GPT-4o & GPT-4o-mini) to your Bubble app with a focus on security, ease of use, and professional UI. πŸ›‘οΈπŸ’»
Why choose PlugBrain AI?

Ready-to-use Chat Widget: A floating, Intercom-style chat interface that you can customize with your brand colors, icons, or emojis. 🎨

Smart Memory Management: Our unique "Sliding Window" logic keeps conversations coherent while protecting you from high token costs. πŸ“‰

Structured Data Extraction: Turn messy text into clean JSON to automate your database workflows. πŸ—‚οΈ

Server-Side Security: Your API Keys are always kept on the backend, never exposed to the browser. πŸ”’

Persistent history loading, system prompt templates, and multi-model support.

Multi-Provider Engine: Switch dynamically between OpenAI (GPT-4o), Anthropic (Claude 3.5), and Google (Gemini 1.5) in a single workflow.

Future-Proof OpenAI Assistants: Fully upgraded to the OpenAI Assistants API v2. Support for Vector Stores (File Search) and memory.

Agnostic UI Chat Widget: A premium, fully customizable chat interface featuring drag-to-scroll quick replies, typing indicators, auto-scroll for images, and a seamless "New Chat" reset function.

DALL-E Image Generation (OpenAI Exclusive): Generate high-quality images directly within your app workflows.

Audio Transcription (OpenAI Exclusive): Convert speech to text seamlessly using Whisper.

Strict JSON Data Extraction: Force AI to return perfectly formatted JSON for backend processing.

Build SaaS chatbots, advanced internal tools, or financial specialists in minutes, not weeks! πŸ› οΈ


PlugBrain AI V3: Your App's Ultimate AI Assistant Widget πŸ€–βœ¨
We are taking PlugBrain AI from a simple floating chat to a complete, Intercom-style Support & Assistant Hub. V3 introduces a stunning multi-view architecture, allowing your users to manage multiple conversations seamlessly.

✨ What's New in V3?

πŸ“₯ The Conversations Hub (Inbox View): When users open the widget, they are now greeted with a beautiful list of their past conversations, complete with titles, previews, and timestamps.

πŸ•’ Smart Date Formatter: No need to format dates in Bubble! Just pass the raw creation dates, and the plugin automatically converts them to human-readable text like "Just now", "5m ago", "Yesterday", or "MM/DD/YYYY".

πŸ”„ Seamless View Navigation: Users can effortlessly switch between the Inbox and active chats with a slick, native-feeling UI (including a "Back" button and a "New Chat" sticky footer).

πŸ›‘οΈ Bulletproof UI & State Management: Completely rebuilt with advanced CSS Flexbox rules to prevent layout breaking on long lists, and protected against Bubble workflow race conditions.

πŸ‘† Draggable Quick Replies: The horizontal Quick Replies menu now supports smooth click-and-drag mouse navigation!

Demo Page: https://demo-app-56978.bubbleapps.io/version-test/plugbrain_ai/1776767590669x976863657581558800

Editor Page: https://bubble.io/page?id=demo-app-56978&tab=Design&name=plugbrain_ai

$30

One time  β€’  Or  $5/mo

stars   β€’   0 ratings
0 installs  
This plugin does not collect or track your personal data.

Platform

Web

Contributor details

NoCoddo logo
NoCoddo
Joined 2025   β€’   90 Plugins
View contributor profile

Instructions

Complete Instructions (Setup Guide) Step 1: Configuration πŸ”‘

Get your API Key from the OpenAI Dashboard.

In the Bubble Plugin Tab, paste your key into the OpenAI API Key field.

Step 2: Prepare your Database πŸ—„οΈ

Go to Data > Data Types > User.

Create a new field called AI_Chat_Memory (Type: Text).

Step 3: Add the Widget 🎨

Drag the PlugBrain Chat Widget onto any page.

Customize the Title, Primary Color, and Bot Icon/Emoji.

Set the Saved History field to: Current User's AI_Chat_Memory.

Step 4: The Magic Workflow ⚑

Create a Workflow for the event: "A PlugBrain Chat Widget - Message Sent".

Action 1: Run Chat (With Memory).

New Message: Widget's latest_user_message.

History: Widget's chat_history.

Action 2: Run Element Action Receive AI Reply.

Reply Text: Result of Step 1's reply.

Updated History: Result of Step 1's updated_history.

Action 3: Make changes to Current User -> AI_Chat_Memory = Result of Step 1's updated_history.


V2 Full Instructions

1. πŸ”‘ API Key Setup

Go to the Plugins tab in Bubble.

Find PlugBrain AI and paste your API keys in the respective fields (OpenAI, Anthropic, Google Gemini). Note: You only need keys for the providers you actually intend to use!

2. 🎨 Setting up the Chat Widget

Drag and drop the PlugBrain Chat Widget element onto your page.

Customize colors, bot icon/emoji, and placeholder text in the element's property editor.

Pro Tip: Use the Quick Replies field (comma-separated, e.g., "Help, Pricing, Contact") to generate drag-to-scroll action buttons above the input field!

3. πŸ’¬ Workflow: Standard Chat (Multi-Provider)

Trigger: When PlugBrain AI message_sent

Action 1: Choose Chat with Memory. Select your Provider (OpenAI, Anthropic, or Google), input the model (e.g., gpt-4o-mini, claude-sonnet-4-6, gemini-1.5-flash), and pass the Latest User Message and Chat History.

Action 2: Use Receive AI Reply (Element Action) to inject the result back into the UI widget.

4. πŸ“š Workflow: Specialist Assistant (OpenAI Knowledge Base)

Create your Assistant in the OpenAI Dashboard and copy the ID (asst_...).

Action 1: Choose Chat with Assistant. Paste your Assistant ID. Pass the Thread ID state (so it remembers the conversation) and the new message.

Action 2: Use Receive AI Reply to inject the response and the new Thread ID.

5. πŸ–ΌοΈ & πŸŽ™οΈ Image & Audio Tools

Use the Generate Image or Transcribe Audio actions anywhere in your backend or frontend workflows (These are OpenAI exclusive features).


πŸ“– Complete Instructions & Documentation
To unlock the full potential of V3, you need to connect the plugin to your Bubble Database. Here is the ultimate guide to setting up Chat History.

πŸ—„οΈ 1. Database & Custom State Setup
Create a Data Type in Bubble called Chat with fields: Title (Text), Preview (Text), and History (Text).

On your page, create a Custom State called Current_Chat (Type: Chat). This will act as the brain, telling Bubble which conversation the user is currently looking at.

In the PlugBrain element properties, set saved_history to: Your Page's Current_Chat's History.

The Workflows (How to Save & Load)
Scenario A: User opens an Old Chat

Event: A PlugBrain AI Old Chat Opened

Action: Set State -> Current_Chat = Do a search for Chats (Unique ID = This PlugBrain AI's selected_chat_id) :first item.
(The plugin will instantly read the new History and draw the chat!)

Scenario B: User clicks New Chat

Event: A PlugBrain AI New Chat Requested

Action: Set State -> Current_Chat = (leave value empty).

Scenario C: User Sends a Message

Event: A PlugBrain AI Message Sent

Step 1 (If New Chat): Only when Current_Chat is empty -> Create a new Chat (Preview = latest_user_message). Then, Set State Current_Chat to the Result of Step 1.

Step 2 (The AI): Run the Chat (With Memory) Server Action. Pass Current_Chat's History and latest_user_message.

Step 3 (Save): Make changes to a thing -> Current_Chat. Update the History field with the JSON output from Step 2, and update the Preview.

Types

This plugin can be found under the following types:
Element   β€’   Event   β€’   Action

Categories

This plugin can be found under the following categories:
AI   β€’   Chat   β€’   Customer Support   β€’   Productivity   β€’   Data (things)   β€’   Visual Elements

Resources

Support contact
Tutorial

Rating and reviews

No reviews yet

This plugin has not received any reviews.
Bubble