Skip to main content

AI Assistant Service

The AI assistant resource holds the Fusion AI assistants: the built-in assistants published by OpenDataDSL, and your own custom assistants. See Assistants.

AI Assistant REST API​

The AI Assistant REST API is accessed through the following URL:

https://api.opendatadsl.com/api/aiassistant
MethodPathExampleDescription
GETGet the build information for this service
GET{release}v1List all the assistants you can use, built-in and custom
GET{release}/{source}/{key}v1/private/EPRRetrieve an assistant. Built-in assistants are in public and have ids starting with #
POST{release}/privatev1/privateCreate or update a custom assistant, the assistant is the body of the POST request
DELETE{release}/private/{key}v1/private/EPRDelete a custom assistant

Entities​

Assistant​

NameDescriptionType
_idUnique id for the assistantString
nameThe name of the assistantString
descriptionWhat the assistant is for. Fusion uses it to choose the assistant, so write it clearlyString
systemPromptThe instructions given to Fusion when this assistant is usedString
iconThe icon shown for the assistantString
modelThe Claude model to use, if not the defaultString
effortThe effort level to use, if not the defaultString
onlyUseCustomToolsTrue to let the assistant use only your custom toolsBoolean

Examples​

### List assistants
GET https://api.opendatadsl.com/api/aiassistant/v1
Authorization: Bearer {{token}}

### Create a custom assistant
POST https://api.opendatadsl.com/api/aiassistant/v1/private
Authorization: Bearer {{token}}
Content-Type: application/json

{
"_id": "EPR",
"name": "EPR Assistant",
"icon": "recycle",
"description": "Answers questions about extended producer responsibility obligations",
"systemPrompt": "You help the compliance team with their EPR obligations..."
}