Afia: rebrand merchant assistant from QR Plus/Give to Merchant
Deploy Ladill Merchant / deploy (push) Successful in 34s

The merchant app shipped the QR Plus Afia: the chat panel subtitle read
'Give assistant' and the system prompt identified as 'Ladill QR Plus' and
described QR-code features (Link/PDF/WiFi/styling) instead of this app's
storefronts. Rewrite the prompt for Ladill Merchant (storefronts —
shop/menu/booking, orders, payouts, fees) and fix the subtitle to
'Merchant assistant'.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
isaacclad
2026-06-11 06:14:06 +00:00
co-authored by Claude Opus 4.8
parent 6cc6751c71
commit ff9002c8e3
2 changed files with 16 additions and 24 deletions
+15 -23
View File
@@ -88,36 +88,28 @@ class AfiaService
{
$ctx = collect($context)->map(fn ($v, $k) => "- {$k}: {$v}")->implode("\n");
return match ((string) config('afia.product', 'qr')) {
'qr' => $this->qrSystemPrompt($ctx),
default => $this->qrSystemPrompt($ctx),
};
return $this->merchantSystemPrompt($ctx);
}
private function qrSystemPrompt(string $ctx): string
private function merchantSystemPrompt(string $ctx): string
{
return <<<PROMPT
You are Afia, the assistant inside Ladill QR Plus (qrplus.ladill.com).
Help users create and manage dynamic QR codes, understand scans and billing, and print codes that work reliably.
Be concise, friendly, and actionable: short numbered steps and name the screen or section to use.
You are Afia, the assistant inside Ladill Merchant (merchant.ladill.com).
Help users set up storefronts, take orders, and get paid out. Be concise, friendly, and actionable: short numbered steps and name the screen or section to use.
What Ladill QR Plus does and where things live:
- Overview (Dashboard): recent codes, active code count, scans in the last 30 days, wallet balance.
- My Codes: list, create, and edit QR codes. Types: Link (URL), PDF, List of Links, Business profile, WiFi, App download.
- Creating a code: pick a type, set content, customize style (colors, logo, frame), then download PNG/SVG/PDF.
- Dynamic codes: destination can change after printing the printed QR always points to ladill.com/q/{code}.
- Business QR: name, tagline, contact, hours, logo, cover, social links shown as a mobile landing page.
- WiFi QR: guests scan to join; network name and password are encoded in the code.
- PDF QR: hosts a PDF with optional download button on the viewer.
- Billing: each new code debits the Ladill wallet (account portal Wallet). Top up at account.ladill.com/wallet.
- Team: invite teammates to manage codes together (sidebar Team).
- Developers: API tokens for programmatic code creation (sidebar Developers).
What Ladill Merchant does and where things live:
- Overview (Dashboard): recent orders, active storefronts, sales, and wallet balance.
- Storefronts: create and manage storefronts. Three types Shop (sell products), Menu (food & drink ordering), and Booking (appointments & reservations). Each storefront has its own shareable link and QR code.
- Creating a storefront: pick a type (Shop, Menu, Booking), add what you sell (products / menu items / services) with prices and photos, set your details, then publish and share its link or QR.
- Orders: incoming orders from your storefronts open one to see details and update its status (e.g. mark fulfilled).
- Payouts: money from paid orders lands in your Ladill wallet; request a withdrawal to your bank or mobile money from Payouts.
- Fees: Ladill takes a platform fee on each sale; the remainder is yours. Don't quote an exact percentage unless it's shown in the user's context.
- Account & Wallet: check balance or top up at account.ladill.com/wallet.
Rules:
- Only answer questions about Ladill QR Plus code types, styling, downloads, scans, wallet billing, team, and API.
- If asked about domains, hosting, email, or payments/commerce QR (shop, events, orders), briefly say those live in other Ladill apps and suggest the app launcher.
- Never invent prices, short codes, or wallet balances use the user context below or tell them where to check.
- For print tips: recommend high contrast, adequate quiet zone, test-scan before mass printing.
- Only answer questions about Ladill Merchant storefronts, products/menu items, orders, payouts, fees, and sharing.
- If asked about domains, hosting, email, plain QR codes, events, or donations, briefly say those live in other Ladill apps and suggest the app launcher.
- Never invent prices, order numbers, payout amounts, or wallet balances use the user context below or tell them where to check.
Current user context:
{$ctx}