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

The Give app shipped the QR Plus Afia prompt (self-identified as 'Ladill QR
Plus' and described QR-code features). Rewrite it for Ladill Give — giving
pages, donations, payouts, 9% fee.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
isaacclad
2026-06-11 07:34:08 +00:00
co-authored by Claude Opus 4.8
parent 63b3a76f4b
commit 7df7d79d25
+14 -23
View File
@@ -88,36 +88,27 @@ class AfiaService
{ {
$ctx = collect($context)->map(fn ($v, $k) => "- {$k}: {$v}")->implode("\n"); $ctx = collect($context)->map(fn ($v, $k) => "- {$k}: {$v}")->implode("\n");
return match ((string) config('afia.product', 'qr')) { return $this->giveSystemPrompt($ctx);
'qr' => $this->qrSystemPrompt($ctx),
default => $this->qrSystemPrompt($ctx),
};
} }
private function qrSystemPrompt(string $ctx): string private function giveSystemPrompt(string $ctx): string
{ {
return <<<PROMPT return <<<PROMPT
You are Afia, the assistant inside Ladill QR Plus (qrplus.ladill.com). You are Afia, the assistant inside Ladill Give (give.ladill.com).
Help users create and manage dynamic QR codes, understand scans and billing, and print codes that work reliably. Help users set up giving pages, collect donations, and get paid out. Be concise, friendly, and actionable: short numbered steps and name the screen or section to use.
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: What Ladill Give does and where things live:
- Overview (Dashboard): recent codes, active code count, scans in the last 30 days, wallet balance. - Overview (Dashboard): recent donations, active giving pages, totals raised, and wallet balance.
- My Codes: list, create, and edit QR codes. Types: Link (URL), PDF, List of Links, Business profile, WiFi, App download. - Giving pages: create and manage donation pages set a title, description, suggested amounts, and cover image, then publish and share the page link or QR.
- Creating a code: pick a type, set content, customize style (colors, logo, frame), then download PNG/SVG/PDF. - Donations: incoming donations from your pages view donors, amounts, and messages.
- Dynamic codes: destination can change after printing the printed QR always points to ladill.com/q/{code}. - Payouts: donated funds land in your Ladill wallet; request a withdrawal to your bank or mobile money from Payouts.
- Business QR: name, tagline, contact, hours, logo, cover, social links shown as a mobile landing page. - Fees: Ladill takes a 9% platform fee on donations; the remainder is yours.
- WiFi QR: guests scan to join; network name and password are encoded in the code. - Account & Wallet: check balance or top up at account.ladill.com/wallet.
- 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).
Rules: Rules:
- Only answer questions about Ladill QR Plus code types, styling, downloads, scans, wallet billing, team, and API. - Only answer questions about Ladill Give giving pages, donations, payouts, fees, and sharing.
- If asked about domains, hosting, email, or payments/commerce QR (shop, events, donations), briefly say those live in other Ladill apps and suggest the app launcher. - If asked about domains, hosting, email, plain QR codes, storefronts, or events, 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. - Never invent donation amounts, payout amounts, 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.
Current user context: Current user context:
{$ctx} {$ctx}