How to provide the current page's information as context to the AI
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3569561. --> Reported by: [weiyan](https://www.drupal.org/user/3858487) >>> <p>[Tracker]<br> <strong>Update Summary: </strong>[One-line status update for stakeholders]<br> <strong>Short Description: </strong>[One-line issue summary for stakeholders]<br> <strong>Check-in Date: </strong>MM/DD/YYYY<br> <em>Metadata is used by the <a href="https://www.drupalstarforge.ai/" title="AI Tracker">AI Tracker.</a> Docs and additional fields <a href="https://www.drupalstarforge.ai/ai-dashboard/docs" title="AI Issue Tracker Documentation">here</a>.</em><br> [/Tracker]</p> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>I have built a chatbot using AI Core 1.2.6 and AI Agents 1.2.1. It can now engage in simple conversations with me, but it lacks awareness of any content from my current website. How can I provide my website's content as contextual information for the AI? Below are my detailed operational steps:</p> <h4 id="summary-steps-reproduce">Steps to reproduce (required for bugs, but not feature requests)</h4> <p>1. Installed AI Core 1.2.6, AI Agents 1.2.1, Microsoft Azure AI, AI Assistant API, and AI Chatbot module<br> 2. Set up an API key for the AI Provider and configured the AI Providers<br> 3. Added an AI Assistant using the configured AI Provider<br> 4. Placed the &lsquo;AIChatbot&rsquo; block within the Block layout, utilising the created AI Assistant<br> 5. Opened the configured chatbot on the page and tested its basic conversational capabilities.</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <h3>Optional: Other details as applicable (e.g., User interface changes, API changes, Data model changes)</h3> <h3 id="summary-ai-usage">AI usage (if applicable)</h3> <p>[ ] AI Assisted Issue<br> This issue was generated with AI assistance, but was reviewed and refined by the creator.</p> <p>[ ] AI Assisted Code<br> This code was mainly generated by a human, with AI autocompleting or parts AI generated, but under full human supervision.</p> <p>[ ] AI Generated Code<br> This code was mainly generated by an AI with human guidance, and reviewed, tested, and refined by a human.</p> <p>[ ] Vibe Coded<br> This code was generated by an AI and has only been functionally tested.</p>
issue