Så skapar du leads eller ärenden i Salesforce med Flow Builder

Så skapar du leads eller ärenden i Salesforce med Flow Builder

Så skapar du leads eller ärenden i Salesforce med Flow Builder

Dec 2, 2021

Publicerad av

Publicerad av

Bird

Bird

Kategori:

Kategori:

Flow Builder

Flow Builder

Ready to see Bird
in action?

Ready to see Bird
in action?

How to create leads or cases in Salesforce with Flow Builder

Bird erbjuder många direktintegrationer som gör att du kan ansluta din kommunikation till de verktyg och plattformar som redan används i ditt företag.


Using Flödesbyggare 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. 


Med denna integration kan du:

  • Lägg till leads i Salesforce från olika kommunikationskanaler channels: WhatsApp, Instagram, Telegram, WeChat, LINE, Messenger, Google Business Chat, Viber, etc.

  • Skapa ärenden i Salesforce för att dokumentera och lagra nyckeldata i ärendena från alla dina channels

  • Implementera flexibilitet och automatisering av skapandet av leads/ärenden när som helst i din försäljningstratt


I den här guiden får du lära dig hur du gör:

  1. Ställ in Salesforce på rätt sätt

  2. Anslut Salesforce med Bird

  3. Felsökning av fel vid anslutning till Salesforce

  4. Skapa ett flöde i Flow Builder som skickar data till Salesforce

  5. Anslut WhatsApp till Salesforce för att skicka dina leads

  6. Anslut Viber till Salesforce för att skicka dina ärenden


Krav för integration med Salesforce

Innan du börjar bygga logiken i Flow Builder måste du ha följande krav redo:

  • En Bird redogörelse: Make sure you have access as administratör.

  • Ett Salesforce-konto: Du behöver "Administratörsbehörighet"


Steg 1: Gå till Anslutna appar i Salesforce för att integrera med Bird

To access the Anslutna appar section in Salesforce (Lighting Experience), follow these steps:


  1. Login to Salesforce as an administrator

  2. Select Inställning in the drop-down list of the account (in the upper-right corner)

  3. On the left-hand pane, go to App-hanterare > Ny uppkopplad app


Observera: om du stöter på visningsproblemet nedan, klicka på "Klicka här för att öppna den här sidan i Salesforce Classic."



On the Ny uppkopplad app page, fill the following required fields under Basic Information:


  • Namn på ansluten app, e.g. Bird Integration.

  • API-namn, e.g. Bird_Integration

  • Kontakt E-post, e.g. xxx@contactemail.com


  1. Go to API (Aktivera OAuth-inställningar), and select Aktivera OAuth-inställningar.


  • In the URL för återkoppling field, enter https://login.salesforce.com/

  • In the Valda OAuth-scopes field, select Få tillgång till och hantera dina data (api)

  • Ge tillgång till dina data via webben (web)

  • När som helst utföra förfrågningar för din räkning (refresh_token, offline_access)

  • Click Lägg till


  1. Click the Spara button to save the new Connected App.



  1. In the Anslutna appar (Apps > App Hanterar) list, find the App that you just created, and then click Manage.

  2. On the page that opens, click the Redigera button. 

  • Under OAuth-policyer, select Alla användare kan auktorisera sig själva in the Tillåtna användare list

  • In the IP Avslappning, select Släpp IP-begränsningarna 

  • In the Uppdatera Token-policy, click Uppdateringstoken är giltig tills den återkallas. Under Session Policies, Select Timeout value (24 timmar), click the Spara button



  1. Go back till Connected Apps (Apps > App Manager) list, and click the App that you just created, and then click on Utsikt.

  2. Go to API (Aktivera OAuth-inställningar) and note down the Nyckelkonsument and Konsumenthemlighet. You need this key and secret for the configuration of credentials in MessageBird’s Salesforce integration.


Steg 2: Erhålla tokens från Salesforce för att auktorisera åtkomst

In Salesforce, access tokens have a limited lifetime specified by the session timeout. If an application uses an expired access token, a “Sessionen har löpt ut eller är ogiltig” error will be shown. 


