# Guide for the operation flow when calling API in Nobita

The operation map to call API as below:

![](/files/-Mkj8WQDY0NV0OqX_yeG)

### 1. Call API on Nobita.

Requirements: You must ensure that you have created an authentication key (See instructions on creating an authentication key: HERE)&#x20;

After creating the authentication key, perform Call API with the newly created key, with the website link and UTM code in the section:

&#x20;"queryString":{&#x20;

"link":"<https://yourwebsite.com/link/chien/dich>"

}&#x20;

Go to **Setup** -> **General Settings** -> **Accesstrade** to set up connection information.

**CHèn ẢNh**

### **2.** Create a Marketing campaign with the URL source link containing the UTM code.

To create a campaign with the  URL source link containing the UTM code, go to **Nobi Marketing** -> **Marketing Campaigns** -> **Campaigns** Tab -> **Add Campaign** => Form Add Campaign Display. Here you need to fill in the correct information in the fields.

**\*\*Note: Fill the URL source exactly as URL in API setup.**

**CHèn ảnh**

The purpose of creating a marketing campaign is so that when leads coming in from the website will be assigned to the campaign to report and measure the effectiveness of Marketing, the number of leads, how much revenue from the lead source...

### 3. Set up lead division, create lead tags, and assign tags.

To set up the lead division, please follow these steps:

**Step 1**: Go to **Nobi Sales** -> **Lead Management** -> **Configuration** -> Configure the appropriate lead division according to one of the ways of dividing the lead on the Nobita system.&#x20;

**Step 2:** At Nobisales switch to **Tasks/Results** to set up the tasks for the lead and the results after performing the task.&#x20;

**Step 3:** Sales receive leads, assign tags according to customer status -> From the lead's status on Nobita, the information will be automatically updated to your system.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.nobi.pro/nobi-marketing/api-to-connect-website/guide-for-the-operation-flow-when-calling-api-in-nobita.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
