Turn Telegram support into owned, measurable ServiceNow work
Customers write to several personal Telegram accounts, but support agents work in ServiceNow. Copying messages by hand creates duplicate tickets, loses the source account and leaves customers unaware when an agent replies elsewhere.
The instruction
Every 10 minutes, list all connected Telegram accounts and process only messages after each account's saved cursor. Keep account_id, chat ID and source-message ID. Match the customer through a verified caller identity or stored ServiceNow sys_id. Search ServiceNow and Entergram comments before creating. For a genuine unresolved request, open a governed incident from Telegram, preserve assignment and impact rules, and report the resulting incident number back. Save the ServiceNow record ID in Entergram. On later runs, detect new public agent replies, request approval, send them through the original Telegram account, and store both message IDs. Every Monday, send Slack a seven-day report of volume, resolution, SLA risk and repeated causes by account.
What the team gets
Agents own work in ServiceNow; customers can continue in Telegram; managers get a weekly cross-account view. Every ticket and reply retains enough source data to trace, retry or suppress it safely.