Använd en uppdateringstoken under auktoriseringsprocessen för att få en ny åtkomsttoken. Genom att använda en ny token säkerställer du att åtkomsttoken alltid är aktuell.


  1. Get your instance URL. Send the following curl request to obtain the instance URL. 

  • client_id = Konsumentens nyckel

  • client_secret = Konsumentens hemlighet

  • användarnamn = Användarnamn för Salesforce-inloggning

  • lösenord = lösenord för Salesforce-inloggning



If you are not familiar with curl you can use Brevbärare to send the request. Follow these steps:



  1. 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




Ange sedan din URL i webbläsaren. Tillåt åtkomst om några varningar dyker upp. Du kommer då att se webbläsaren omdirigeras till en URL som den nedan. Du kan hämta koden genom att använda samma URL.


  • https://login.salesforce.com/?code=XXXX


  1. 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 access_token and refresh_token from the response.



If you are not familiar with curl you can use Postman to send the request. Follow these steps:



Felsökning av din Salesforce-anslutning

Det vanligaste felet som uppstår när man integrerar Salesforce med Bird och hur man åtgärdar det:


  1. "REST API är inte aktiverat för denna organisation" Problem

När du försöker skicka en begäran till salesforce API med hjälp av ovanstående autentiseringsuppgifter får du ibland detta fel.


  • REST API är inte aktiverat för denna organisation.

Du kan åtgärda felet genom att följa stegen nedan.

Click on Inställning in the right top corner.



Go to ADMINISTRATION > Manage Users and click on Profiler.



Click Redigera on the specific profile you want to update.

Scroll down and go to Administrativa behörigheter and check the API aktiverat checkbox.



Don't forget to go down the page and click Spara.


Steg 3: Skapa ett nytt flöde i Flow Builder för att skapa leads eller ärenden

Den configuration of Salesforce is done. Now, let’s start a new flow. Denna mall will help you connect your favorite communication channel with Salesforce and push new leads or cases for your team to follow up:


  1. Log in to your Bird Instrumentpanel and go to Flow Builder

  2. Download the provflöde that you will be using.

  3. 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. 


Använda Salesforce med WhatsApp och Viber

Detta mallflöde låter dig ansluta din favorit channels (WhatsApp, Viber, SMS, etc.) till Salesforce. Följande exempel kommer att visa hur man ansluter Salesforce för att skapa leads på:


  • WhatsApp

  • Viber


Tänk på att du kan ändra kanal eller användningsområde beroende på dina behov.



Du bör kunna se ditt flöde på skärmen.



Fetch your access token before activating your flow. 

API-slutpunkten är som följer:

  • client_id = Konsumentens nyckel

  • client_secret = Konsumentens hemlighet, 

  • För refresh_token, se steg 2.3.




Skapa en lead i Salesforce med WhatsApp

Replace https://XXXX.my.salesforce.com with your instance URL. Telefon, Efternamn, Företag, LeadSource, Beskrivning are the field names from Salesforce. 


You can find them under Setup > Object manager > Lead > Fields & Relationship. 




Skapa ett ärende i Salesforce med Viber

Replace https://XXXX.my.salesforce.com with your instance URL. Telefon, Efternamn, Företag, LeadSource, Beskrivning are the field names from Salesforce. You can find them from Setup > Object manager > Lead > Fields & Relationship.

Den output variable ID is the case ID returned from Salesforce.  



Congratulations! 

Du har just framgångsrikt kopplat Salesforce till WhatsApp och/eller Viber för att skapa leads och case för ditt team för att möjliggöra snabbare engagemang och driva fler kvalificerade leads.

If you have any questions about your new flow or our Salesforce integration, please reach out to us here.


Your new standard in Marketing, Betalningar & Sales. It's Bird

The right message -> till right person -> vid right time.

By clicking "See Bird" you agree to Bird's Meddelande om integritet.

Your new standard in Marketing, Betalningar & Sales. It's Bird

The right message -> to the right person -> vid right time.

By clicking "See Bird" you agree to Bird's Meddelande om integritet.