BuildShip Logo
BuildShip Community

AI Chatbot

Create a simple AI Chatbot with BuildShip and OpenAI Assistant, using a BuildShip database to keep track of the thread ID to enable conversation history.

2471

Report this template

Select the reason for reporting

Describe the issue in detail

Share template

Link to template

https://templates.buildship.com/template/NTt_hfmOIsSD/

Select an example

Inputs

threadId

5a9b637f-88b6-4468-8680-c2afca72f610

message

what was the role for my last interview prep question to you?
This is a static example using sample inputs. Remix the template to run it with your own values.

Output

Read me

🤖 AI Chatbot

A simple AI Assistant with built-in conversational memory using a BuildShip database that you can chat with.

In this example of a personal interview prep AI Assistant, it can ask you questions and guide you through interview preparations.

Walkthrough Video

✅ Prerequisites

This template uses the OpenAI Assistant. Here's what you'll need to successfully test out the template:

  • [ ] Your OpenAI API Key

You can get your OpenAI API Key from the OpenAI Developer Dashboard.

  • [ ] OpenAI Assistant ID

Create an OpenAI Assistant on the OpenAI Developer Dashboard > Assistants, and copy the Assistant ID.

🧪 Testing

Test out the workflow via a message like Help me prep for a technical interview with a company like Meta.

Feel free to change the instructions for the OpenAI assistant to customize for your use case.

✍️ How to Use

Once the API Key and the Assistant ID is added, the workflow is ready to be used. Pass any message as a string and any user-identifying threadId to the API, and you will receive back a conversational message with memory.

The template comes with a Chatbot Widget trigger which makes it super easy to test the functionality with a chat-like interface.

🌟BONUS: Here's how you can easily embed an AI chat widget on your website or app. Use the configuration script provided in the usage section to use your own AI Assistant Chatbot.

NOTE: You MUST Ship your workflow before testing out the functionality on the chat widget.

🎨 Further Customization

The default template uses the OpenAI Assistant node. To customize, click on the Additional settings to reveal additional customizable options, like the Thread ID and the Built-in Tools provided by OpenAI, like File Search and Code Interpreter.

Also, if OpenAI isn't what you're looking for 👀, the Node Explorer contains a variety of AI Assistant nodes with various models and providers, like Claude, Groq, and Azure 👇

Simply replace the existing OpenAI node with any of the Assistant option of your choice. Add in the API Key, Instruction, Prompt, and you'll be good to go.

🔗 Resources

  • Check out the dedicated documentation for the Assistant Variants: here
  • How to set up an OpenAI Assistant: here