Giter Site home page Giter Site logo

openai-assistant-telegram's Introduction

A Telegram bot for you OpenAI Assistant Applications

flows.network Discord flows.network Twitter Create a flow

Deploy this function on flows.network, and you will get a Telegram ๐Ÿค– to interact with your OpenAI applications based on the Assitant APIs. It helps expand the usage of your Assistants apps and connect the app with your audiences. It's an essential but simple step to make your Assistant apps in production.

How it works

This flow function (or ๐Ÿค–) will be triggered when a new message is sent to the Telegram bot. Then, the flow function will create a new thread for this user, call the retrieval API from OpenAI's Assistants, and finally answer the user's questions. The user can also type /restart to the bot to create a new thread.

Deploy your telegram bot in 3 simple steps

  1. Create a bot from a template
  2. Configure the Configurations

0 Prerequisites

Before we start, you need to create an Assistants app with the OpenAI playground. The OpenAI's Assistant basically is a RAG-based LLM agent. You can upload your own knowledge base to customize the Assistant's behavior and make sure the assistant provides correct answers. After that, you can easily see your assistant ID beginning with asst_ on the dashboard. You will need to bring your own OpenAI API key.

You will also need to sign into flows.network from your GitHub account. It is free.

1 Create a bot from a template

Just click here to load the template.

2 Configure the Configurations

image

Review the four configurations.

Congiguration Description
ASSISTANT_ID Get the Assistant ID from the OpenAI Assistants dashboard
OPENAI_API_KEY OpenAI API key
telegram_token Get the Telegram token from @botfather

Then click on the Create and Build button to continue.

We don't need to set up other SaaS providers here. Click Deploy to finish the deployment.

Wait for the magic!

This is it! You are now on the flow details page waiting for the flow function to build. As soon as the flow's status becomes running, the bot is ready to answer questions from your users!

image

If you don't want to use OpenAI to create embeddings for your domain knowledge, please refer to

openai-assistant-telegram's People

Contributors

sergiojacome avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.