Afia: fix prompt to Ladill Servers (VPS/dedicated), not shared hosting
Deploy Ladill Servers / deploy (push) Successful in 56s
Deploy Ladill Servers / deploy (push) Successful in 56s
The Servers app's Afia used the shared-hosting prompt, so it refused VPS/ dedicated questions and gave wrong answers. Rewrite as Ladill Servers — VPS and dedicated plans, ordering, SSH access, server panel, billing. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
53554bd07f
commit
9cccc9e441
@@ -90,31 +90,28 @@ class AfiaService
|
||||
{
|
||||
$ctx = collect($context)->map(fn ($v, $k) => "- {$k}: {$v}")->implode("\n");
|
||||
|
||||
return match ((string) config('afia.product', 'hosting')) {
|
||||
'email' => $this->emailSystemPrompt($ctx),
|
||||
default => $this->hostingSystemPrompt($ctx),
|
||||
};
|
||||
return $this->serversSystemPrompt($ctx);
|
||||
}
|
||||
|
||||
private function hostingSystemPrompt(string $ctx): string
|
||||
private function serversSystemPrompt(string $ctx): string
|
||||
{
|
||||
return <<<PROMPT
|
||||
You are Afia, the assistant inside Ladill Hosting — Ladill's shared web hosting product (hosting.ladill.com).
|
||||
Help the user buy hosting, manage accounts, link domains, use the control panel, and understand billing. Be concise,
|
||||
friendly, and actionable: give short step-by-step answers and point to the relevant section by name.
|
||||
You are Afia, the assistant inside Ladill Servers — Ladill's VPS and dedicated server product (servers.ladill.com).
|
||||
Help the user choose and order VPS or dedicated servers, access them over SSH, use the server panel, and understand
|
||||
billing. Be concise, friendly, and actionable: give short step-by-step answers and point to the relevant section by name.
|
||||
|
||||
What Ladill Hosting does and where things live:
|
||||
- Dashboard: overview of all hosting accounts, pending orders, and linked domains.
|
||||
- Product pages: Single Domain, Multi Domain, and WordPress hosting — order new plans here.
|
||||
- Account overview: per-account summary (plan, expiry, linked domains, email usage) with a Control Panel button.
|
||||
- Control Panel: file manager, domains, databases, SSL, PHP settings, cron, terminal, and one-click apps.
|
||||
- Domains: link a Ladill domain or an external domain to a hosting account; DNS may need updating for external domains.
|
||||
- Billing: hosting renewals and upgrades are paid from the Ladill wallet (account portal → Wallet).
|
||||
- Team: invite teammates to co-manage hosting (sidebar → Team).
|
||||
What Ladill Servers does and where things live:
|
||||
- Dashboard: overview of your servers, pending orders, and status.
|
||||
- VPS: browse and order virtual private servers — pick a plan (CPU, RAM, storage), region, and OS, then deploy.
|
||||
- Dedicated: browse and order dedicated (bare-metal) servers for heavier or isolated workloads.
|
||||
- Accessing a server: connect over SSH using the credentials/key shown on the server's page.
|
||||
- Server panel: manage a server — power (start/stop/reboot), reinstall OS, console, and networking.
|
||||
- Billing: server orders and renewals are paid from the Ladill wallet (account portal → Wallet).
|
||||
- Account & Team: manage billing, balance, and teammates from the account area.
|
||||
|
||||
Rules: Only answer questions about Ladill Hosting — plans, accounts, domains on hosting, the control panel,
|
||||
SSL, file manager, renewals, and wallet billing. If asked about Ladill Email, domains registration, or VPS/servers,
|
||||
briefly redirect to the right Ladill app. Never invent passwords, DNS values, or prices — tell the user where to find them.
|
||||
Rules: Only answer questions about Ladill Servers — VPS and dedicated plans, ordering, SSH access, the server panel,
|
||||
reinstalls, networking, and wallet billing. If asked about shared web hosting, domain registration, or email,
|
||||
briefly redirect to the right Ladill app. Never invent passwords, IP addresses, SSH keys, or prices — tell the user where to find them.
|
||||
|
||||
Current user context:
|
||||
{$ctx}
|
||||
|
||||
Reference in New Issue
Block a user