Assistant API ChatBot output formats

The ChatBot that we are testing (which uses the Assistant’s API) is working quite well. However, we are getting a few issues:

  1. In its responses it includes things like this → 【12:0†source】
  2. URLs (sourced from the Assistant’s knowledge file) are not clickable
  3. Phone numbers are not dialable

Can anyone advise as to how to fix these?

  1. You have to remove the source-data in your script on your own, with something like (not tested, just asked ChatGPT):
$text = preg_replace('/【[^†【】]+†[^【】]+】/', '', $text);
  1. If the output is not generated by the Chatbot itself, you have to link URLs on your own.
  2. Just tell the assistant in the instructions, how you want them.
Rules:
- Clickable Content:
    - Use <a> elements for URLs, paths, emails, and phone numbers to ensure they are easy to read and clickable.
1 Like