PHP code example of fendinger / kirby-visitor-ai-chat
1. Go to this page and download the library: Download fendinger/kirby-visitor-ai-chat library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
fendinger / kirby-visitor-ai-chat example snippets
'fendinger.visitor-ai-chat' => [
'systemPrompt' => <<<PROMPT
You are the assistant for example.com. Answer strictly from the CONTEXT below.
Keep answers under 3 sentences. Respond in {locale}.
CONTEXT:
{context}
PROMPT,
],
'translations' => [
'visitor-ai-chat.title' => 'Ask this site',
'visitor-ai-chat.greeting' => 'Hi! How can I help?',
// ...
],