Write a short takeaway for a slot of a document from the data of its visualizations, in the voice of an AI Hub agent.
(EXPERIMENTAL) Generate a document takeaway
Note: This API is an experimental and is going to change. Please, use it accordingly. Writes a short takeaway for one slot of a document, based on the data of the given visualizations. The text is written as the given AI Hub agent, or as the user's default agent. Without either agent, the request fails. When no visualization has data, the response sets noData, carries no text and no model is called.
path Parameters
workspace_idstring · required
Request Body
dataobject · required
agentIdThe AI Hub agent that writes the takeaway. Omit it to use the user's default agent.
instructionsobjectmaxCharactersUpper limit for the length of the takeaway, in characters.
Responses
Successful Response
agentIdstring · requiredThe AI Hub agent that the takeaway is written as.
contextOmittedstring[] · requiredThe context parts that did not fully load because a lookup failed or timed out, wholly or partly. The takeaway uses what did load. A part that configuration switches off is never listed.
Enum values:memoryknowledgegeneratedAtstring · date-time · requirednoDataboolean · requiredtruewhen no visualization has data for the filters. Then no text is written and nothing is charged.takeawayrequiredThe takeaway text. It is
nullwhennoDataistrue.