{"id":189172,"date":"2024-04-22T15:21:08","date_gmt":"2024-04-22T15:21:08","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/alpaca-bot\/"},"modified":"2024-07-06T02:27:07","modified_gmt":"2024-07-06T02:27:07","slug":"alpaca-bot","status":"publish","type":"plugin","link":"https:\/\/pcd.wordpress.org\/plugins\/alpaca-bot\/","author":5748470,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.4.17","stable_tag":"0.4.17","tested":"6.5.8","requires":"6.4","requires_php":"8.1","requires_plugins":null,"header_name":"Alpaca Bot","header_author":"Carmelo Santana","header_description":"A privately hosted WordPress AI chatbot.","assets_banners_color":"bbc2ba","last_updated":"2024-07-06 02:27:07","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.patreon.com\/carmelosantana","header_plugin_uri":"https:\/\/github.com\/carmelosantana\/alpaca-bot","header_author_uri":"https:\/\/carmelosantana.com\/","rating":5,"author_block_rating":0,"active_installs":30,"downloads":2666,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation"],"tags":{"0.4.16":{"tag":"0.4.16","author":"carmelosantana","date":"2024-04-22 15:21:59"},"0.4.17":{"tag":"0.4.17","author":"carmelosantana","date":"2024-07-06 02:27:07"}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":1},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3075130,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3075130,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.jpg":{"filename":"banner-1544x500.jpg","revision":3075130,"resolution":"1544x500","location":"assets","locale":""},"banner-1880x609.jpg":{"filename":"banner-1880x609.jpg","revision":3075130,"resolution":"1880x609","location":"assets","locale":""},"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":3075130,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.4.16","0.4.17"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3075130,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3075130,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3075130,"resolution":"3","location":"assets","locale":""},"screenshot-4.png":{"filename":"screenshot-4.png","revision":3075130,"resolution":"4","location":"assets","locale":""},"screenshot-5.png":{"filename":"screenshot-5.png","revision":3075130,"resolution":"5","location":"assets","locale":""},"screenshot-6.png":{"filename":"screenshot-6.png","revision":3075130,"resolution":"6","location":"assets","locale":""}},"screenshots":{"1":"Main chat interface with model list, chat history and prompt input.","2":"Chat interface with a conversation history.","3":"Drafting a post from generated responses.","4":"Override system message for custom responses.","5":"Custom assistant settings.","6":"Shortcode examples."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[2353,2364,6421,226975,226976],"plugin_category":[50],"plugin_contributors":[90179],"plugin_business_model":[],"class_list":["post-189172","plugin","type-plugin","status-publish","hentry","plugin_tags-ai","plugin_tags-chatbot","plugin_tags-embedding","plugin_tags-large-language-model","plugin_tags-ollama","plugin_category-media","plugin_contributors-carmelosantana","plugin_committers-carmelosantana"],"banners":{"banner":"https:\/\/ps.w.org\/alpaca-bot\/assets\/banner-772x250.jpg?rev=3075130","banner_2x":"https:\/\/ps.w.org\/alpaca-bot\/assets\/banner-1544x500.jpg?rev=3075130","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/alpaca-bot\/assets\/icon-128x128.png?rev=3075130","icon_2x":"https:\/\/ps.w.org\/alpaca-bot\/assets\/icon-256x256.png?rev=3075130","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/alpaca-bot\/assets\/screenshot-1.png?rev=3075130","caption":"Main chat interface with model list, chat history and prompt input."},{"src":"https:\/\/ps.w.org\/alpaca-bot\/assets\/screenshot-2.png?rev=3075130","caption":"Chat interface with a conversation history."},{"src":"https:\/\/ps.w.org\/alpaca-bot\/assets\/screenshot-3.png?rev=3075130","caption":"Drafting a post from generated responses."},{"src":"https:\/\/ps.w.org\/alpaca-bot\/assets\/screenshot-4.png?rev=3075130","caption":"Override system message for custom responses."},{"src":"https:\/\/ps.w.org\/alpaca-bot\/assets\/screenshot-5.png?rev=3075130","caption":"Custom assistant settings."},{"src":"https:\/\/ps.w.org\/alpaca-bot\/assets\/screenshot-6.png?rev=3075130","caption":"Shortcode examples."}],"raw_content":"<!--section=description-->\n<p>Easily draft a post or page from any conversation. Dynamically create new content on the fly or with remote resources collected via <code>agents<\/code>. <strong>Alpaca Bot<\/strong> offers a familiar chat interface on both desktop and mobile. You can expect a seamless chat experience on any device!<\/p>\n\n<p>An <a href=\"https:\/\/github.com\/ollama\/ollama\">Ollama<\/a> instance is required. <a href=\"https:\/\/github.com\/ollama\/ollama\">Ollama<\/a> makes it incredibly easy to self-host large language models locally or in the cloud.<\/p>\n\n<h3>Features<\/h3>\n\n<ul>\n<li>Chose to store conversation history <strong>privately<\/strong> in your <code>wp_<\/code> database or not at all.<\/li>\n<li>Use <code>[alpacabot_agent]<\/code> to execute tasks on your behalf, generate dynamic content and more.<\/li>\n<li>Chat with dozens of pre-trained LLMs or <a href=\"https:\/\/github.com\/ollama\/ollama\/blob\/main\/docs\/api.md#generate-embeddings\">train your own<\/a>.<\/li>\n<li>Switch conversational model on the fly.<\/li>\n<li>Create your own custom <a href=\"https:\/\/github.com\/ollama\/ollama\/blob\/main\/docs\/modelfile.md#system\">system messages<\/a> for highly predictable or formatted responses.<\/li>\n<\/ul>\n\n<h3>Usage<\/h3>\n\n<h4>Text Completion<\/h4>\n\n<p>You have two options to communicate with your AI models;<\/p>\n\n<ol>\n<li>Click <strong>Alpaca Bot<\/strong> found in the admin menu, below Dashboard and above Posts.<\/li>\n<li><strong>Use the shortcode<\/strong> <code>[alpacabot]<\/code> to generate a response within any post or page.<\/li>\n<\/ol>\n\n<h4>Agents<\/h4>\n\n<p>Use the <code>[alpacabot_agent]<\/code> shortcode to execute tasks on your behalf. Agents are a powerful way to empower your AI models to perform tasks on your behalf.<\/p>\n\n<p>For example, you can use the <code>[alpacabot_agent]<\/code> shortcode to retrieve content from a remote source. <code>[alpacabot_agent]<\/code>s can interact directly with your models and help summarize a webpage or rewrite content.<\/p>\n\nExample\n\n<p>Basic webpage summarization:<\/p>\n\n<pre><code>[alpacabot_agent name=summarize model=tinyllama url=https:\/\/example.com\/]\n<\/code><\/pre>\n\n<h3>Shortcodes<\/h3>\n\n<h4><code>[alpacabot]<\/code> - Chat with Alpaca Bot<\/h4>\n\n<p><em>Chat with Alpaca Bot from any post or page.<\/em><\/p>\n\nAttributes\n\n<ul>\n<li><code>model<\/code> - The model to use for the text generation. <em>(optional)<\/em><\/li>\n<li><code>system<\/code> - Specifies the <a href=\"https:\/\/github.com\/ollama\/ollama\/blob\/main\/docs\/modelfile.md#system\">system message<\/a> that will be set in the template. <em>(optional)<\/em><\/li>\n<\/ul>\n\n<h4><code>[alpacabot_agent]<\/code> - Execute tasks on your behalf<\/h4>\n\n<p><em>Execute tasks via Agents.<\/em><\/p>\n\nAttributes\n\n<p>The following are core attributes that are supported by all agents.<\/p>\n\n<ul>\n<li><code>name<\/code> - The agent to execute.<\/li>\n<\/ul>\n\n<p>Agent's communicating with <a href=\"https:\/github.com\/ollama\/ollama\">Ollama<\/a> support <code>[alpacabot]<\/code> attributes.<\/p>\n\n<h4>Caching<\/h4>\n\n<p>Requests can be cached by setting the <code>cache<\/code> attribute. <code>cache<\/code> supports short and long term options.<\/p>\n\n<p>By default responses are cached to the current post or page.<\/p>\n\nTransient\n\n<p>Numeric values are treated as seconds and will cache the response for the specified duration.<\/p>\n\n<ul>\n<li><code>cache=60<\/code> - Cache the response for 60 seconds.<\/li>\n<li><code>cache=3600<\/code> - Cache the response for 1 hour.<\/li>\n<\/ul>\n\nPost Meta\n\n<p>This is useful for caching responses permanently and associating them with a specific post or page.<\/p>\n\n<ul>\n<li><code>cache=postmeta<\/code> - Cache to current post or page.<\/li>\n<\/ul>\n\nOption\n\n<p>Use WordPress option storage to cache permanently but not associated with a specific post or page.<\/p>\n\n<p>This can be useful for sharing responses across multiple pages.<\/p>\n\n<ul>\n<li><code>cache=option<\/code> - Cache to WordPress options.<\/li>\n<\/ul>\n\nDisable\n\n<p>The following values can disable caching.<\/p>\n\n<ul>\n<li><code>cache=0<\/code> - Disable caching.<\/li>\n<li><code>cache=disable<\/code> - Disable caching.<\/li>\n<li><code>cache=false<\/code> - Disable caching.<\/li>\n<\/ul>\n\n<h3>Core Agents<\/h3>\n\n<p>The following are core agents that are provided by the <strong>Alpaca Bot<\/strong> plugin.<\/p>\n\n<h4><code>get<\/code><\/h4>\n\n<p>Retrieve content from a remote source.<\/p>\n\nAttributes\n\n<ul>\n<li><code>url<\/code> - The URL to retrieve content from.<\/li>\n<\/ul>\n\n<h4><code>summarize<\/code><\/h4>\n\n<p>Summarize remote content.<\/p>\n\nAttributes\n\n<ul>\n<li><code>url<\/code> - The URL to summarize.<\/li>\n<li><code>length<\/code> - Describe the length of the summary.<\/li>\n<li><code>content<\/code> - The type of content we want to summarize.<\/li>\n<\/ul>\n\n<h3>Support<\/h3>\n\n<p>If you need help or have questions, please join our <a href=\"https:\/\/discord.gg\/vWQTHphkVt\">Discord<\/a> community.<\/p>\n\n<p>Premium support and video calls are available to our <a href=\"https:\/\/www.patreon.com\/carmelosantana\">Patreon<\/a> subscribers. We can help setup your <a href=\"https:\/\/github.com\/ollama\/ollama\">Ollama<\/a> instance, troubleshoot issues, demonstrate shortcode functionality and more.<\/p>\n\n<p>Patreon's also receive;<\/p>\n\n<ul>\n<li>Access to our hosted <a href=\"https:\/github.com\/ollama\/ollama\">Ollama<\/a> instances.<\/li>\n<li>Priority feature requests.<\/li>\n<li>Early access to new features and releases.<\/li>\n<li>Video and community support.<\/li>\n<\/ul>\n\n<p>Please consider <a href=\"https:\/\/www.patreon.com\/carmelosantana\">becoming a Patreon<\/a> today!<\/p>\n\n<h3>Made Possible By<\/h3>\n\n<ul>\n<li>Emma Delaney's <a href=\"https:\/\/emma-delaney.medium.com\/how-to-create-your-own-chatgpt-in-html-css-and-javascript-78e32b70b4be\">How to Create Your Own ChatGPT in HTML CSS and JavaScript<\/a><\/li>\n<li>Google <a href=\"https:\/\/material.io\/resources\/icons\/?style=baseline\">Material Design Icons<\/a> - Apache-2.0 license<\/li>\n<li><a href=\"https:\/\/github.com\/chinchang\/hint.css\">Hint.css<\/a> A CSS only tooltip library - MIT license<\/li>\n<li><a href=\"https:\/\/github.com\/DavidBelicza\/PHP-Science-TextRank\">TextRank<\/a> Automatic text summarization for PHP - MIT license<\/li>\n<li><a href=\"https:\/\/github.com\/ollama\/ollama\">Ollama<\/a> Get up and running with large language models locally - MIT license<\/li>\n<li><a href=\"https:\/\/github.com\/erusev\/parsedown\">Parsedown<\/a> A better Markdown parser - MIT license<\/li>\n<\/ul>\n\n<!--section=installation-->\n<h3>Setup<\/h3>\n\n<ol>\n<li>Install <a href=\"https:\/\/github.com\/ollama\/ollama\">Ollama<\/a> on your localhost or server.<\/li>\n<li>Add your <a href=\"https:\/\/github.com\/ollama\/ollama\">Ollama<\/a> API URL to the settings page by navigating to <code>Alpaca Bot &gt; Settings<\/code> in your WordPress admin dashboard.<\/li>\n<li>Enter your <a href=\"https:\/\/github.com\/ollama\/ollama\">Ollama<\/a> API URL.<\/li>\n<li>Click <code>Save Changes<\/code>.<\/li>\n<\/ol>\n\n<p><strong><a href=\"https:\/\/www.patreon.com\/carmelosantana\">Become a Patreon<\/a><\/strong> and support <a href=\"https:\/\/alpaca.bot\/\">Alpaca Bot<\/a> development. \u2b50\ufe0f<\/p>","raw_excerpt":"A privately hosted WordPress AI chatbot. Chat with your own hosted LLMs and automate workflows with agents.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/189172","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=189172"}],"author":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/carmelosantana"}],"wp:attachment":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=189172"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=189172"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=189172"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=189172"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=189172"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=189172"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}