# How can I create chat functionality?

**URL:** <https://forum.bubble.io/t/how-can-i-create-chat-functionality/334443>\
**Category:** Need help\
**Created:** [August 7, 2024, 1:03pm UTC](https://forum.bubble.io/t/how-can-i-create-chat-functionality/334443 "2024-08-07T13:03:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon67027686](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@anon67027686](https://forum.bubble.io/u/anon67027686)\
**Post date:** [August 7, 2024, 1:03pm UTC](https://forum.bubble.io/t/how-can-i-create-chat-functionality/334443/1 "2024-08-07T13:03:39Z")

</div>

hi, i’m new to bubble and i’m building an app that’s essentially a ChatGPT wrapper.

users give inputs and the app calls the OpenAI API and returns the results.

i’m installed the chatGPT API plugin, and i think i’ve also made all the correct data type and option sets. but i don’t know how to use workflows to build the logic. could someone please help me figure it out?

what i’m trying to achieve: user types a prompt, hits the Send button, and the result should show in the repeated group (as shown in the image).

i’m using a Type called `Message`, with the following options:

- `Content`: List of texts
- `Conversation`: List of conversations
- `Role`: `MessageRole` (option set)
- `Timestamp`: Date

i also have an option set called `MessageRole` with the options `User` and `Assistant` (for the AI)

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/a/9/a964ef44c3bbc2d4e63d5dff2f366195643ef0be.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [October 16, 2024, 1:03pm UTC](https://forum.bubble.io/t/how-can-i-create-chat-functionality/334443/2 "2024-10-16T13:03:54Z")

</div>

Closed on October 16, 2024, 1:03pm UTC

This topic was automatically closed after 70 days. New replies are no longer allowed.
