Fix Afia AI assistant for Ladill Link.
Deploy Ladill Link / deploy (push) Successful in 31s

Wire the chat route and Link-scoped system prompt, include the Afia panel in the main layout, and point the UI at link.afia.chat instead of the copied QR Plus route.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-06-27 14:31:00 +00:00
co-authored by Cursor
parent f1fe749934
commit 5a3631cd2e
8 changed files with 127 additions and 37 deletions
+3
View File
@@ -243,5 +243,8 @@ document.addEventListener('alpine:init', () => {
@include('partials.sso-keepalive')
@include('partials.confirm-prompt')
@auth
@include('partials.afia')
@endauth
</body>
</html>
+7 -7
View File
@@ -1,15 +1,15 @@
@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 short links — creating one, custom domains, click analytics, or wallet billing…";
$afiaSuggestions = [
'How do I create a Business QR code?',
'What is the difference between Link and List of Links?',
'How do I download a print-ready PNG?',
'Why is my wallet balance low?',
'How do I create a short link?',
'How do I connect a custom domain?',
'Where do I see click stats?',
'Why was my wallet debited when I created a link?',
];
@endphp
{{-- Afia Ladill AI assistant slide-over. Opened via $dispatch('afia-open'). --}}
<div x-data="afia({
chatUrl: '{{ route('qr.afia.chat') }}',
chatUrl: '{{ route('link.afia.chat') }}',
csrf: '{{ csrf_token() }}',
greeting: @js($afiaGreeting),
suggestions: @js($afiaSuggestions),
@@ -48,7 +48,7 @@
</span>
<div class="leading-tight">
<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">Link assistant</p>
</div>
</div>
<div class="flex items-center gap-1">