MediaWiki Integration
วางผู้ช่วย AI ไว้บนวิกิของคุณ และให้มันตอบจากหน้าวิกิของคุณ
ภาพรวม
The Asyntai extension for MediaWiki does two things. It puts the chat assistant on every page of your wiki, and it sends your wiki pages to Asyntai so the assistant answers from them. Your readers ask a question in plain words and get the answer with a link to the page, instead of searching through hundreds of articles.
วิธีการทำงาน
Every time someone saves a page, the extension sends the new text to your Asyntai knowledge base in the background. A page that changes is sent again, and a page that is deleted is removed from Asyntai. One button sends the whole wiki at the start. This works for public wikis and for internal wikis behind a login alike, because the wiki pushes the pages out from inside.
ข้อกำหนด
- MediaWiki 1.39 or later
- สิทธิ์ผู้ดูแลระบบบนวิกิ
- บัญชี Asyntai การสร้างบัญชีไม่มีค่าใช้จ่าย และแผน Free เพียงพอสำหรับวิดเจ็ตแชต
- แผน Asyntai แบบเสียเงินสำหรับการซิงค์ฐานความรู้ เพราะใช้ API ของ Asyntai
การติดตั้ง
ทำตามขั้นตอนเหล่านี้เพื่อเพิ่ม Asyntai ลงในวิกิของคุณ:
ติดตั้งส่วนขยาย
Download the extension and unpack it into the extensions folder of your wiki, so that you have extensions/AsyntaiChatbot. Then add this line to LocalSettings.php and run maintenance/update.php once:
wfLoadExtension( 'AsyntaiChatbot' );
คัดลอกรหัสหน้าต่างของคุณ
เปิดหน้าติดตั้งในแดชบอร์ด Asyntai ของคุณ รหัสหน้าต่างคือค่าของ data-asyntai-id ในโค้ดที่แสดงอยู่ตรงนั้น
data-asyntai-id="asyntai_xxxxxxxxxxxx"
วางลงในวิกิ
Open Special:AsyntaiChatbot on your wiki as an administrator. Paste your widget ID and press Save settings. The chat assistant appears on every page at once.
เพิ่มคีย์ API ของคุณ
On the same page, paste an Asyntai API key, tick Send wiki pages to Asyntai, and save. Skip this step if you only want the chat widget.
Send the Whole Wiki
Press Send all pages now. The pages go out in the background as your visitors open pages, or at once when you run maintenance/runJobs.php. From then on, every saved page is sent on its own.
เคล็ดลับ: ก่อนเผยแพร่ ให้เพิ่มเอกสาร คำถามคำตอบ และคำสั่งของคุณใน แดชบอร์ด Asyntai เพื่อให้ผู้ช่วยตอบได้ถูกต้องตั้งแต่ผู้เข้าชมคนแรก
การซิงค์ส่งอะไรบ้าง
- The title and the text of each page, as plain text, with a link back to the wiki, so the assistant can point readers to the page
- Pages in the namespaces you choose. The main namespace is on from the start, and you can add Help or Project pages with their namespace numbers.
- Redirects are skipped, and a page shorter than 120 characters is a stub, so it is skipped too
- A page is sent again only when it changed since the last time
Sync Status
The settings page shows how many pages are in your knowledge base, how many wait in the job queue, when the last page was sent, and the last problem if there was one. If Asyntai answers that your daily upload limit is reached, the sync waits and continues the next day.
วิธีเอาออก
Remove the wfLoadExtension line from LocalSettings.php. The chat assistant and the sync stop at once. Pages already sent stay in your Asyntai knowledge base until you delete them there.
ความเป็นส่วนตัว
Your API key is stored in the wiki database and is shown to nobody after you save it. Only administrators can open the settings page. นโยบายความเป็นส่วนตัว.
แพ็กเกจและราคา
ส่วนขยายนี้ไม่มีค่าใช้จ่าย วิดเจ็ตแชตทำงานได้ในทุกแผนของ Asyntai รวมถึงแผน Free การซิงค์ฐานความรู้ต้องใช้แผนแบบเสียเงิน เพราะใช้ API ของ Asyntai ดูราคา.
ต้องการความช่วยเหลือ?
หากคุณมีคำถามหรือพบปัญหา ติดต่อเราได้ที่ [email protected].