Skip to main content

Salesforce

Intail.ai's Salesforce integration streamlines your CRM processes using OAuth 2.0. This guide outlines the connection process, the scopes required, and the two distinct connection options available.

Connection Process with OAuth 2.0

  1. OAuth 2.0 Authentication: The integration uses OAuth 2.0, ensuring secure and reliable connectivity between Intail.ai and Salesforce.
  2. Authorization: When connecting, you will be prompted to authorize Intail.ai to access your Salesforce data.
  3. Token Exchange: After authorization, OAuth tokens are exchanged, allowing Intail.ai to interact with your Salesforce data.

OAuth Scopes and Their Purposes

The following scopes are requested by Intail.ai for Salesforce integration:

  • id: Grants access to the user's ID.
  • profile: Allows access to the user's basic profile information.
  • email: Permits Intail.ai to access the user's email address.
  • address: Enables access to the user's address.
  • phone: Grants permission to access the user's phone number.
  • api: Provides general access to the Salesforce API.
  • refresh_token: Allows Intail.ai to obtain a new access token without user intervention.
  • offline_access: Ensures continued access to data even when the user is not actively logged in.
  • wave_api: Grants access to Salesforce Analytics API.

Connection Options

There are two ways to connect Intail.ai with Salesforce:

  1. Admin User Connection:

    • Connect using a Salesforce admin user.
    • All operations will be executed on behalf of this user.
    • Suitable for smaller organizations or testing environments.
  2. Bot User Connection:

    • Create a dedicated Salesforce user (a 'bot user') for integration.
    • This user is specially created for interacting with the Intail.ai app.
    • Recommended for larger organizations or where separation of duties is required.

Choose the method that best suits your organization's needs and compliance requirements.

Data Fetching and Field Creation in Salesforce

Intail.ai fetches data and interacts with Salesforce by following a specific process, which involves the creation of reports in Salesforce and assigning predefined segments in the Intail app.

Creating Reports in Salesforce and Integration with Intail

  1. Salesforce Report Creation:

    • Users must create a report within Salesforce and note down its ID.
    • The report should be structured according to the data requirements of the Intail system.
  2. Report Integration with Intail:

    • Use the Salesforce report ID to create a corresponding report in the Intail app.
    • Assign one of the predefined segments from Intail's list to this report.

Data Synchronization Process

  • Automatic Fetching:
    • Intail.ai starts fetching contacts from the Salesforce report into its system.
    • The fetch is triggered automatically whenever new contacts meet the criteria of the created report.

Data Processing and Actions

  1. Updating Contact Fields:

    • Intail runs the fetched contacts through its system.
    • It updates various fields in Salesforce based on the data processed.
  2. Lead Creation:

    • If a contact meets the predefined Ideal Customer Profile (ICP) criteria, Intail creates a lead in Salesforce.
    • This process helps in identifying potential leads that align with the business's target customer profile.

This integration and data processing setup ensures that Salesforce is always up-to-date with the latest contact information and potential leads, optimizing the CRM's effectiveness for sales and marketing efforts.

Custom Salesforce Fields Created by Intail.ai

Important Note

Intail.ai strictly creates only the following specified fields in Salesforce. No other fields are altered or added to ensure the integrity and security of your Salesforce data.

Custom Fields for Leads

