The Telegram Alert system is a background process that monitors the Order object and uses a secure connection to send messages to your Telegram channel.
| Component | Sales 360 Mapping | Purpose |
| Notification Trigger | Automation Flow (Record-Triggered Flow) | Monitors the Order object for a New Order status and initiates the alert. |
| Configuration | Custom Metadata Type: Telegram Settings | Stores the unique security keys required for the Telegram API. |
| Messaging Service | External Service Callout (Apex or External Web Service) | Sends the formatted message data to the Telegram Bot API endpoint. |
| Alert Recipient | Telegram Chat ID | The unique identifier for the group or user receiving the alerts. |
| Bot Identifier | Telegram Bot Token | The unique key authorizing the Sales 360 system to send messages via the bot. |
Before configuring Sales 360, you must set up your Telegram Bot to get the necessary security credentials.
Open Telegram and search for @BotFather.
Start a chat and send the command: /newbot.
Follow the prompts to choose a name and a username for your bot.
Crucial Step: BotFather will provide you with the HTTP API Token. Copy this token; it is your Bot Token for Sales 360 configuration.
The Chat ID identifies where the alerts will be sent (can be a user's private chat or a group).
For a Group Chat:
Create a new group in Telegram (or use an existing one).
Add your newly created bot to this group.
Send any message in the group (e.g., "Test").
You will need to use a separate Telegram bot (e.g., @getidsbot) or a web browser API call to find the Chat ID of the group after your bot has received a message in it. The ID will start with a negative sign (e.g., -123456789).
For a Private Chat: Send a message to your bot and use an ID retrieval tool. The ID will be a positive number.
Once you have the Bot Token and the Chat ID, enter them into the Sales 360 configuration.
Log in to Sales 360 as a System Administrator.
Navigate to Setup $\rightarrow$ Custom Metadata Types $\rightarrow$ Telegram Settings (or the corresponding Custom Settings object).
Click Manage Records and edit the primary configuration record.
Enter the copied values into the following fields:
| Sales 360 Field | Telegram Value | Note |
| Bot API Token | The token received from @BotFather. | Must be secured. Do not share. |
| Chat ID | The ID of the user or group receiving the alerts (e.g., -123456789). |
Use the negative number if sending to a group. |
| Alert Status | Enable | Toggles the entire notification system ON or OFF. |
Click Save.
In the Telegram Settings console, locate the Send Test Alert button (a custom action/Apex method).
Click Send Test Alert.
Verification: Check your configured Telegram chat/group. You should immediately receive a message: "✅ Sales 360 Test Alert: Telegram integration is active and connected!"
The system is now fully automated and requires no further intervention.
The primary trigger for the alert is the creation of a New Order record in Sales 360 (typically when a customer successfully completes a purchase on your Experience Cloud site or a sales rep finalizes a quote).
When a new order is detected, the Sales 360 Flow automatically retrieves the order details and constructs the message:
| Message Element | Source Field |
| Order ID | Order.Name |
| Customer Name | Order.Account.Name or Order.Contact.Name |
| Total Amount | Order.TotalAmount |
| Status | Order.Status (initial status) |
| Link | A direct URL link to the Order Record Detail Page in Sales 360 Admin. |
The designated Telegram chat will instantly receive a message formatted similarly to this example:
🔔 NEW SALES 360 ORDER! 🛒
Order ID: O-0004567
Customer: Acme Corp.
Total: $1,250.00
Status: New