Preferred and quickest way to creating a tutorial:
Follow the steps in the Vonage Toolbar App
For a step by step guide, please see the documentation
Clone the repo and install dependencies from the root:
git clone git@github.com:Vonage-Community/tutorial-interactive_tutorials.git
cd tutorial-interactive_tutorials
npm installRun the create command from the repo root:
npm run create-tutorialYou will be prompted for a tutorial name. You can also pass the name directly:
npm run create-tutorial -- messages_api-node-whatsappKeep to the tutorial name taxonomy,
product_name-language-topic. For example a Messages API WhatsApp tutorial in Node.js would bemessages_api-node-whatsapp.
This will scaffold a new tutorial folder under tutorials/ with the correct structure and placeholder content.
Run the edit command from the repo root:
npm run edit-tutorialThis will show an interactive list of tutorials to choose from. You can also pass the name directly:
npm run edit-tutorial -- messages_api-node-whatsappThe command will:
- Open the tutorial folder in VS Code
- Start the Astro dev server
- Open
http://localhost:4321in your browser automatically
Press Ctrl+C in the terminal to stop the dev server.
The tutorials are static websites built with Astro. Use npm run edit-tutorial from the repo root to open your tutorial and start the dev server automatically, or start it manually from your tutorial's folder:
cd tutorials/your-tutorial-name
npm run devYou can now edit the tutorial content in the src folder. Tutorials support markdown, markdoc, and HTML. Once you are done, add a small synopsis to the README.md file in your tutorial's folder.
Every tutorial includes authoring instructions that guide AI tools to produce consistent output — correct file naming, structure, frontmatter, and Markdoc components — without any per-developer setup.
.github/copilot-instructions.md is automatically loaded for every Copilot conversation in the tutorial workspace. Just describe what you want and Copilot will follow the conventions.
To create a new step using the guided prompt:
- Open Copilot Chat in VS Code
- Run the command
Chat: Use Prompt... - Select
new-step - Answer the questions (step number, name, description, code)
Copilot will create the correctly named and formatted file in src/content/docs/.
AGENTS.md in the tutorial root is automatically read by OpenCode and Codex CLI. The same naming and structure rules apply — just describe the step you want.
Include AGENTS.md as context for your AI tool. Most plugins support a #file: reference or a system prompt file. For example, with avante.nvim:
-- In your Neovim config or a project .nvim.lua:
require('avante').setup({ system_prompt = vim.fn.readfile('AGENTS.md') })Or simply paste the contents of AGENTS.md into your tool's system prompt / context window.
src/content/docs/02-step-template.md is an annotated example of a complete, well-formed tutorial step. Use it as a starting point or reference when writing manually.
