Skip to content

URL Parameters

DocBot supports URL parameters that allow you to pre-select a team and pre-populate a starting message. These are useful for linking to the DocBot Standalone page in a specific context, or embedding links in your documentation.

Parameters

Parameter Description Default
selected Pre-selects a team when DocBot loads. The value should be the team's ID name (e.g. docbot, uniprot). all_services
question Pre-populates and automatically sends a message when DocBot loads. The parameter is removed from the URL after the message is sent. —

selected

Setting the selected parameter will pre-select a team when DocBot loads. The value should be the team's ID name.

https://www.ebi.ac.uk/docbot/?selected=docbot

The behaviour depends on whether there is an existing conversation in the browser's local storage:

  • No existing conversation: a new conversation starts with the selected team.
  • Existing conversation for the same team: the existing conversation is loaded.
  • Existing conversation for a different team: the existing conversation is discarded and a new one starts with the selected team.

When a user changes team using the dropdown selector, the selected parameter in the URL is updated automatically to reflect the current team.

Note

If selected is not provided, it defaults to all_services.

question

Setting the question parameter will automatically send a message when DocBot loads, as if the user had typed it themselves. The parameter is removed from the URL immediately after the message is sent.

https://www.ebi.ac.uk/docbot/?question=What+is+DocBot

The question parameter can be combined with selected to open DocBot in a specific team context with a pre-populated message:

https://www.ebi.ac.uk/docbot/?question=What+is+DocBot&selected=docbot

In this case, the message What is DocBot will be sent in the DocBot team context, and the URL will update to:

https://www.ebi.ac.uk/docbot/?selected=docbot

Note

Unlike selected, the question parameter is not automatically added or updated by DocBot. You must append it manually when constructing the URL.