# OpenAi ChatGPT Access to database

**URL:** <https://forum.bubble.io/t/openai-chatgpt-access-to-database/256876>\
**Category:** APIs\
**Created:** [April 11, 2023, 6:34pm UTC](https://forum.bubble.io/t/openai-chatgpt-access-to-database/256876 "2023-04-11T18:34:33Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![dleaf](https://avatars.discourse-cdn.com/v4/letter/d/f19dbf/32.png) [@dleaf](https://forum.bubble.io/u/dleaf)\
**Post date:** [April 11, 2023, 6:34pm UTC](https://forum.bubble.io/t/openai-chatgpt-access-to-database/256876/1 "2023-04-11T18:34:33Z")

</div>

How can I connect ChatGPT to bubble and give it access to my app’s database?  
Can I for example do that through the “system” role? Or is there another way of doing so?  
For now what I want is a chatbot powered by ChatGPT which can assist users for better user experience. And by giving suggestions to existing data. From the way I can think of it now is that I can list of the things I want chatgpt to know in the “system” role in the API call and maybe chatgpt could use this information for suggestions and answering questions.

So what’s yall thoughts on this? Would really like to hear out your thoughts!

---

<div class="post-metadata">

**Author:** ![keith](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/keith/32/56020_2.png) [@keith](https://forum.bubble.io/u/keith)\
**Post date:** [April 11, 2023, 6:42pm UTC](https://forum.bubble.io/t/openai-chatgpt-access-to-database/256876/2 "2023-04-11T18:42:27Z")

</div>

There’s a plugin architecture coming for ChatGPT. This feature is currently accessed via a waitlist. Check OpenAI’s site.

---

<div class="post-metadata">

**Author:** ![J805](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/j805/32/41267_2.png) [@J805](https://forum.bubble.io/u/J805)\
**Post date:** [April 11, 2023, 6:44pm UTC](https://forum.bubble.io/t/openai-chatgpt-access-to-database/256876/3 "2023-04-11T18:44:00Z")

</div>

Hey @dleaf 👋

There are a few ways to do this, it really depends on how you have your database set up.

In mine, I added the data to ChatGPT using a backend workflow. I can ignore privacy rules if need be to access the data I need this way. Then you can send it whatever data you need.

Does that make sense? I’m not sure if this is what you were looking for.

---

<div class="post-metadata">

**Author:** ![dleaf](https://avatars.discourse-cdn.com/v4/letter/d/f19dbf/32.png) [@dleaf](https://forum.bubble.io/u/dleaf)\
**Post date:** [April 11, 2023, 7:48pm UTC](https://forum.bubble.io/t/openai-chatgpt-access-to-database/256876/4 "2023-04-11T19:48:39Z")

</div>

I have checked their website but not really found the one you mentioned. Could you please provide a link so I can have a look to it? I’d really appreciate it.

---

<div class="post-metadata">

**Author:** ![dleaf](https://avatars.discourse-cdn.com/v4/letter/d/f19dbf/32.png) [@dleaf](https://forum.bubble.io/u/dleaf)\
**Post date:** [April 11, 2023, 7:49pm UTC](https://forum.bubble.io/t/openai-chatgpt-access-to-database/256876/5 "2023-04-11T19:49:47Z")

</div>

Umm and where would you push this data into? Will you send it via the prompt or just as I said in the system role?

---

<div class="post-metadata">

**Author:** ![J805](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/j805/32/41267_2.png) [@J805](https://forum.bubble.io/u/J805)\
**Post date:** [April 11, 2023, 8:10pm UTC](https://forum.bubble.io/t/openai-chatgpt-access-to-database/256876/6 "2023-04-11T20:10:22Z")

</div>

I put it into the prompt and it has worked well. It might work in System too though. I just haven’t tried it.

---

<div class="post-metadata">

**Author:** ![keith](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/keith/32/56020_2.png) [@keith](https://forum.bubble.io/u/keith)\
**Post date:** [April 11, 2023, 8:14pm UTC](https://forum.bubble.io/t/openai-chatgpt-access-to-database/256876/7 "2023-04-11T20:14:39Z")

</div>

> **[ChatGPT plugins](https://openai.com/blog/chatgpt-plugins)**
>
> We’ve implemented initial support for plugins in ChatGPT. Plugins are tools designed specifically for language models with safety as a core principle, and help ChatGPT access up-to-date information, run computations, or use third-party services.

---

<div class="post-metadata">

**Author:** ![felipesantosdutra21](https://avatars.discourse-cdn.com/v4/letter/f/74df32/32.png) [@felipesantosdutra21](https://forum.bubble.io/u/felipesantosdutra21)\
**Post date:** [September 14, 2024, 1:35pm UTC](https://forum.bubble.io/t/openai-chatgpt-access-to-database/256876/8 "2024-09-14T13:35:10Z")

</div>

Hi there, can you please provide more detail on this idea? In my case, I have a database of methodologies that are used in industry. In the front end, the user can ask questions about this activities and the chatbot (ChatGPT based) will answer the questions. But the thing is, I want the reply to be more specifics and updated as the information provided on the DB in bubble. I tried to achieve this by sending in the prompt information about the DB, but It did not worked. Can you please tell an appropriate way or point direction to accomplish this? Thank you!

---

<div class="post-metadata">

**Author:** ![J805](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/j805/32/41267_2.png) [@J805](https://forum.bubble.io/u/J805)\
**Post date:** [September 15, 2024, 12:25am UTC](https://forum.bubble.io/t/openai-chatgpt-access-to-database/256876/9 "2024-09-15T00:25:45Z")

</div>

Sure. Can you share what you have set up currently in a screenshot? 😊

---

<div class="post-metadata">

**Author:** ![redvivi](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/redvivi/32/59955_2.png) [@redvivi](https://forum.bubble.io/u/redvivi)\
**Post date:** [September 19, 2024, 8:10am UTC](https://forum.bubble.io/t/openai-chatgpt-access-to-database/256876/10 "2024-09-19T08:10:14Z")

</div>

Hey @J805 ,

Here is a setup example using streaming

> [@robot ᴺᴱᵂ ᴾᴸᵁᴳᴵᴺ OpenAI - GPT Streaming, Markdown & LaTeX, Function/Tool Calling, Files & Generated Graphics Display Support (inc. GPT 4o & o1 support) \[Keeps your keys secure\]](https://forum.bubble.io/t/openai-gpt-streaming-markdown-latex-function-tool-calling-files-generated-graphics-display-support-inc-gpt-4o-o1-support-keeps-your-keys-secure/339924/2):
>
> As additional note, if you want to connect the AI with your Bubble database, this plugin has this built-in feature through tools/functions. Let’s take a basic example and that you have both a Users and a Testimonials tables. You want the AI to answer based on any requests requiring those data. We also want to send the right data and not the full database (you may but that’s not my recommendation from token usage and context window perspective), so we must detect what is the user intent and f…

---

<div class="post-metadata">

**Author:** ![redvivi](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/redvivi/32/59955_2.png) [@redvivi](https://forum.bubble.io/u/redvivi)\
**Post date:** [February 10, 2025, 2:18pm UTC](https://forum.bubble.io/t/openai-chatgpt-access-to-database/256876/11 "2025-02-10T14:18:55Z")

</div>

Hey guys!

Wanted to let you know that the above plugin has been updated with Native App Data Retrieval.  
In two-clicks ChatGPT fetches data from your app database when needed.

> [@robot ᴺᴱᵂ ᴾᴸᵁᴳᴵᴺ OpenAI - ChatGPT Streaming With Your App Data - (Prompt/Model Hiding, Markdown & LaTeX, Function/Tool Calling, Files & Generated Graphics Support (inc. GPT 4o, o1, o3 support)) \[Keeps your keys secure\]](https://forum.bubble.io/t/openai-chatgpt-streaming-with-your-app-data-prompt-model-hiding-markdown-latex-function-tool-calling-files-generated-graphics-support-inc-gpt-4o-o1-o3-support-keeps-your-keys-secure/339924/4):
>
> Hey guys, The latest update supercharge your app by letting ChatGPT automatically pull relevant data from your app database with respect to privacy rules to enhance responses (RAG, a.k.a Retrieval-Augmented Generation). No more manual searching—just seamless AI-powered insights! white_check_mark Step 1: Set App Data Retrieval on the element white_check_mark Step 2: Enable your App Data API for the desired fields …
