Giter Club home page Giter Club logo

orca's Introduction

Orca Chatbot: Your AI Assistant for Device Recommendations

Orca is a chatbot for Telegram that leverages artificial intelligence to assist you in finding information about devices based on your descriptions and preferences.

Features

Needs Understanding: Orca analyzes your descriptions and questions to grasp the type of device you seek.
Device Information Retrieval: Orca utilizes Google Search and Shopping APIs to fetch details like price, platform, and purchase links for the devices.
Audio Response Generation: Orca can convert its text responses into audio messages, enhancing user experience.
Voice Message Handling: Orca transcribes voice messages, processing the text like a regular message for your convenience.

Usage

Start a Conversation: Initiate a chat with Orca on Telegram using the "/start" command.
Describe the Device: Briefly describe the device you're interested in, specifying any desired features.
Device Selection (Optional): You can refine your search by selecting a device following the bot's instructions.
Ask Questions: Feel free to ask Orca any further questions you have regarding the device.

Requirements

• Telegram account  
• Python 3.x  
• Libraries:  
• telegram  
• langchain  
• openai  
• pydub  
• dotenv  
• google.cloud.texttospeech  
• google.cloud.translate_v2  

Installation

Clone this repository.
Install required libraries: pip install -r requirements.txt
Create a .env file in the project directory and set the following environment variables:
OPENAI_API_KEY: Your OpenAI API key
TELEGRAM_API_KEY: Your Telegram bot API key
GOOGLE_API_KEY: Your Google Cloud Platform API key (for Google Search and Shopping APIs)

Running the Bot

Open a terminal in the project directory.
Run the command: python start.py

Additional Notes

This code serves as a demonstration and should be adapted for production use.
Consider incorporating error handling and logging for a more robust implementation.

orca's People

Contributors

diasgt123 avatar

Stargazers

Aldrin Jenson 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.