In AI Agent Studio, agent is randomly adding nested HTML Anchor tags to URLs
Summary: I created a document tool that includes URLs. However, in the response, the agent is sometimes generating nested HTML anchor <a> tags for some URLs, which results in broken links. For example: <a href="..." target="_blank">here</a> unexpectedly becomes <a href="<a href="..." target="_blank">here</a>" target="_blank">here</a> due to which the URL link is coming with an extra " target="_blank">here. Is there any way to handle this scenario?
I have added below instructions in the Prompt
- DO NOT nest two anchor tags
- DO NOT generate URL of your own
- NEVER nest two anchor tags in an URL
Tagged:
0