Title: Alpaca Bot
Author: carmelosantana
Published: <strong>2024 年 4 月 22 日</strong>
Last modified: 2024 年 7 月 6 日

---

搜尋外掛

![](https://ps.w.org/alpaca-bot/assets/banner-772x250.jpg?rev=3075130)

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://ps.w.org/alpaca-bot/assets/icon-256x256.png?rev=3075130)

# Alpaca Bot

 由 [carmelosantana](https://profiles.wordpress.org/carmelosantana/) 開發

[下載](https://downloads.wordpress.org/plugin/alpaca-bot.0.4.17.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/alpaca-bot/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/alpaca-bot/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/alpaca-bot/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/alpaca-bot/#developers)

 [技術支援](https://wordpress.org/support/plugin/alpaca-bot/)

## 外掛說明

Easily draft a post or page from any conversation. Dynamically create new content
on the fly or with remote resources collected via `agents`. **Alpaca Bot** offers
a familiar chat interface on both desktop and mobile. You can expect a seamless 
chat experience on any device!

An [Ollama](https://github.com/ollama/ollama) instance is required. [Ollama](https://github.com/ollama/ollama)
makes it incredibly easy to self-host large language models locally or in the cloud.

### Features

 * Chose to store conversation history **privately** in your `wp_` database or not
   at all.
 * Use `[alpacabot_agent]` to execute tasks on your behalf, generate dynamic content
   and more.
 * Chat with dozens of pre-trained LLMs or [train your own](https://github.com/ollama/ollama/blob/main/docs/api.md#generate-embeddings).
 * Switch conversational model on the fly.
 * Create your own custom [system messages](https://github.com/ollama/ollama/blob/main/docs/modelfile.md#system)
   for highly predictable or formatted responses.

### Usage

#### Text Completion

You have two options to communicate with your AI models;

 1. Click **Alpaca Bot** found in the admin menu, below Dashboard and above Posts.
 2. **Use the shortcode** `[alpacabot]` to generate a response within any post or page.

#### Agents

Use the `[alpacabot_agent]` shortcode to execute tasks on your behalf. Agents are
a powerful way to empower your AI models to perform tasks on your behalf.

For example, you can use the `[alpacabot_agent]` shortcode to retrieve content from
a remote source. `[alpacabot_agent]`s can interact directly with your models and
help summarize a webpage or rewrite content.

Example

Basic webpage summarization:

    ```
    [alpacabot_agent name=summarize model=tinyllama url=https://example.com/]
    ```

### Shortcodes

#### `[alpacabot]` – Chat with Alpaca Bot

_Chat with Alpaca Bot from any post or page._

Attributes

 * `model` – The model to use for the text generation. _(optional)_
 * `system` – Specifies the [system message](https://github.com/ollama/ollama/blob/main/docs/modelfile.md#system)
   that will be set in the template. _(optional)_

#### `[alpacabot_agent]` – Execute tasks on your behalf

_Execute tasks via Agents._

Attributes

The following are core attributes that are supported by all agents.

 * `name` – The agent to execute.

Agent’s communicating with [Ollama](https://tw.wordpress.org/github.com/ollama/ollama?output_format=md)
support `[alpacabot]` attributes.

#### Caching

Requests can be cached by setting the `cache` attribute. `cache` supports short 
and long term options.

By default responses are cached to the current post or page.

Transient

Numeric values are treated as seconds and will cache the response for the specified
duration.

 * `cache=60` – Cache the response for 60 seconds.
 * `cache=3600` – Cache the response for 1 hour.

Post Meta

This is useful for caching responses permanently and associating them with a specific
post or page.

 * `cache=postmeta` – Cache to current post or page.

Option

Use WordPress option storage to cache permanently but not associated with a specific
post or page.

This can be useful for sharing responses across multiple pages.

 * `cache=option` – Cache to WordPress options.

Disable

The following values can disable caching.

 * `cache=0` – Disable caching.
 * `cache=disable` – Disable caching.
 * `cache=false` – Disable caching.

### Core Agents

The following are core agents that are provided by the **Alpaca Bot** plugin.

#### `get`

Retrieve content from a remote source.

Attributes

 * `url` – The URL to retrieve content from.

#### `summarize`

Summarize remote content.

Attributes

 * `url` – The URL to summarize.
 * `length` – Describe the length of the summary.
 * `content` – The type of content we want to summarize.

### Support

If you need help or have questions, please join our [Discord](https://discord.gg/vWQTHphkVt)
community.

Premium support and video calls are available to our [Patreon](https://www.patreon.com/carmelosantana)
subscribers. We can help setup your [Ollama](https://github.com/ollama/ollama) instance,
troubleshoot issues, demonstrate shortcode functionality and more.

Patreon’s also receive;

 * Access to our hosted [Ollama](https://tw.wordpress.org/github.com/ollama/ollama?output_format=md)
   instances.
 * Priority feature requests.
 * Early access to new features and releases.
 * Video and community support.

Please consider [becoming a Patreon](https://www.patreon.com/carmelosantana) today!

### Made Possible By

 * Emma Delaney’s [How to Create Your Own ChatGPT in HTML CSS and JavaScript](https://emma-delaney.medium.com/how-to-create-your-own-chatgpt-in-html-css-and-javascript-78e32b70b4be)
 * Google [Material Design Icons](https://material.io/resources/icons/?style=baseline)–
   Apache-2.0 license
 * [Hint.css](https://github.com/chinchang/hint.css) A CSS only tooltip library –
   MIT license
 * [TextRank](https://github.com/DavidBelicza/PHP-Science-TextRank) Automatic text
   summarization for PHP – MIT license
 * [Ollama](https://github.com/ollama/ollama) Get up and running with large language
   models locally – MIT license
 * [Parsedown](https://github.com/erusev/parsedown) A better Markdown parser – MIT
   license

## 螢幕擷圖

 * [[
 * Main chat interface with model list, chat history and prompt input.
 * [[
 * Chat interface with a conversation history.
 * [[
 * Drafting a post from generated responses.
 * [[
 * Override system message for custom responses.
 * [[
 * Custom assistant settings.
 * [[
 * Shortcode examples.

## 安裝方式

### Setup

 1. Install [Ollama](https://github.com/ollama/ollama) on your localhost or server.
 2. Add your [Ollama](https://github.com/ollama/ollama) API URL to the settings page
    by navigating to `Alpaca Bot > Settings` in your WordPress admin dashboard.
 3. Enter your [Ollama](https://github.com/ollama/ollama) API URL.
 4. Click `Save Changes`.

**[Become a Patreon](https://www.patreon.com/carmelosantana)** and support [Alpaca Bot](https://alpaca.bot/)
development. ⭐️

## 使用者評論

![](https://secure.gravatar.com/avatar/0a8dafdc96bfd7b65972ce8b9bd94a133661ead28c03f42d2c9c2357a258d665?
s=60&d=retro&r=g)

### 󠀁[exactly what’s needed.](https://wordpress.org/support/topic/exactly-whats-needed-4/)󠁿

 [linussextips](https://profiles.wordpress.org/linussextips/) 2024 年 4 月 22 日

smart dude. check him out.

 [ 閱讀全部 1 則使用者評論 ](https://wordpress.org/support/plugin/alpaca-bot/reviews/)

## 參與者及開發者

以下人員參與了開源軟體〈Alpaca Bot〉的開發相關工作。

參與者

 *   [ carmelosantana ](https://profiles.wordpress.org/carmelosantana/)

[將〈Alpaca Bot〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/alpaca-bot)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/alpaca-bot/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/alpaca-bot/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/alpaca-bot/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/alpaca-bot/)。

## 中繼資料

 *  版本 **0.4.17**
 *  最後更新 **2 年前**
 *  啟用安裝數 **30+**
 *  WordPress 版本需求 ** 6.4 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.5.8**
 *  PHP 版本需求 ** 8.1 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/alpaca-bot/)
 * 標籤
 * [AI](https://tw.wordpress.org/plugins/tags/ai/)[chatbot](https://tw.wordpress.org/plugins/tags/chatbot/)
   [embedding](https://tw.wordpress.org/plugins/tags/embedding/)[ollama](https://tw.wordpress.org/plugins/tags/ollama/)
 *  [進階檢視](https://tw.wordpress.org/plugins/alpaca-bot/advanced/)

## 評分

 5 星，滿分為 5 星

 *  [  1 個 5 星使用者評論     ](https://wordpress.org/support/plugin/alpaca-bot/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/alpaca-bot/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/alpaca-bot/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/alpaca-bot/reviews/?filter=2)
 *  [  0 個 1 星使用者評論     ](https://wordpress.org/support/plugin/alpaca-bot/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/alpaca-bot/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/alpaca-bot/reviews/)

## 參與者

 *   [ carmelosantana ](https://profiles.wordpress.org/carmelosantana/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/alpaca-bot/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](https://www.patreon.com/carmelosantana)