How to Insert URLs in AI Responses?
Including URLs in AI responses helps users access detailed information and additional resources. This guide explains how to configure AskHandle to show URLs in responses.
Step 1: Upload Documents with URLs
Start by uploading documents that contain URLs linked to specific answers. These documents form the AI’s searchable knowledge base.
For example, if a user asks, “Do you have any tourist routes to New York?”, the document might contain the following text:
Our New York tour details: Visit our website for more information on routes and attractions.
AskHandle AI will find and display this link when generating answers based on the document's content.
Step 2: Write a Custom Prompt for the AI
To ensure that URLs are consistently included in responses, provide a clear instruction in the Custom Prompt section.
A sample prompt could be:
“You should include a link in the answers.”
This prompt helps guide the AI to prioritize relevant links when responding to user questions.
Step 3: Embed URLs in Text Context
Embedding URLs naturally within sentences improves AI recognition and response quality. For example, your document might include a sentence like:
Our New York tour includes five tourist attractions. For more details, visit: https://www.xyz.com/new-york-tour.
This approach helps ensure that the AI provides both context and useful links in its answers.