WhatsApp & Chat Commerce
WhatsApp & Chat Commerce
Lipafy enables autonomous AI sales agents to sell products, negotiate pricing, and collect payments directly inside chat apps (WhatsApp, Telegram, Discord, Web Chat) using M-Pesa STK Push.
🛠️ MCP Tools for Chat Commerce
When you connect Lipafy’s remote MCP server (https://api.lipafy.xyz/mcp), your agent gets access to dedicated merchant collection tools:
1. lipafy_collect_payment
Triggers an on-device M-Pesa STK push prompt on the customer’s phone.
Parameters:
phone(string, required): The customer’s Kenyan phone number (e.g.0712345678,0112345678, or254712345678).amount(string, required): Amount in whole KES to collect (e.g."1500","4500").order_reference(string, optional): Order ID or invoice narrative (e.g."ORD-402 - 2x Air Jordans").customer_name(string, optional): Customer’s display name.
MCP Tool Invocation Example:
Response:
2. lipafy_get_payment_status
Verifies whether the customer has completed their PIN entry and settled the payment.
Parameters:
payment_request_id(string, required): The unique ID returned bylipafy_collect_payment.
Response (Settled):
🤖 Full TypeScript Agent Workflow (Claude / LangChain / ElizaOS)
⚡ Key Benefits for WhatsApp & Social Merchants
- Zero Drop-off: Customers don’t need to copy-paste PayBill numbers or switch between banking apps. The STK prompt appears directly on their phone screen.
- Fraud Proof: No risk of fake or photoshopped M-Pesa SMS messages because fulfillment is locked to server-verified telecom settlement.
- Automated Revenue Splits: Collect from customer automatically disburse delivery rider fee via M-Pesa B2C pay supplier wholesale cost via Till.
