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.
- 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
- 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
)
- Telegram Bot token (
- Add keys and credentials to
.env
pip install -r requirements.txt
python bot.py
to run- Interact via Telegram bot using voice messages
bot.py
- Main bot applicationgpt.py
- GPT client classspeech.py
- Speech recognitionclickup.py
- ClickUp integrationutils.py
- Helper functions