About this blueprint
Ok, so… Home Assistant has recently made huge improvements in the implementation of conversation agents that allow us (users) to chat with Home Assistant and even to execute actions from text messages!
But, what if we could talk to the conversation agents directly from Telegram? THIS IS POSSIBLE WITH THIS BLUEPRINT!
This blueprint uses the Telegram Bot to chat with a Conversation Agent. The result is that you can chat with the default Home Assistant Assist or with the OpenAI Conversation Agent to respond to messages.
Technical Details
-
Type of blueprint: AUTOMATION
-
Minimum Home Assistant version: 2024.6.0
Limitations
From now, it will respond to all received text messages, and only text messages. It doesn’t respond to commands, images, voice messages…
Configuration
Requirements
-
Conversation Agent integration
-
Telegram Bot integration
Input fields
-
Conversation Agent : REQUIRED Home Assistant conversation agent to respond to messages.
-
Response options:
- Reply in private?: Whether the answer should be sent in private or group chat. This option has no effect when talking directly to the bot in a private chat.
-
Whitelist: Respond to messages coming only from certain users or chats.
- Whitelistuser_id: Only respond to messages received from these user IDs.
- Whitelistchat_id: Only respond to messages received from these chat IDs.
Related blueprints
-
Telegram Bot: Respond to Telegram Command with a Telegram text message
-
Telegram Bot: Respond to Telegram Command by executing an action
-
Telegram Bot: Store a text message into an input_text entity
-
Telegram Bot: Execute an action after receiving a text message
Other blueprints
How to get this blueprint?
Click the badge to import this Blueprint:
Or you can also:
- Copy-paste the content from this link to a new file inside your configuration’s
blueprints/automation
folder.
Changelog
- 2024-10-08: Added a condition to avoid replying to null messages. It happens in group chats when other bots send messages.
- 2024-08-16: First release.