# Delhivery

## Feature Setup: LimeChat Integration with Delhivery

### Prerequisites

Before setting up the integration, ensure you have:

* **Admin Access** to Delhivery.
* **API Token** for authentication.
* A dedicated LimeChat Product Consultant for integration support.

### Step-by-Step Setup

#### **1. Obtain Delhivery API Token**

To authenticate and interact with Delhivery’s API, an **API Token** is required.

**Steps to Generate API Token**

1. Navigate to [**Delhivery Tracking Portal**](https://track.delhivery.com/).
2. Log in using your **Delhivery Username & Password**.
3. After successful login, click on the **API Key** link located in the top-right corner.
4. Copy the **API Token**.
5. Share this **API Token** securely with your **LimeChat Product Consultant**.

#### **2. Share API Token with LimeChat**

After generating the API Token, securely share it with your **LimeChat Product Consultant** to enable integration.

#### **3. Configure Webhooks for NDR Events**

1. Log in to **Delhivery’s Dashboard**.
2. Navigate to **Webhook Settings**.
3. Add a new webhook with the following details:
   * **Webhook URL:** (Provided by LimeChat)
   * **Event Type:** Delivery failure (NDR)
   * **Authentication:** Use the API Token for verification.
4. Save the webhook configuration.

#### **4. Connect Delhivery to LimeChat**

1. On LimeChat’s platform, go to **Integrations**.
2. Select **Delhivery** and click **Connect Now**.
3. Enter your **API Token**.
4. Click **Save & Activate** to complete the integration.

### Completion

After setup, LimeChat will:

* Fetch real-time order statuses from Delhivery.
* Automate order tracking queries through the chatbot.
* Listen to delivery failure webhooks and trigger WhatsApp campaigns for resolution.

This integration ensures improved logistics communication, reduced customer escalations, and an enhanced post-purchase experience.


---

# 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://limechatai.gitbook.io/limechat-product-guide/automation/integrations/courier-aggregator/delhivery.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.
