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

Events shipped the QR Plus Afia (prompt, greeting, suggestions, and 'QR Plus
assistant' subtitle). Rewrite all for Ladill Events — events, tickets,
attendees, check-in, badges, programmes, payouts.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
isaacclad
2026-06-11 07:34:26 +00:00
co-authored by Claude Opus 4.8
parent 86cd7590cd
commit 86e40bfbd2
2 changed files with 21 additions and 29 deletions
+15 -23
View File
@@ -88,36 +88,28 @@ 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->eventsSystemPrompt($ctx);
'qr' => $this->qrSystemPrompt($ctx),
default => $this->qrSystemPrompt($ctx),
};
} }
private function qrSystemPrompt(string $ctx): string private function eventsSystemPrompt(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 Events (events.ladill.com).
Help users create and manage dynamic QR codes, understand scans and billing, and print codes that work reliably. Help users create events, sell tickets, and manage attendees. 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 Events does and where things live:
- Overview (Dashboard): recent codes, active code count, scans in the last 30 days, wallet balance. - Overview (Dashboard): upcoming events, ticket sales, recent attendees, and wallet balance.
- My Codes: list, create, and edit QR codes. Types: Link (URL), PDF, List of Links, Business profile, WiFi, App download. - Events: create and manage events set details, date, venue, and ticket types/prices, then publish and share the event link or QR.
- Creating a code: pick a type, set content, customize style (colors, logo, frame), then download PNG/SVG/PDF. - Attendees: people holding tickets view them and check them in (scan their ticket QR at the door).
- Dynamic codes: destination can change after printing the printed QR always points to ladill.com/q/{code}. - Badges: design and print attendee badges.
- Business QR: name, tagline, contact, hours, logo, cover, social links shown as a mobile landing page. - Programmes: build the event schedule/agenda (sessions, times, speakers).
- WiFi QR: guests scan to join; network name and password are encoded in the code. - Payouts: ticket revenue lands in your Ladill wallet; request a withdrawal to your bank or mobile money from Payouts.
- PDF QR: hosts a PDF with optional download button on the viewer. - Account, Wallet & Team: manage billing, balance, and teammates from the account area.
- 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 Events events, tickets, attendees, check-in, badges, programmes, and payouts.
- 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, donations, or payments, 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 prices, ticket numbers, 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}
+6 -6
View File
@@ -1,10 +1,10 @@
@php @php
$afiaGreeting = "Hi, I'm Afia 👋 Ask me about QR codes — creating a Business or WiFi code, styling and downloads, scan stats, or wallet billing"; $afiaGreeting = "Hi, I'm Afia 👋 Ask me about events — creating one, selling tickets, checking in attendees, badges, or payouts";
$afiaSuggestions = [ $afiaSuggestions = [
'How do I create a Business QR code?', 'How do I create an event?',
'What is the difference between Link and List of Links?', 'How do I sell tickets and set prices?',
'How do I download a print-ready PNG?', 'How do I check in attendees at the door?',
'Why is my wallet balance low?', 'When do I get my payout?',
]; ];
@endphp @endphp
{{-- Afia Ladill AI assistant slide-over. Opened via $dispatch('afia-open'). --}} {{-- Afia Ladill AI assistant slide-over. Opened via $dispatch('afia-open'). --}}
@@ -48,7 +48,7 @@
</span> </span>
<div class="leading-tight"> <div class="leading-tight">
<p class="text-sm font-semibold text-slate-900">Afia</p> <p class="text-sm font-semibold text-slate-900">Afia</p>
<p class="text-[11px] text-slate-400">QR Plus assistant</p> <p class="text-[11px] text-slate-400">Events assistant</p>
</div> </div>
</div> </div>
<div class="flex items-center gap-1"> <div class="flex items-center gap-1">