So I’m working on this workflow where I’m gonna need to send a notification(as a message) on Telegram.
- So here we are initiating conversation by the bot, rather than replying.
- I tried this ‘send message’ action in ‘message’ resource. So it is asking for chat ID.
- Basically I want to initiate a chat.
WORKFLOW:
1. Trigger: New Email Received
Extract fields:
- from, subject, email body, received at
- id of latest message, message-id, thread-id
2. Filter for Customer Emails
- Check email-id in DB → lookup employee-id
- If employee-id exists → it’s an internal email → ignore
- Else → it’s from customer → proceed
3. Assign Label
- Use subject + body to predict issue label (e.g., billing-issue, product-issue)
- Assign label using AI or rules (store as
label_by_ai
in DB)
4. Send Message to CS Team (via Bot Interface)
Message includes:
- from, subject, received at, email body
- Suggested: label, priority, ticket-worthy status
5. CS Team Reviews & Replies
Via WhatsApp/chat interface/bot
CS Reply Options:
“Should make ticket” → includes:
- label
- priority
“Not ticket-worthy” → label it as general