Download OpenAPI specification:Download
NVIDIA Botmaker Dialog Manager Server API
This endpoint can be used to provide response to query driven user request for a specific bot, using defined NLU models and Fulfillment modules. The response formation methodology is picked from the bot configurations and rules defined.
BotName | string (Botname) The Bot Name which needs to be accessed. This field is mandatory if multiple bots are deployed within Dialog Manager. It's value should match the 'bot: ' field defined in the bot config file. |
BotVersion | string (Botversion) The Bot version which needs to be accessed. It should match the 'version: ' field defined in the bot config file. |
Query | string (Query) Default: "" The user query which needs to be processed. |
UserId required | string (Userid) Mandatory unique identifier to recognize which user is interacting with the dialog manager. |
QueryId | string (Queryid) Unique identifier for the user query. This field is assigned automatically by the dialog manager if not defined. |
SourceLanguage | string (Sourcelanguage) Language of the user query. If language of user query does not match language of the bot, then dialog manager tries to call machine translator model (currently not supported) to convert the query to bot language. |
TargetLanguage | string (Targetlanguage) Expected Langauge of Dialog Manager Response text. If language of response text does not match expected output language, then dialog manager tries to call machine translator model (currently not supported) to do the conversion. |
UserContext | object (Usercontext) Any runtime custom parameters needed for dialog flow. tied to this user id. This is populated as part of the request JSON of all fulfillment endpoints as well under context. |
{- "BotName": "string",
- "BotVersion": "string",
- "Query": "",
- "UserId": "string",
- "QueryId": "string",
- "SourceLanguage": "string",
- "TargetLanguage": "string",
- "UserContext": { }
}
{- "ApiVersion": "string",
- "SourceLanguage": "en-US",
- "TargetLanguage": "en-US",
- "SchemaVersion": "string",
- "UserId": "string",
- "SessionId": "string",
- "TimeStamp": "string",
- "QueryId": "string",
- "Query": "string",
- "ProcessedQuery": "string",
- "Response": {
- "Text": "string",
- "CleanedText": "string",
- "Json": { },
- "OmniverseJson": { },
- "Action": "string",
- "NeedUserResponse": true,
- "IsPartialResponse": true
}, - "Latency": {
- "LLMModels": 0,
- "NLPModels": 0,
- "Fulfillment": 0,
- "DialogManager": 0,
- "EndToEnd": 0,
- "TimeUnit": "ms"
}
}
This endpoint can be used to provide response to a event driven user request for a specific bot, using defined NLU models and Fulfillment modules. The response formation methodology is picked from the bot configurations and rules defined.
BotName | string (Botname) The Bot Name which needs to be accessed. This field is mandatory if multiple bots are deployed within Dialog Manager. It's value should match the 'bot: ' field defined in the bot config file. |
BotVersion | string (Botversion) The Bot version which needs to be accessed. It should match the 'version: ' field defined in the bot config file. |
EventType | string (Eventtype) Default: "" The event name which needs to be processed. |
UserId required | string (Userid) Mandatory unique identifier to recognize which user is interacting with the dialog manager. |
Eventid | string (Eventid) Unique identifier for the user event. This field is assigned automatically by the dialog manager if not defined. |
Metadata | object (Metadata) Any event specific metadata needed for dialog flow. |
UserContext | object (Usercontext) Any runtime custom parameters needed for dialog flow, tied to this user id. This is populated as part of the request JSON of all fulfillment endpoints as well under context. |
{- "BotName": "string",
- "BotVersion": "string",
- "EventType": "",
- "UserId": "string",
- "Eventid": "string",
- "Metadata": { },
- "UserContext": { }
}
{- "ApiVersion": "string",
- "SchemaVersion": "string",
- "UserId": "string",
- "EventId": "string",
- "SessionId": "string",
- "TimeStamp": "string",
- "EventType": "string",
- "Events": [
- { }
], - "Response": {
- "Text": "string",
- "CleanedText": "string",
- "Json": { },
- "OmniverseJson": { },
- "Action": "string",
- "NeedUserResponse": true,
- "IsPartialResponse": true
}, - "Latency": {
- "LLMModels": 0,
- "NLPModels": 0,
- "Fulfillment": 0,
- "DialogManager": 0,
- "EndToEnd": 0,
- "TimeUnit": "ms"
}
}
Updates the context of the user at runtime.
UserId required | string (Userid) |
{ }
{- "property1": "string",
- "property2": "string"
}
Sets the context of the user at runtime. It overwrites any existing context.
UserId | string (Userid) Unique identifier to recognize which user is interacting with the dialog manager. |
Context | object (Context) Default: "[object Object]" The key value pairs which needs to be updated in the context of the provided user memory. |
required | object (Chathistory) The chat history of the provided user id bot wise. |
EventHistory required | object (Eventhistory) The event history of the provided user id bot wise. |
{- "UserId": "string",
- "Context": { },
- "ChatHistory": {
- "property1": [
- {
- "role": "string",
- "content": "string"
}
], - "property2": [
- {
- "role": "string",
- "content": "string"
}
]
}, - "EventHistory": { }
}
{- "property1": "string",
- "property2": "string"
}
Returns the context for a specified user ids.
UserId required | string (Userid) |
{- "UserId": "string",
- "Context": { },
- "ChatHistory": {
- "property1": [
- {
- "role": "string",
- "content": "string"
}
], - "property2": [
- {
- "role": "string",
- "content": "string"
}
]
}, - "EventHistory": { }
}