From ff9002c8e38f87b8df3dafc197af7d1c672de2ba Mon Sep 17 00:00:00 2001 From: isaacclad Date: Thu, 11 Jun 2026 06:14:06 +0000 Subject: [PATCH] Afia: rebrand merchant assistant from QR Plus/Give to Merchant MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- app/Services/Afia/AfiaService.php | 38 ++++++++++--------------- resources/views/partials/afia.blade.php | 2 +- 2 files changed, 16 insertions(+), 24 deletions(-) diff --git a/app/Services/Afia/AfiaService.php b/app/Services/Afia/AfiaService.php index 906e5c7..8577374 100644 --- a/app/Services/Afia/AfiaService.php +++ b/app/Services/Afia/AfiaService.php @@ -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 <<

Afia

-

Give assistant

+

Merchant assistant