Send automatic notifications to the third-party providers
Edition: All editions | Industry: Travel | Features: Workflow Rules
Scenario
Zylker Travels offers various tour packages to its customers ranging from adventure trips, family outings, destination holidays and weekend getaways. Their customer flow mainly happens through the company's website, where they fill out the required details and the reps follow-up with them based on the individual's interest and enquiry.
The company hopes to streamline, categorize, and expedite the lead management process for two types of customers through workflow rules.
- Condition 1: They want to send welcome emails immediately to those customers who have chosen the travelling month as current month and are not travelling solo. These customers must also be tagged as high priority, so the reps can promptly tend to their queries. Also, the reps should make a call to the prospects soon after the webform is submitted.
- Condition 2: Zylker conducts solo trips in partnership with a third-party event organizing group ZK Adventures. It therefore wants to notify them about the interested prospect and also redirect the individual to them. They create a webhook to send them notifications as soon as the webform is submitted in Zylker's website.
Expected Result
Solution
Pre-requisite
I. Create custom picklist fields called “Travelling With” and "When do you want to travel?". To do this:
- Go to Setup > Customization > Modules and Fields.
- Select the Leads module/Standard Layout.
- Drag and drop a Picklist field type into the layout.
- In the Picklist Properties popup, enter the Field label as “Travelling With”.
- Add the following picklist values:
- Family
- Solo
- Friends
- In the next Picklist Properties popup, enter the Field label as “When do you want to travel?".
- Add the following picklist values.
- This month
- Next month
- Later
- Click Done.
- Click Save.
II. Create an email template to send the welcome email to the customers registered via webform.
- Go to Setup > Customization > Templates
- Select New Template
- Choose the Leads module.
- Select the Blank document.
- Enter a Template name.
- Enter a Subject name.
- Click Create Template.
- Click Save.
III. Create a Webhook to send notification to the third-party company about prospects who are interested to travel solo.
- Go to Setup > Automation > Actions > Webhooks.
- Click Configure Webhook.
- Enter a name for the Webhook.
- In URL to Notify, enter the URL provided by the third-party company.
- In Method, check POST.
You should select the POST option only, because the notification is sent from CRM to the third-party provider.
- Give a Description.
- Select Leads Module.
- In URL Parameters, fill the Parameters in User Defined Format.
Give Argument and Argument Value
(Note: Arguments are defined by the third-party in their code)
- Click Save and Associate.
- Click Save.
Workflow Rule
Condition 1
- Go to Setup > Automation > Workflow Rules.
- Click Create Rule.
- In the Create New Rule popup.
- Choose the module: Leads.
- Give a rule name: Send trip details.
- Select description: Send email to travel prospects.
- In the When section, choose On a record action: Create.
- Click Next.
- In the Condition 1 section, enter the following:
- Lead Source is Webform.
- When do you want to travel is This Month.
- Travelling with isn't Solo.
- The Criteria Pattern will register as ( ( 1 and 2 ) and 3 ).
So, the rule will be triggered when all the three conditions are satisfied by a record.
- Create Instant Action : Email Notification.
- Select Email Template: Welcome to Zylker Travels.
- Click Associate.
- Assign a task to your Sales Rep to call the prospective customer.
Select Task.
Select New Task.
In Subject, write Make Call to the Prospect.
In Due Date, select Workflow Rule Trigger Date plus 0 days.
Click Save and Associate.
- Click Tag,
- Select Add Tag and name it as High Priority.
Condition 2
- In Add another Condition, enter the following:
- Lead Source is Webform.
- Travelling with is Solo.
- Select Done.
- Add an Instant Action - Webhook.
- Select the Webhook that you had created.
- Select Associate.
- Click Save.