Dec 2, 2021
How to create leads or cases in Salesforce with Flow Builder
Bird biedt veel directe integraties waarmee je je communicatie kunt aansluiten op de tools en platforms die al in je bedrijf worden gebruikt.
Using Flow Builder's native integrations, custom connections via HTTP requests and webhooks, you can easily enrich customer profiles, enable rapid sales engagement and drive more qualified leads.
Today, we will discuss our integration with Salesforce.
Met deze integratie kunt u:
Voeg leads toe aan Salesforce vanuit verschillende communicatiebronnen channels: WhatsApp, Instagram, Telegram, WeChat, LINE, Messenger, Google Business Chat, Viber, enz.
Maak cases in Salesforce om records bij te houden en sla belangrijke gegevens op in de cases van al uw channels
Flexibiliteit en automatisering van lead/case-creatie op elk punt in uw verkooptrechter implementeren
In deze gids leer je hoe je:
Uw Salesforce goed instellen
Salesforce verbinden met Bird
Fouten oplossen bij het verbinden van Salesforce
Maak een flow in Flow Builder die gegevens naar Salesforce stuurt
Verbind WhatsApp met Salesforce om je leads te versturen
Verbind Viber met Salesforce om uw cases te versturen
Vereisten voor Salesforce-integratie
Voordat je begint met het bouwen van de logica in Flow Builder, moet je de volgende vereisten gereed hebben:
Een Bird account: Make sure you have access as beheerder.
Een Salesforce-account: U heeft "Administrator access" nodig
Stap 1: Ga naar Aangesloten Apps in Salesforce om te integreren met Bird
To access the Aangesloten Apps section in Salesforce (Lighting Experience), follow these steps:
Login to Salesforce as an administrator
Select Setup in the drop-down list of the account (in the upper-right corner)
On the left-hand pane, go to App Beheerr > Nieuwe Verbonden App
Let op: als u geconfronteerd wordt met het onderstaande weergaveprobleem, klikt u op "Klik hier om deze pagina te openen in Salesforce Classic".
On the Nieuwe Verbonden App page, fill the following required fields under Basic Information:
Aangesloten App Naam, e.g. Bird Integration.
API-naam, e.g. Bird_Integration
Contact Email, e.g. xxx@contactemail.com
Go to API (OAuth-instellingen inschakelen), and select OAuth-instellingen inschakelen.
In the Callback URL field, enter https://login.salesforce.com/
In the Geselecteerde OAuth-scopes field, select Toegang tot en beheer van uw gegevens (api)
Geef toegang tot uw gegevens via het web (web)
Op elk moment verzoeken namens u uitvoeren (refresh_token, offline_access)
Click Toevoegen
Click the Sla button to save the new Connected App.
In the Aangesloten Apps (Apps > App Manager) list, find the App that you just created, and then click Manage.
On the page that opens, click the Bewerk button.
Under OAuth-beleid, select Alle gebruikers kunnen zichzelf autoriseren in the Toegestane gebruikers list
In the IP Ontspanning, select IP-beperkingen versoepelen
In the Vernieuwen tokenbeleid, click Refresh token is geldig tot wederopzegging. Under Session Policies, Select Time-out value (24 uur.), click the Sla button
Go back naar de Connected Apps (Apps > App Manager) list, and click the App that you just created, and then click on Bekijk.
Go to API (OAuth-instellingen inschakelen) and note down the Consumentensleutel and Consumentengeheim. You need this key and secret for the configuration of credentials in MessageBird’s Salesforce integration.
Stap 2: tokens verkrijgen van Salesforce om toegang te autoriseren
In Salesforce, access tokens have a limited lifetime specified by the session timeout. If an application uses an expired access token, a “Sessie verlopen of ongeldig” error will be shown.
Gebruik een refresh token tijdens het autorisatieproces om een nieuw toegangstoken te krijgen. Het gebruik van een nieuw token zorgt ervoor dat het toegangstoken altijd live is.
Get your instance URL. Send the following curl request to obtain the instance URL.
client_id = consumentensleutel
client_secret = consumentengeheim
gebruikersnaam = gebruikersnaam Salesforce login
wachtwoord = inlogwachtwoord Salesforce
If you are not familiar with curl you can use Postbode to send the request. Follow these steps:
Get your code. Use your favorite browser, then enter the following request URL in a new tab to get the code.
<CONSUMER_KEY> should be replaced with the obtained Consumer Key in the above step
<YOUR_INSTANCE> should be replaced with your instance name
Voer vervolgens in de browser uw aanvraag-URL in. Sta toegang toe als er waarschuwingen verschijnen. De browser wordt dan omgeleid naar een URL zoals hieronder. U kunt de code verkrijgen via diezelfde URL.
https://login.salesforce.com/?code=XXXX
Get access token & refresh token: Send the following curl request to obtain the tokens.
<CODE> should be replaced with the code you obtained in the above step.
<CONSUMER_KEY>
<CONSUMER_SECRET> should be replaced with obtained keys with the created Connected App
You can obtain the toegangscode and refresh_token from the response.
If you are not familiar with curl you can use Postman to send the request. Follow these steps:
Problemen met uw Salesforce-verbinding oplossen
De meest voorkomende fout die optreedt bij het integreren van Salesforce met Bird en hoe u deze kunt oplossen:
'REST API is niet ingeschakeld voor deze organisatie' Issue
Wanneer u probeert een verzoek naar de salesforce API te sturen met bovenstaande referenties, krijgt u soms deze foutmelding.
REST API is niet ingeschakeld voor deze organisatie.
U kunt deze fout oplossen door onderstaande stappen te volgen.
Click on Setup in the right top corner.
Go to ADMINISTRATION > Manage Users and click on Profielen.
Click Bewerk on the specific profile you want to update.
Scroll down and go to Administratieve machtigingen and check the API ingeschakeld checkbox.
Don't forget to go down the page and click Sla.
Stap 3: Maak een nieuwe flow in Flow Builder om leads of cases aan te maken
De configuration of Salesforce is done. Now, let’s start a new flow. Deze sjabloon will help you connect your favorite communication channel with Salesforce and push new leads or cases for your team to follow up:
Log in to your Bird Dashboard and go to Flow Builder.
Download the monsterstroom that you will be using.
Import the flow with the import function.
Attach the channels you want to use to create leads/cases into Salesforce. Then, you can publish this flow.
Salesforce gebruiken met WhatsApp en Viber
Met deze sjabloonstroom kun je je favoriete channels (WhatsApp, Viber, SMS, enz.) verbinden met Salesforce. De volgende voorbeelden laten zien hoe je Salesforce kunt koppelen om leads te maken:
WhatsApp
Viber
Houd in gedachten dat u het kanaal of de use case kunt veranderen, afhankelijk van uw behoeften.
Je zou je stroom op je scherm moeten kunnen zien.
Fetch your access token before activating your flow.
Het API-eindpunt is als volgt:
client_id = consumentensleutel
client_secret = consumentengeheim,
Voor de refresh_token, zie stap 2.3.
Creëer een Lead in Salesforce met WhatsApp
Replace https://XXXX.my.salesforce.com with your instance URL. Telefoon, Achternaam, Bedrijf, LeadSource, Beschrijving are the field names from Salesforce.
You can find them under Setup > Object manager > Lead > Fields & Relationship.
Een zaak aanmaken in Salesforce met Viber
Replace https://XXXX.my.salesforce.com with your instance URL. Telefoon, Achternaam, Bedrijf, LeadSource, Beschrijving are the field names from Salesforce. You can find them from Setup > Object manager > Lead > Fields & Relationship.
De output variable ID is the case ID returned from Salesforce.
Congratulations!
U hebt zojuist met succes Salesforce verbonden met WhatsApp en/of Viber om leads en cases te creëren voor uw team om een snellere betrokkenheid mogelijk te maken en meer gekwalificeerde leads te genereren.
If you have any questions about your new flow or our Salesforce integration, please reach out to us here.