Kuaishou Leads Access

1. Open Kuaishou Leads Collection Connector

2. Connector Management Configuration

The main purpose of this step is to synchronize the Kuaishou leads CRM leads data to the platform connector. The connector needs to be configured and generate a URL for receiving data. The following are general configuration guides, which can be modified according to the actual situation.

2.1 New Connection Object

1) Enter the Kuaishou leads CRM connector, select the connection object tab, and click the [New] button.
2) Fill in the "Basic Information" and click [Add Intermediate Object].
3) Fill in the name of the intermediate object, and click the [Save] button after completion.
You need to create 3 new connection objects separately, and fill in the information as follows:
Basic InformationIntermediate Object
ERP Object NameERP Object CodeSplit TypeObject NameSplit Type
Kuaishou Sales LeadskuaishouClueERP objects are not split, they are independent intermediate objectsSales LeadsMain object
Kuaishou Marketing Campaignskuaishou_marketingERP objects are not split, they are independent intermediate objectsMarketing CampaignMain object
Kuaishou Landing Pagekuaishou_pageERP objects are not split, they are independent intermediate objectsLanding PageMain object

2.2 Edit Fields

1) Click the [Edit Field] button.
2) Enter the field editing page, click Add Field, and fill in the field information.
For each object, the field information that needs to be filled in is as follows:
Intermediate ObjectField NameField CodeField TypeRequired
Sales LeadsididMajor Key FieldYes
Nameconsumer_nameTextYes
TelephonephoneTelephoneYes
Leads Submission Timecreate_timeDate & TimeYes
Campaign idmarketingIdFind Associations: CampaignsYes
Marketing CampaignididMajor KeyYes
Promotion Plan Namecampaign_nameTextYes
Leads Submission TimecreateTimeDate & TimeYes
OwnerprincipalPersonnelYes
Landing PageididMajor KeyYes
Landing Page Namepage_nameTextYes
Landing Page urlsource_urlTextYes
OwnerprincipalPersonnelYes

2.3 Insert Function to Generate API Address

1) Click the [Generate API] button of the "Sales Leads" object to enter the API format page.
2) Click the [Add Function] button in the following position.
3) Fill in the description and click Next.
4) Copy and fill in the following functions:
log.info("Request parameter: "+Fx.json.toJson(syncArg)) String dataStr=syncArg["objectData"]["pushData"]; Map map=Fx.json.parse(dataStr); List resultList=[]; // Kuaishou market activity Map<String,String>kuaishou_marketing=[:]; String campaign_name=map["campaign_name"]; kuaishou_marketing.put("campaign_name",campaign_name); String create_time=map["create_time"]; kuaishou_marketing.put("create_time", create_time); String planName=map["campaign_name"]; String marketingId = Fx.crypto.MD5.encode(planName); kuaishou_marketing.put("id",marketingId); kuaishou_marketing.put("principal","10000"); resultList.add(["objAPIName":"kuaishou_marketing","masterFieldVal":kuaishou_marketing]) //marketing leads Map<String,String>kuaishouClue=[:]; String clueId=map["clue_id"]; kuaishouClue.put("id",clueId); String phone=map["phone"]; kuaishouClue.put("phone",phone); String consumer_name=map["consumer_name"]; kuaishouClue.put("consumer_name",consumer_name); kuaishouClue.put("create_time", create_time); kuaishouClue.put("marketingId",marketingId); resultList.add(["objAPIName":"kuaishouClue","masterFieldVal":kuaishouClue]) //landing page Map<String,String>kuaishou_page=[:]; String sourceUrl=map["source_url"]; kuaishou_page.put("source_url", sourceUrl); String sourceUrlId = Fx.crypto.MD5.encode(sourceUrl); kuaishou_page.put("id",sourceUrlId); String page_name=map["page_name"]; kuaishou_page.put("page_name",page_name); kuaishou_page.put("principal","10000"); resultList.add(["objAPIName":"kuaishou_page","masterFieldVal":kuaishou_page]) return ["dataList":resultList];//return array type
5) Paste the copied function and set parameters.
6) Save the function after completion, and finally copy the clue receiving URL generated as follows, and go to Kuaishou leads CRM to paste and bind (For details, please refer to 4. Configure Leads Receiving url to Kuaishou Background).

3. Connector Data Integration Flow Configuration

1) Enter the [Data Integration Flow] page, and click [New Data Integration Flow] to add an integration flow.
a. Add Campaign Integration Flow
b. Add Sales Leads Integration Flow
c. Add Landing Page Integration Flow
2) After the addition is complete, enable each integration flow separately to collect Kuaishou leads.

4. Configure Leads Receiving url to Kuaishou Background

1) After copying the url, you need to log in to the Kuaishou Leads CRM Background, and enter the user name and password to enter.
2) Enter the "Settings Center", find "Leads Push Rule", and click the "New Push Rule" button in the upper right corner of the page.
3) Set the rule name, and set whether to push as [Enabled].
If other fields need to be pushed, the corresponding connection object and integration flow in the ShareCRM connector also need to be adjusted.
4) Fill in the url address copied in the background of the connector into the [Push Address] input box, and select [POST] as the request method.
Token setting can be left blank.
The return status code key is set to errCode, and the return status value value is set to s106240000.
Filter condition is set to [Advertising Main Account id] and select [Promotion Account].
After the setting is complete, click [Next]
5) Edit a piece of test data here to complete the push test successfully.
Here, the clue_id needs to be modified to any integer that has not been pushed, and the mobile number needs to be changed from a string type to any 13-digit mobile number format.
After completing the filling, click the [Push Test] button.
6) After completing the push rule creation, enable the rule.
2023-02-14
0 0