Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Send Invoice

The Send Invoice allows restaurants using Petpooja POS to automatically send invoices to customers via WhatsApp using Ownchat.

When a bill is generated in the POS system, the invoice event is triggered and a workflow sends the invoice details directly to the customer.

This automation helps businesses:

  • Send invoices instantly

  • Reduce manual work

  • Improve customer experience

  • Collect customer feedback automatically

Overview

The Send Invoice workflow connects Petpooja POS billing events with Ownchat Flow Builder automation.

Automation Flow

Petpooja POS ↓ Invoice Generated ↓ Event Sent to Ownchat ↓ Workflow Triggered ↓ Phone Number Validation ↓ Invoice Sent via WhatsApp ↓ Customer Feedback Request ↓ Feedback Evaluation

Prerequisites

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

Required Access

You must have access to:

  • Ownchat account

  • Flow Builder

  • Integrations module

  • Petpooja POS integration

POS Requirements

The POS system must capture:

  • Customer phone number

  • Order details

  • Invoice data

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

Accessing Petpooja POS Integration

Step 1: Open Integrations

  1. Log in to Ownchat.

  2. Navigate to the left sidebar.

  3. Click Integrations.

Step 2: Select POS Integration

  1. Locate Restaurant Billing & POS Software.

  2. Click the Petpooja POS application card.

This opens the Application Details page.

Viewing Available Events

Petpooja sends multiple events to Ownchat.

Steps

  1. Click the Petpooja POS App Card.

  2. Click Available Events Count.

  3. View the list of available POS events.

Example events:

  • Invoice Created

  • Order Created

  • Order Updated

  • Customer Added

Subscribing to the Invoice Event

To enable invoice automation, you must subscribe to the Invoice Created event.

Steps

  1. Locate Invoice Created Event.

  2. Click Subscribe.

If the event is not subscribed:

  • Click the Subscribe button once

  • The event becomes active

Once subscribed, Petpooja will start sending invoice data to Ownchat.

Creating the Workflow

Open Flow Builder

  1. Navigate to Flow Builder.

  2. Click Create Workflow.

The Create New Workflow window will appear.

Build Workflow from Scratch

Two options are available:

  • Build from Scratch

  • Use a Template

Steps

  1. Select Build from Scratch.

  2. Click Get Started.

The workflow builder canvas will open.

Configure Petpooja in Workflow

  • Select Petpooja from Apps

  • Select the connection name from the dropdown

  • Select event from dropdown

  • Enter variable name as response

  • Click Update

Phone Number Validation

Before sending the invoice, the system validates the customer’s phone number.

Steps

  • Click Add Action

  • Drag output dot → create next action

  • Search and select Phone Number Validation

  • Enter action name: Gather the customer phone number

  • Click Add Variable

  • Select:

  • {{response.properties.Customer.phone}}

  • Store response in variable: Validated_number

  • Click Add Action

Send Template Message (If Number is Valid)

  • Add action → Template Message

  • Enter action name: Get the feedback through this template message

Configure Fields

  • Add variable: {{Validated_number}}

  • Add customer name variable: response.properties.customer.name

Template Selection

  • Select approved template: invoice_with_feedback_form_method_01

Template Includes

  • Order ID

  • Bill amount

  • Feedback CTA button

Additional Configuration

  • Check Time: 24 hours

  • Media Type: URL

  • Media URL:

  • Add variable → response.invoiceUrl

  • Fallback URL: Enter website URL

Body Configuration

  • Add variables where required

  • Fallback value: NA

  • Select: properties.Order.total

Store Feedback Response

  • Create variable: Feedback_1

  • Click Add Action

Handling Invalid Phone Numbers

If validation fails:

  • Select Session Message

  • Enter action name: If the mobile number get failed

Configure

  • Enter fallback contact number

  • Enter customer name

  • Message:

  • Your mobile number is not validated. Please re-enter the number.

  • Click Add Action

Feedback Capture (CTA Trigger)

  • When customer clicks Share Feedback

  • Feedback form opens in Flow Builder

  • Responses are captured automatically

Feedback Evaluation Using IF Statement

Add IF Condition

  • Search and select IF Statement

  • Enter action name

Condition Logic

  • Use AND condition (all must be true)

Configure Conditions

For each question:

  • Key: Feedback_1.<question>

  • Data Type: Number

  • Operator: Greater than or equal to

  • Disable dynamic value

  • Value: 3

Repeat for all feedback questions.

Outcome

  • All conditions TRUE → Positive feedback

  • Any condition FALSE → Negative feedback

Positive Feedback Flow

  • Add Session Message

  • Rename: Positive Message

Configure

  • Contact:

  • Validated_number.phoneNo

  • Customer Name:

  • response.properties.Customer.name

  • Enter positive message

  • Click Add Action

Negative Feedback Flow

  • Add Session Message

  • Rename: Negative Message

Configure

  • Contact:

  • Validated_number.phoneNo

  • Customer Name:

  • response.properties.Customer.name

  • Enter empathetic message

  • Click Add Action

Publish Workflow

  • Click Publish

  • Close workflow screen

Final Status

  • Workflow appears as Active in workflow list

Workflow Logic Summary

  • Invoice generated → workflow triggered

  • Phone number validated

  • Invoice sent via WhatsApp

  • Feedback collected via template

  • Feedback evaluated using IF conditions

  • Positive / Negative responses handled separately

Final Outcome

After completing this setup, your workflow will:

  • Automatically send invoices via WhatsApp

  • Validate customer contact details

  • Collect structured feedback

  • Respond intelligently to customer sentiment

  • Reduce manual effort and improve efficiency

Last updated