Download OpenAPI specification:Download
NVIDIA ACE Agent Chat Engine Server API
This endpoint can be used to provide response to query driven user request for a specific bot, using defined NLU models and plugin modules. The response formation methodology is picked from the bot configurations and rules defined.
Botname (string) or Botname (null) (Botname) The Bot Name which needs to be accessed. This field is mandatory if multiple bots are deployed within Chat Engine. It's value should match the 'bot: ' field defined in the bot config file. | |
Query (string) or Query (null) (Query) Default: "" The user query which needs to be processed. | |
UserId required | string (Userid) <= 4096 characters Mandatory unique identifier to recognize which user is interacting with the chat engine. |
Sourcelanguage (string) or Sourcelanguage (null) (Sourcelanguage) Language of the user query. If language of user query does not match language of the bot, then chat engine tries to call machine translator model (currently not supported) to convert the query to bot language. | |
Targetlanguage (string) or Targetlanguage (null) (Targetlanguage) Expected Langauge of Chat Engine Response text. If language of response text does not match expected output language, then chat engine tries to call machine translator model (currently not supported) to do the conversion. | |
Usercontext (object) or Usercontext (null) (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. | |
Metadata (object) or Metadata (null) (Metadata) Default: {} Any chat specific metadata needed for dialog flow. |
{- "BotName": "string",
- "Query": "",
- "UserId": "string",
- "SourceLanguage": "string",
- "TargetLanguage": "string",
- "UserContext": { },
- "Metadata": { }
}
null
This endpoint can be used to provide response to a event driven user request for a specific bot, using defined NLU models and plugin modules. The response formation methodology is picked from the bot configurations and rules defined.
Botname (string) or Botname (null) (Botname) The Bot Name which needs to be accessed. This field is mandatory if multiple bots are deployed within Chat Engine. It's value should match the 'bot: ' field defined in the bot config file. | |
EventType | string (Eventtype) <= 4096 characters Default: "" The event name which needs to be processed. |
UserId required | string (Userid) <= 4096 characters Mandatory unique identifier to recognize which user is interacting with the chat engine. |
Metadata (object) or Metadata (null) (Metadata) Default: {} Any event specific metadata needed for dialog flow. | |
Usercontext (object) or Usercontext (null) (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",
- "EventType": "",
- "UserId": "string",
- "Metadata": { },
- "UserContext": { }
}
{- "Events": [
- { }
], - "EventType": "string",
- "Response": {
- "Text": "string",
- "CleanedText": "string",
- "Json": { },
- "OmniverseJson": { },
- "NeedUserResponse": true,
- "IsFinal": true
}, - "Latency": {
- "LLMModels": 1000000000,
- "NLPModels": 1000000000,
- "Fulfillment": 1000000000,
- "DialogManager": 1000000000,
- "EndToEnd": 1000000000,
- "TimeUnit": "ms"
}
}
Updates the context of the user at runtime.
UserId required | string (Userid) <= 4096 characters |
{ }
{- "StatusMessage": "string"
}
Sets the context of the user at runtime. It overwrites any existing context.
UserId | string (Userid) <= 4096 characters Unique identifier to recognize which user is interacting with the chat engine. |
Context | object (Context) Default: {} The key value pairs which needs to be updated in the context of the provided user memory. |
required | object (Chathistory) <= 256 properties 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": { }
}
{- "StatusMessage": "string"
}
Returns the context for a specified user ids.
UserId required | string (Userid) <= 4096 characters |
{- "UserId": "string",
- "Context": { },
- "ChatHistory": {
- "property1": [
- {
- "role": "string",
- "content": "string"
}
], - "property2": [
- {
- "role": "string",
- "content": "string"
}
]
}, - "EventHistory": { }
}