In today’s tutorial, we're going to build a customer support chatbot with the OpenAI Assistants API v1 using the Knowledge Retrieval tool. The Assistants API v1 was released on OpenAI’s first-ever DevDay. I’ll show you an example in both Python and Node.js.
👉 Terminal user interface (TUI) for this assistant: https://youtu.be/RUZwYQnIX_0
⚠️ Note: The code in this tutorial works with the OpenAI Assistants API v1. In April 2024, the OpenAI Assistants API v2 was released. See the migration guide: https://platform.openai.com/docs/assistants/migration/agents
⭐ Code ⭐
⦁ GitHub repository: https://github.com/rokbenko/ai-playground
⦁ Code for this tutorial: https://github.com/rokbenko/ai-playground/tree/main/openai-tutorials/4-Build_customer_support_chatbot
🙌 Support 🙌
⦁ Subscribe: https://www.youtube.com/@rokbenko
⦁ Keep tutorials brewing: https://buymeacoffee.com/rokbenko
🌐 Profiles 🌐
⦁ GitHub: https://github.com/rokbenko
⦁ LinkedIn: https://www.linkedin.com/in/rokbenko
⦁ X: https://x.com/rokbenko
🎞️ Timestamps 🎞️
00:00 – Intro
00:18 – Code for this tutorial
00:33 – OpenAI DevDay announcement
01:05 – Example from the OpenAI documentation
01:23 – Code breakdown
02:10 – Step 1: Upload a file with an "assistants" purpose
03:29 – Step 2: Create an assistant
04:28 – Step 3: Create a thread
04:38 – Step 4: Add a message to a thread
05:04 – Step 5: Run the assistant
05:19 – Step 6: Periodically retrieve the run
06:39 – Step 7: Retrieve the messages
06:52 – Run the Python example
07:17 – Run the Node.js example
07:41 – Outro
#AI #OpenAI #AssistantsAPI