Respond using Search Results Agent

Deprecation Notice: This agent is deprecated. Use the Respond to a Query Agent instead.

The Respond using Search Results agent generates a response grounded in provided search results. It combines the query and search results, generates an answer using that context, and returns a single response_with_sources output containing both the response text and the retained sources.

Use Cases

  • Your workflow searches a knowledge base and needs to generate a cited response.
  • You want responses that are grounded in source documents, not based on the LLM's training data alone.
  • You want the output to preserve the specific sources used to support the answer.

Inputs

InputTypeRequiredDescription
queryTextWithSourcesYesThe query or prompt to answer. Any sources already attached to the query are merged with search_results.
search_resultsSearchResultsYesThe search results used as the grounding context for the response.
user_instructionsTextNoOptional instructions for tone, format, or response behavior.

Outputs

OutputTypeDescription
response_with_sourcesTextWithSourcesThe generated response. The text is returned in text and the retained sources are returned in sources on the same object.

Configurations

ParameterDescriptionDefault
user_instructionsAdditional instructions for how the response should be written.Empty
se_guidelinesAdditional hidden search experience guidance appended to the system prompt.Empty
process_entire_documentUse entire matched documents instead of only matched segments or chunks.false
glossaryGlossary terms to guide terminology and domain language.None
user_tagsUser tags that can help prioritize more relevant results.None
reranking_percentile_thresholdFilters retained sources by semantic similarity to the generated answer.0 (disabled)
use_citation_based_filteringUses structured output so the model identifies which sources it actually used.true
no_search_results_responseFixed fallback response used when no search results are available.Built-in default message
use_clarifying_questionAllows the model to return a clarifying-question style response when the query is too ambiguous.false
clarify_question_user_instructionsAdditional instructions for clarifying-question behavior.Empty
disable_sourcesClears sources from the final output even though search results are still used during generation.false

How to Use This Agent

chat_trigger -> knowledge_search -> respond_using_search_results -> workflow_output

Last updated: Jul 3, 2026