ParameterExtractor and QuestionClassifier nodes. Both encapsulate complex prompt and code logic, using LLMs to handle tasks that are difficult to solve with hardcoded rules.
Call the Parameter Extractor Node
Entry Point
Interface
parameters: The list of parameters to extract.model: Conforms to theLLMModelConfigspecification.query: The source text for parameter extraction.instruction: Any additional instructions the LLM might need.
NodeResponse, see the General Specifications Definition.
Use Case
This example extracts a person’s name from a conversation:NodeResponse is a Pydantic model defined in dify_plugin.entities.workflow_node with three dictionary fields: process_data, inputs, and outputs. Extracted values live under response.outputs.
Call the Question Classifier Node
Entry Point
Interface
ClassConfig is also exported from dify_plugin.entities.workflow_node. The interface parameters match those of ParameterExtractor, and the final result is stored in response.outputs["class_name"].
Edit this page | Report an issue