> For the complete documentation index, see [llms.txt](https://docs.ownchat.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ownchat.app/work-flows/petpooja/send-order-status.md). Agents can also search and read this documentation through its [MCP server](https://docs.ownchat.app/~gitbook/mcp).

# Send Order Status

The **Send Status** allows businesses to automatically send order status updates to customers via **WhatsApp** when the order status changes in **Petpooja POS.**

This automation ensures customers receive real-time updates about their order progress without manual intervention.

The workflow listens to order status events from Petpooja and sends the corresponding WhatsApp message to the customer.

{% embed url="<https://app.supademo.com/demo/cmmg0tslu5162nr99aocamrgk?utm_source=link>" %}

### Overview &#x20;

The **Send Status automation** connects **Petpooja POS events** with **OwnChat Flow Builder.**

Whenever an order status is updated in Petpooja, the workflow triggers and sends a WhatsApp notification to the customer.

#### Workflow Automation Flow &#x20;

Petpooja POS\
&#x20;     ↓\
Order Status Updated\
&#x20;     ↓\
Event Sent to OwnChat\
&#x20;     ↓\
Workflow Triggered\
&#x20;     ↓\
Order Status Condition Evaluated\
&#x20;     ↓\
WhatsApp Status Message Sent

### Prerequisites &#x20;

Before configuring the workflow, ensure the following requirements are met.

#### Required Access &#x20;

You must have access to:

* Ownchat account
* Flow Builder
* Integrations module
* Petpooja POS integration

#### POS Requirements &#x20;

The POS system must capture:

* Customer phone number
* Order ID
* Order status

Without the customer phone number, the status message cannot be delivered.

### Step-by-Step Configuration &#x20;

#### 1. Access Petpooja POS Integration  <br>

{% embed url="<https://app.supademo.com/demo/cmo2evvpw0038w10joaqhzp8w?utm_source=link>" %}

* Click the Apps icon in the left sidebar
* Select the POS filter to view point-of-sale applications
* Click on the Petpooja POS app card

{% embed url="<https://app.supademo.com/demo/cmo2eydir002nwu0j109t1zuy?utm_source=link>" %}

* Click on the Available Events count
* Locate the Send Order Status event
* Click the Subscribed button
* If not subscribed, click once to subscribe

{% embed url="<https://app.supademo.com/demo/cmo2fh7y30045w10j0k4z7lcf?utm_source=link>" %}

#### 2. Create a New Workflow &#x20;

* Go to the Workflow section
* Click Create New Flow

{% embed url="<https://app.supademo.com/demo/cmo2fk1ry0047w10j22p501v2?utm_source=link>" %}

* Select Build from Scratch

{% embed url="<https://app.supademo.com/demo/cmo2flehc003jwu0j8w9jwjpe?utm_source=link>" %}

* Enter a name in the Flow Name field
* Click Create

{% embed url="<https://app.supademo.com/demo/cmo2fnfhs00cjvw0joktnzf42?utm_source=link>" %}

#### 3. Configure Petpooja Integration &#x20;

* Click on Petpooja inside the workflow
* Ensure apps are connected from the Apps section

{% embed url="<https://app.supademo.com/demo/cmo2fp5s300a5w10jsw77zv9s?utm_source=link>" %}

* Select the required connection
* Add the following events:
* Send Invoice
* Send Status
* Select the Send Status event
* Click Update to save configuration

{% embed url="<https://app.supademo.com/demo/cmo2fr26f009swu0jqf3ybdxy?utm_source=link>" %}

#### 4. Add IF Condition – Order Status (Success) &#x20;

* Drag the output dot to create a new action → IF Statement

{% embed url="<https://app.supademo.com/demo/cmo2ft20i00acw10jiknfoc43?utm_source=link>" %}

* Enter a name for the action
* Select OR condition
* Click Add Variable
* Choose orderStatus from response variables
* Select Text as data type&#x20;

{% embed url="<https://app.supademo.com/demo/cmo2gwk1o00bdw10js34a5f4b?utm_source=link>" %}

* Choose Operator → Is
* Disable Is Dynamic Value
* Enter the value (e.g., Success)
* Click Add Action

{% embed url="<https://app.supademo.com/demo/cmo2h256e00jovw0jlza38yed?utm_source=link>" %}

#### 5. Add Session Message – Success Path &#x20;

* Select the True branch
* Choose Session Message<br>

{% embed url="<https://app.supademo.com/demo/cmo2h6jpg00jrvw0jhl75t3b0?utm_source=link>" %}

* Enter Action Name
* Add customer contact:
* Click Add Variable
* Select customerMobNo

{% embed url="<https://app.supademo.com/demo/cmo2h99pg00jtvw0jshozi4r0?utm_source=link>" %}

* Add customer name:
* Click Add Variable
* Select customerName
* Enter custom message text

{% embed url="<https://app.supademo.com/demo/cmo2heo2800bww10jgubz26za?utm_source=link>" %}

* Click Add Action

#### 6. Configure False Branch (Alternative Condition) &#x20;

* Select the False branch
* Add another IF Statement

{% embed url="<https://app.supademo.com/demo/cmo2hgu2g00kovw0jfvocpzcd?utm_source=link>" %}

* Enter action name
* Add variable:
* Select orderStatus
* Choose Operator → Is<br>

{% embed url="<https://app.supademo.com/demo/cmo2hi76a00b1wu0j2gz4937v?utm_source=link>" %}

* Disable Is Dynamic Value
* Enter value (e.g., Preparing)
* Click Add Action

{% embed url="<https://app.supademo.com/demo/cmo2hl10700b3wu0jyyorh61z?utm_source=link>" %}

#### 7. Add Session Message – Preparing Status &#x20;

* Select the True branch of the second IF<br>

{% embed url="<https://app.supademo.com/demo/cmo2hopxy00d1wu0juomrrhyh?utm_source=link>" %}

* Choose Session Message
* Enter Action Name
* Add customer contact:
* Select customerMobNo

{% embed url="<https://app.supademo.com/demo/cmo2hqllx00lnvw0jijh5jhxn?utm_source=link>" %}

* Add customer name:
* Select customerName<br>

{% embed url="<https://app.supademo.com/demo/cmo2hrus700d8wu0jbd136pqx?utm_source=link>" %}

* Enter custom message
* Click Add Action

#### 8. Publish Workflow &#x20;

* Click Publish to deploy the workflow<br>

{% embed url="<https://app.supademo.com/demo/cmo2htaii00lrvw0j0j3zfrh1?utm_source=link>" %}

* After closing and returning to the workflow list:
* The workflow will appear as Active<br>

{% embed url="<https://app.supademo.com/demo/cmo2husg600dpwu0jysaqcn96?utm_source=link>" %}

### Workflow Logic Summary &#x20;

* Order Status = Success → Send success message
* Order Status = Preparing → Send preparing message
* Uses conditional branching with IF statements
* Automates WhatsApp customer communication

### Final Outcome &#x20;

After completing this setup, your workflow will:

* Automatically track order status from Petpooja POS
* Trigger messages based on status conditions
* Improve real-time customer communication
* Reduce manual follow-ups
