Integrates the RAGAI Book Backend API into a Docusaurus site. Use when users ask to setup the API, integrate the chat widget, or configure backend connections for the Book RAG project.
This skill helps integrate the RAGAI Book Backend API into a Docusaurus documentation site. It automates the creation of the API service, the Chat Widget component, and provides guidance on configuration.
src/services/api.js for backend communicationsrc/components/ChatWidget/index.js for the UIGather context to ensure successful implementation:
| Source | Gather |
|---|---|
| Codebase | Check if src/services and directories exist. |
src/components| Conversation | Confirm if the user wants to use the default localhost:8000 or a deployed URL. |
| Skill References | Use references/integration_guide.md for specific implementation details. |
Ensure all required context is gathered before implementing.
src/ exists).assets/api.js to src/services/api.js.assets/ChatWidget.js to src/components/ChatWidget/index.js.docusaurus.config.js customFields for API URL if needed.<ChatWidget /> in markdown.| File | When to Read |
|---|---|
references/integration_guide.md | For detailed API endpoints, payload structures, and troubleshooting. |
assets/api.js | The source code for the API service. |
assets/ChatWidget.js | The source code for the Chat Widget component. |
src/services/api.js createdsrc/components/ChatWidget/index.js created