Complete Freshworks - PreSkale integration by configuring the webhooks for deal and account updation.


Step 1: Navigate to Admin Settings and Select Workflows under the Automation.



Step 2:  Select Create Workflow to create a new workflow.


A total of 2 webhooks have to be setup for the integration to function seamlessly, please update the following fields with the given information,


  1. Module 
  2. Trigger
  3. Run
  4. What conditions should be met?
  5. What actions should be executed?
    • Select request method
    • Enter callback URL
    • Compose request body
    • Content


Webhook 1: Preskale Deal

  1. Module: Deals
  2. Trigger: When a record is created or updated
  3. Run: recurrently, for the same record
  4. What conditions should be met? - No conditions. Delete any conditions that might exist under this section
  5. What actions should be executed?
{
    "company_id": "XXX",
    "id": "{{deal.id}}",
    "status": "{{deal.deal_stage.name}}",
    "cf_presales_picklist":"{{deal.cf_YYY}}",
    "owner_id":"{{deal.owner.id}}",
    "name": "{{deal.name}}",
    "sales_account_id":"{{deal.sales_account.id}}",
    "created_at": "{{deal.created_at}}",
    "amount": "{{deal.amount}}",
    "closed_date":"{{deal.closed_date}}",
    "is_deleted":false
}

Webhook 2: Preskale Accounts

  1. Module: Accounts
  2. Trigger: When a record is created or updated
  3. Run: recurrently, for the same record
  4. What conditions should be met? - No conditions. Delete any conditions that might exist under this section
  5. What actions should be executed?
{
   "company_id":"XXX",
    "id":"{{sales_account.id}}",
     "owner_id":"{{sales_account.owner.id}}",
    "name":"{{sales_account.name}}",
    "country":"{{sales_account.country}}",
    "industry":"{{sales_account.industry_type.name}}",
    "website":"{{sales_account.website}}",
    "company_size":"{{sales_account.number_of_employees}}",
   "phone":"{{sales_account.phone}}"
}