# Clickable Links in Responses

### Step 1. Update the prompt

Inside your base system prompt you need to instruct the AI agent to include links in its responses. To do this, you can update the prompt like so:

```
Include the website links in markdown format at the end of your answers when applicable.
```

### Step 2. Check knowledge base

Inside your AI agent's knowledge base you can scrape a website to add all of it's pages and data. Most website will have page names and links that are included with this data (Stammer will automatically include all links by default). If, for whatever reason there are no links provided then you can add them via a document or text like \[Name of URL]\(<https://thiswouldbeyoururl.com>)

### Step 3. Test & Refine

Enable debug mode so you can see the data being used by the AI to generate it's answer. If you ask a question and its not giving you the response you like, it's most likely because its returning the irrelevant data. Make sure you only add relevant information to your knowledge base.&#x20;

{% content-ref url="debug-mode" %}
[debug-mode](https://docs.stammer.ai/stammer.ai-docs/chat-ai-agents/troubleshooting/debug-mode)
{% endcontent-ref %}

{% embed url="<https://youtu.be/JNOT-vMu4xQ>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.stammer.ai/stammer.ai-docs/chat-ai-agents/troubleshooting/clickable-links-in-responses.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
