Scenario Overview
Business Use Case:
A dynamic insurance quote needs to be generated based on customer inputs like Age, Location, and Vehicle Type. The insurance rates will be fetched from a backend data source using Data raptor or Integration Procedure, and real-time calculations will be done using Formula elements. A summary screen will display the final quote and enter information before submission.
Insurance quote generation is part of a broader pricing and quoting process used by many organizations. Salesforce provides specialized tools such as Salesforce CPQ that allow businesses to configure products, apply pricing rules, and generate accurate quotes for customers. While OmniStudio is commonly used to build guided experiences like insurance quote generators, Salesforce CPQ helps manage complex product configuration and pricing strategies across industries.
Key OmniStudio Concepts Used
- OmniScript (Guided UI Flow)
- Conditional Display Logic
- Formula Element
- DataRaptor (for fetching dynamic rates)
- Custom Object for storing data (Insurance_Quote__c)
- Summary element for final review
After generating an insurance quote, many organizations also need to provide customers with downloadable documents such as policy summaries, quotation documents, or agreement forms. Salesforce allows developers to generate formatted PDF documents using Visualforce, which can include dynamic data from Salesforce records. This approach enables businesses to create professional quote documents directly within Salesforce.
Implementation Steps
1. Created Custom Object: Insurance_Quote__c
This object is used to store all user entries and the final insurance quote.
Custom Fields:
2. Designed OmniScript: Dynamic_Insurance_Quote
OmniScript Configuration:
Step-by-step Elements Used:
-
Step 1: Collect User Details
- Inputs: Age
- Location (Picklist)
- Vehicle Type (Picklist)
-
Step 2: Call DataRaptor
- Type: DataRaptor Extract Action
- Purpose: Fetch base insurance rate based on Location and Vehicle Type.
- Output: BaseRate
-
Step 3: Formula Element
Formula:
FinalQuote = BaseRate + (Age * 5)
- (Example logic: Add ₹5 per year of age to the base rate)
-
Step 4: Conditional Display
-
Show additional options or alerts based on conditions like:
- If Age < 18 → Show “You are not eligible”
- If Vehicle Type = "Luxury" → Add premium notice
-
Show additional options or alerts based on conditions like:
-
Step 5: Summary Element
-
Display:
- Name
- Age
- Location
- Vehicle Type
- Base Rate
- Final Quote
-
Display:
-
Step 6: Save to Salesforce
- Type: DataRaptor Extract
- Saves data to Insurance_Quote__c object
Once the quote data is stored in Salesforce, organizations often need to generate documents such as quotes, summaries, or policy confirmations using the stored information. Salesforce provides native capabilities to generate documents dynamically using Visualforce templates and controllers. These documents can include customer information, calculated quotes, and other related details pulled directly from Salesforce records.
3. Created DataRaptor: GetInsuranceRate_DR
Conditional Logic Examples
- Location Picklist values: Urban, Semi-Urban, Rural
- Vehicle Type Picklist values: Hatchback, Sedan, SUV, Luxury
-
Conditional Display:
- Age under 18 → Error Message
- Vehicle = Luxury → Display: "Luxury vehicle surcharge applies"
Sample Output on Summary Screen
Result
- Real-time insurance quote is calculated based on input.
- Final quote is stored in Salesforce under Insurance_Quote__c.
- Fully guided and dynamic user experience using OmniScript.
- Reusable integration via DataRaptor.
Benefits
- Reusability: DataRaptor can be reused in other Flows/OmniScripts.
- Real-time Quote: No need for hardcoded logic.
- Scalable: Easy to add more factors like Driving History, Accidents, etc.
- No-code/Low-code approach using OmniStudio.
Salesforce provides multiple tools for building advanced quoting and automation solutions, including OmniStudio, Salesforce CPQ, and document generation frameworks. These technologies allow organizations to automate the entire quote-to-cash process, from collecting customer inputs to generating final quote documents. To explore more tutorials, implementation guides, and best practices related to Salesforce CPQ and advanced quoting solutions, visit our Salesforce CPQ page.
Got questions? Feel free to drop an email to support@astreait.com