The courier fleet operator utilized a Telegram bot built on the Salebot cloud platform to onboard new drivers. The system integrated n8n automation and an AI agent to handle queries. As the business grew, the company faced significant limitations regarding API request quotas, which counted every internal script interaction as a message.
The daily message limit caused the bot to stop responding entirely once exhausted, leading to potential driver loss. The company discovered that internal monitoring scripts were consuming the majority of the quota. By implementing a caching mechanism, they reduced the request frequency from approximately 1050 to 160 requests per hour.
Technical issues also arose due to database synchronization delays between the platform and the company's external API. The AI agent frequently failed to detect user progress because it could not read updated variables in real-time. The team resolved this by forcing the agent to retry reading variables multiple times before terminating the session.
The company ultimately decided to migrate away from the third-party constructor to a custom-built solution. This transition was driven by the need to eliminate reliance on external black-box databases and to gain full control over the bot's operational logic and reliability.





