Streaming Actions
The Aisera AI Workflow Studio provides Streaming Actions that you can choose when creating Workflow Action Nodes.
Each of the following Actions is discussed in this topic:
Fetch LLM Chat Answer With Streaming
Description: Sends chat requests to the AI language model gateway with support for text and image inputs to generate intelligent responses. Supports both streaming (token-by-token) and non-streaming response modes.
Configuration Parameters: This action has no configuration parameters.
Input:
systemPrompt (String, Optional): The system-level instructions that define the AI's behavior, role, and response guidelines for the conversation.
userRequest (String, Optional): The current text message or question from the user that needs an AI response.
imageContent (String, Optional): A single image provided as either a URL link or base64-encoded data for the AI to analyze.
imageAttachments (List<Map<String, String>>, Optional): A list of files that the AI should process. Files can be added by uploading them through the form or user input.
conversationHistory (JSONArray, Optional): A stringified JSON array representing previous conversation turns. Can be found in existing variables under
conversationContext. Each entry must haverole("system","user", or"assistant") andcontentfields. Use this to maintain context. – example:[{"role": "user", "content": "Hello"}]extraMessages (JSONArray, Optional): Additional messages to include in the request for advanced use cases, formatted as a JSON array with
roleandcontentfields. Uses the same format asconversationHistory. – example:[{"role": "user", "content": "..."}]configParams (Map<String, Object>, Optional): Advanced configuration options for the AI model such as temperature, max tokens, or other model-specific parameters.
Output:
success (Boolean): Indicates whether the AI request completed successfully and returned a valid response.
responseMessage (String): The AI-generated text response to the user's request. In streaming mode, delivered incrementally per line until the full response is complete.
Public KB Search With Streaming
Description: Searches publicly accessible knowledge base content for a given query and returns a generated answer with citations. Supports domain filtering to restrict searches to specific websites. In streaming mode, the answer is delivered token by token followed by relevant document references. Search results include the source title, URL, and a content snippet.
Configuration Parameters: This action has no configuration parameters.
Input:
query (String, Required): The search query to use when searching public knowledge base content.
numOfResults (Number, Optional): The maximum number of search results to retrieve and use for answer generation. Defaults to
3if not specified.domainWhitelist (List<String>, Optional): A list of domain URLs to restrict the search to. If empty, all public domains are searched. – example:
["support.example.com", "docs.example.com"]enforceDomainWhitelistFilter (Boolean, Optional): When
true, the search is only performed if the query's domain matches one in thedomainWhitelist— otherwise the action returns with statusNoSelectedDomain. Whenfalse, the whitelist is used as a preference but does not block the search. Defaults tofalse.supportMarkdown (Boolean, Optional): When
true, citation links in the answer are formatted using Markdown syntax. Defaults tofalse.botId (Number, Optional): The bot ID associated with this action. If not provided, the bot ID from the execution context is used.
Output:
status (String): The result status of the search operation. Possible values:
SearchSuccess(results found and answer generated),NoSearchResult(no matching results),SearchFailed(an error occurred),NoSelectedDomain(query domain not in whitelist when enforcement is enabled).answer (String): The generated answer text based on the search results, with appended citation links (HTML or Markdown depending on
supportMarkdown). Empty if status is notSearchSuccess.searchResultList (List<Map<String, Object>>): A list of search result objects used to generate the answer. Each entry contains:
id(Number),title(String),url(String), andsnippet(String — a short excerpt of the source content).
Generate RAG Answer With Streaming
Description: Generates AI-powered answers using Retrieval Augmented Generation (RAG) by combining knowledge base content with language model capabilities. Supports both streaming (token-by-token) and non-streaming response modes.
Configuration Parameters: This action has no configuration parameters.
Input:
payload (String, Optional): The request configuration as a JSON string containing the user query, filters, and RAG generation parameters. Used in non-streaming mode. The
tenantIdandbotIdfields are automatically populated from the execution context. – example:{"query": "How do I reset my password?", "tenantId": "myTenant", "botId": "123"}botId (Long, Optional): The bot ID to use for the RAG request. If not provided, the bot ID from the execution context is used.
query (String, Optional): The user query to generate a RAG answer for. Required in streaming mode.
supportMarkdown (Boolean, Optional): When
true, responses and citation links are formatted using Markdown syntax. Defaults tofalse.
Output:
success (Boolean): Indicates whether the RAG answer generation completed successfully without errors.
response (String): The AI-generated answer with citations and references from the knowledge base. In streaming mode, delivered incrementally per line, followed by formatted citation links to the source documents.
mapResponse (Map<String, Object>): The structured RAG response including answer, sources, confidence scores, and metadata as key-value pairs.
Last updated
Was this helpful?