Field NameLabelTypeDescriptionLengthAdditional Info
ORIGINAL_CONTACT_IDIntail Previous SF Contact IDTextContact ID that was converted to this lead250-
COMPANY_SIZEIntail Company SizePicklistSize of the new company. MIN-MAX-Values set from CompanySizeRangeType
LINKEDIN_PROFILEIntail LinkedIn ProfileURLThe LinkedIn profile URL associated with the lead--
COUNTRYIntail CountryPicklistCountry of the lead-Values set from CRMCountry
COUNTRY_CODEIntail Country CodePicklistCountry code of the lead-Values set from CountryCodeType
CITYIntail CityTextCity of the lead250-
SOURCEIntail SourcePicklistOrigin of the lead-Values set from CRMSourceType
EMAIL_STATUSIntail Email StatusPicklistStatus of the lead's email-Values set from EmailStatus
COMPANY_REGIONIntail Company RegionTextRegion of the company associated with the lead250-
COMPANY_COUNTRYIntail Company CountryPicklistCountry of the company associated with the lead-Values set from CRMCountry
COMPANY_COUNTRY_CODEIntail Company Country CodePicklistCountry code of the company associated with the lead-Values set from CountryCodeType
COMPANY_CITYIntail Company CityTextCity of the company associated with the lead250-
COMPANY_STREETIntail Company StreetTextStreet address of the company associated with the lead250-
COMPANY_ZIPIntail Company ZipTextZIP code of the company associated with the lead250-
COMPANY_CONTINENTIntail Company ContinentTextContinent of the company associated with the lead250-
COMPANY_LINKEDIN_PROFILEIntail Company LinkedIn ProfileURLLinkedIn profile URL of the company--
COMPANY_TWITTER_PROFILEIntail Company Twitter ProfileURLTwitter profile URL of the company--
COMPANY_FACEBOOK_PROFILEIntail Company Facebook ProfileURLFacebook profile URL of the company--
COMPANY_DESCRIPTIONIntail Company DescriptionTextareaDescription of the company--
COMPANY_INDUSTRYIntail Company IndustryTextIndustry of the company250-
SUGGESTED_OWNER_IDIntail Suggested Owner IdLookupSuggested owner for this lead. Default value is Account Owner-Reference to Owner
LAST_MODIFIED_DATEIntail Last Modified DateDateThe last date the lead was modified--
REPORT_TYPEIntail Report TypePicklistType of report associated with the lead-Values set from ReportTypesEnum
REPORT_NAMEIntail Report NameTextName of the report associated with the lead250-
SOURCE_USERIntail Source UserTextUser who is the source of the lead250-
WORKFLOW_NAMEIntail Workflow NameTextWorkflow name that triggered the lead creation250-
PREVIOUS_COMPANY_NAMEIntail Previous Company NameTextThe previous company name of the lead250-
COMPANY_DOMAINIntail Company DomainURLThe company domain--
PREVIOUS_COMPANY_DOMAINIntail Previous Company DomainURLThe previous company domain of the lead--
PREVIOUS_EMAILIntail Contact Previous EmailEmailThe previous email of the lead (before job change)--
INTERNAL_CONTACT_IDIntail Internal Contact IDTextInternal identifier for the contact250-
EXPORT_IDIntail Export Report IDTextExport report identifier250-

Custom Fields for Contacts

Field NameLabelTypeDescriptionLengthAdditional Info
COMPANY_NAMEContact Company NameTextThe company name of the contact250-
COMPANY_SIZEIntail Company SizePicklistSize of the new company. MIN-MAX-Values set from CompanySizeRangeType
LINKEDIN_PROFILEIntail LinkedIn ProfileURLThe LinkedIn profile URL associated with the contact--
COUNTRYIntail CountryPicklistCountry of the contact-Values set from CRMCountry
COUNTRY_CODEIntail Country CodePicklistCountry code of the contact-Values set from CountryCodeType
CITYIntail CityTextCity of the contact250-
SOURCEIntail SourcePicklistOrigin of the contact-Values set from CRMSourceType
COMPANY_DOMAINIntail Company DomainURLThe company domain--
COMPANY_REGIONIntail Company RegionTextRegion of the company associated with the contact250-
COMPANY_COUNTRYIntail Company CountryPicklistCountry of the company associated with the contact-Values set from CRMCountry
COMPANY_COUNTRY_CODEIntail Company Country CodePicklistCountry code of the company associated with the contact-Values set from CountryCodeType
COMPANY_CITYIntail Company CityTextCity of the company associated with the contact250-
COMPANY_STREETIntail Company StreetTextStreet address of the company associated with the contact250-
COMPANY_ZIPIntail Company ZipTextZIP code of the company associated with the contact250-
COMPANY_CONTINENTIntail Company ContinentTextContinent of the company associated with the contact250-
COMPANY_LINKEDIN_PROFILEIntail Company LinkedIn ProfileURLLinkedIn profile URL of the company--
COMPANY_TWITTER_PROFILEIntail Company Twitter ProfileURLTwitter profile URL of the company--
COMPANY_FACEBOOK_PROFILEIntail Company Facebook ProfileURLFacebook profile URL of the company--
COMPANY_DESCRIPTIONIntail Company DescriptionTextareaDescription of the company--
COMPANY_INDUSTRYIntail Company IndustryTextIndustry of the company250-
SUGGESTED_OWNER_IDIntail Suggested Owner IdLookupSuggested owner for this contact. Default value is Account Owner-Reference to Owner
LAST_MODIFIED_DATEIntail Last Modified DateDateThe last date the contact was modified--
REPORT_TYPEIntail Report TypePicklistType of report associated with the contact-Values set from ReportTypesEnum
REPORT_NAMEIntail Report NameTextName of the report associated with the contact250-
SOURCE_USERIntail Source UserTextUser who is the source of the contact250-
WORKFLOW_NAMEIntail Workflow NameTextWorkflow name that triggered the contact creation250-
INTERNAL_CONTACT_IDIntail Internal Contact IDTextInternal identifier for the contact250-
EXPORT_IDIntail Export Report IDTextExport report identifier250-

These custom fields enable Intail.ai to effectively sync and update relevant data in Salesforce, optimizing CRM efficiency and data accuracy.