July 14, 2023
By Logan Anderson
With TinaCMS, all your content changes are committed directly to Git. This enables your team to create a variety of workflows for reviewing and merging content updates. By leaning on GitHub, you can integrate CI/CD into your content workflow.
To illustrate the potential of this combination, we're excited to introduce Markdown Bot, an AI friend who improves your content by making suggestions to your Pull Requests.
Want to skip the reading and jump straight to the code? Check out the open source repo.
AI can be a valuable tool for assisting with writing and editing content. We've designed this bot not to replace content editors, but rather to augment their capabilities. The bot offers content suggestions directly in your pull requests. If you find the suggestions helpful, you can commit them with a click. If not, they're just as easily dismissed.
There are many AI writing tools out there but if you use them with markdown content it often involved copying and pasting from AI outputs. We wanted something that could interact with our Content in GitHub. That's why we developed a GitHub bot that allows us to receive these suggestions right within a GitHub pull request.
After you've integrated the bot into your repository, you can command it to make suggestions by commenting ai fix: <path to file>
. A custom prompt can be added by using prompt: <Custom Prompt>
underneath. The bot will then offer commit suggestions in the form of a pull request review.
To get started check out the open source repo.
Our GitHub bot works hand in hand with TinaCMS to enhance the content creation process. No longer do you need to manually copy and paste suggestions. The bot brings suggestions right to your pull requests for a smooth, efficient experience.
We can envision some impressive custom workflows being built with AI and Git-based content. For instance, you could build off of this bot to:
These are just a few of the many possibilities we see for integrating AI with Git-based content. We're excited about the potential here and look forward to seeing the creative workflows that the community will build.
Last Edited: July 14, 2023
© TinaCMS 2019–2024