How it works

1. A new message arrives in your Telegram bot. 2. The AI Agent reads the message with a memory of the last 20 messages of that chat. 3. The agent calls the tools it needs: WooCommerce Get Products and Update Product, Google Sheets add or update an order row, and Gmail send email. 4. The agent writes a reply in the language of the message. 5. The reply is sent back to the same Telegram chat.