This plugin allows you to add an AI chatbot to your Gatsby site. It uses your markdown files and code from GitHub repositories to train the AI.
It is built with the following:
- Clone this repository
- Run
yarn install
inside the top-level directory - Run
yarn link
inside the top-level directory to create a local link to the plugin.
- Run
yarn link gatsby-plugin-docs-chatbot
inside your Gatsby site to link the plugin to your site. - Add the plugin to your
gatsby-config.js
file inside theplugins
array:
{
resolve: 'gatsby-plugin-docs-chatbot',
options: {
docsPath: '', // Path to your local markdown files
githubRepos: [
{
owner: '', // Owner of the repository
name: '', // Name of the repository
},
],
},
},
- Add your
OPENAI_API_KEY
to your.env.development
file:
OPENAI_API_KEY=YOUR_API_KEY
This project is licensed under the MIT License - see the LICENSE.md file for details.