yeralin / AssistantGPT

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AssistantGPT - Telegram Bot

Description of the image

Generated using recraft.ai

This is a Telegram bot powered by GPT-3.5 to act as a personal assistant. It can handle natural language requests sent as voice messages in a Telegram chat.

Features

  • Voice message handling
    • Transcribes audio recordings from Telegram to text using Google Speech API
    • Sends transcript to GPT assistant
  • Conversation with GPT-3.5 assistant
    • Contextual conversations to handle user requests
    • Leverages features like function calling to take actions
  • ClickUp integration
    • Create tasks in ClickUp based on user requests
  • Date/time calculation
  • User access control

Usage

  1. Get API keys
    • Telegram Bot token (TELEGRAM_TOKEN)
    • OpenAI API key (OPENAI_API_KEY)
    • Google Cloud Speech API credentials (service account credentials)
    • ClickUp API key (CLICKUP_API_KEY)
    • ClickUp User ID - to whom tasks will be assigned (CLICKUP_USER_ID)
    • ClickUp List ID - under which tasks will be created (CLICKUP_LIST_ID)
  2. Add keys and credentials to .env
  3. pip install -r requirements.txt
  4. python bot.py to run
  5. Interact via Telegram bot using voice messages

Structure

  • bot.py - Main bot application
  • gpt.py - GPT client class
  • speech.py - Speech recognition
  • clickup.py - ClickUp integration
  • utils.py - Helper functions

About

License:MIT License


Languages

Language:Python 100.0%