--- title: "Configure Real-Time Rules" slug: "configure-real-time-rules" updated: 2026-11-23T12:31:35Z published: 2026-11-23T12:31:35Z canonical: "support.gainsight.com/configure-real-time-rules" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.gainsight.com/llms.txt > Use this file to discover all available pages before exploring further. # Configure Real-Time Rules Gainsight NXT This article explains how to configure Real-Time Rules to run immediately when an event occurs. ## Overview Real-Time Rules are triggered when an event occurs in the application as a result of internal or external activity. Real-Time Rules can be triggered for any external event that you have configured in the Events Framework. For more information on how to configure external events, refer to the [*Events Framework*](/v1/docs/events-framework-1) article. Admins can add the correct lookup fields to configure Real-Time rules in the advanced filters, formula builder, action type mappings, and the rule details preview criteria sections. **Note:** Only lookup fields from the Company object are used to configure Real-Time rules. For more information about the Real-Time Rules feature and other options, refer to the [*Real-Time Rules*](/v1/docs/real-time-rules) article. ## Configure Real-Time Rule This example posts a Slack message in real-time using Call External API action type if the CSM of a Company changes. To configure a new Real-Time Rule: 1. Navigate to ***Administration*** *>* ***Rules Engine*** *>* ***Real-Time Rules***. This page displays the existing list of real-time rules and allows you to edit them as needed. For more information on the real-time rules listing page, refer to the *Real-Time Rules Listing Page* section in the [*Real-Time Rules*](/v1/docs/real-time-rules#realtime-rules-listing-page) article. 2. Click **New Rule**. A new page appears, where you can view the following three tabs: - Details - Configure - Actions ![RTR-CreateRule.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/RTR-CreateRule.png?sv=2026-02-06&spr=https&st=2026-11-24T17%3A17%3A34Z&se=2026-11-24T18%3A17%3A34Z&sr=b&sp=r&sig=6Fc3Yd1ITmkjvjWDzohMUmQ2lOfhf1gxBNodhC7%2F3mo%3D) ### Details Tab Enter the following information in the **Details** tab. 1. **Rule Name:** *Post to Slack.* 2. **Select Folder:** Select the folder in which you want to add this rule (or) by default, the rule is saved to the Uncategorized folder. For more information on how to create new folders, refer to the *Folders* section in the [*Real-Time Rules*](/v1/docs/real-time-rules#folders) article. 3. (Optional) **Description:** Provide a brief description of the rule. 4. Click **Configure** to update the rule details, and then navigate to the **Configure** tab. ![RTR-CreateRule-Details Tab.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/RTR-CreateRule-Details_Tab.png?sv=2026-02-06&spr=https&st=2026-11-24T17%3A17%3A34Z&se=2026-11-24T18%3A17%3A34Z&sr=b&sp=r&sig=JaApOTky62KLHJxWgxBwH%2BC8qvq3gL8VUH7wOfNX5HA%3D) ### Configure Tab To configure a Rule: 1. In the **Select an Event** section, select *Company* as an event topic and *CSM Changes* as an event. By default, the CSM field is added to the list. Additionally, you can drag and drop other fields and apply advanced logic. 2. (Optional) In the **Apply Filters** section, drag and drop the Event Fields required to configure your filter criteria. 3. Click **Actions** to update the rule details, and then navigate to the **Actions** tab. ![RTR-Configure.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/RTR-Configure.png?sv=2026-02-06&spr=https&st=2026-11-24T17%3A17%3A34Z&se=2026-11-24T18%3A17%3A34Z&sr=b&sp=r&sig=GynuvLnz5kitG0gizsqvvzE0eMFu2LyYAGrDu0m7AwQ%3D) **Note:** Formula fields can also be created and used as Event fields. For more information on how to use formula fields, refer to the [*Formula Fields in Rules Engine*](/v1/docs/formula-fields-in-rules-engine) article. ![RTR-FF-Configure Tab.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/RTR-FF-Configure_Tab.png?sv=2026-02-06&spr=https&st=2026-11-24T17%3A17%3A34Z&se=2026-11-24T18%3A17%3A34Z&sr=b&sp=r&sig=eYNP2oyjaBKbeaHXJj%2BojHPLA1aY1zeD33PFTQb6dC8%3D) ### Actions Tab Three action types are available for use in the Real-Time Rules feature are **Call External API,** **Load to SFDC Objects,** and **Load to Gainsight Objects**. For more information, refer to the [*Call External API Action Type*](/v1/docs/call-external-api-action-type-1), [*Load to SFDC Objects Action Type*](/v1/docs/configure-load-to-sfdc-objects-action-type-1), and [*Load to Gainsight Object Action Type*](/v1/docs/load-to-gainsight-object-action-type-1) articles. However, the **Load to Gainsight Object** action type is designed with a new field mapping experience where admins have to first add the fields for which they want to map.This is to provide an optimal experience, performance-wise, when there are a large number of fields coming from the event.This action type only supports Insert operation on Low Volume Custom Objects. **Note:** Any number of action types can be added to a real-time rule. To create an Action: 1. Click **Create Action**. 2. Select **Call External API** action type. 3. From the **Connector** drop-down option, select *Slack*. 4. From the **External API** drop-down option, select *Post to* *Slack*. **Note:** To create Slack connection and Post to Slack action, click **Create Connection,** and **Create Action** options respectively. For more information, refer to the [*Post Messages to Slack with Call External API Action Type*](/v1/docs/post-messages-to-slack-with-call-external-api-action-type-1) article. 5. In the **Field Mappings** section, select *New Active* in the Event Fields drop-down option. 6. Click **Add Criteria** and map the following fields: - Old CSM to New CSM - Old Company Type to New Company Type 7. Click **Save Rule**. 8. Click **Close**. 9. Turn on the **Status** toggle switch to execute the rule. [Embedded content](https://player.vimeo.com/video/478409436) Additionally, you have an option to clone, delete, and change the status of each action type added to the rule. ![RTR-Actions Tab-Add.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/RTR-Actions_Tab-Add.png?sv=2026-02-06&spr=https&st=2026-11-24T17%3A17%3A34Z&se=2026-11-24T18%3A17%3A34Z&sr=b&sp=r&sig=wNSMIKgeL7tS56PVCaodTXtHCq7JEtY7K03F13Efsxg%3D)