Use a Prompt node to call an LLM (Large Language Model) that generates, extracts, or classifies information based on your inputs. A Prompt node can return either plain text or a structured JSON object. A Prompt node in Flow includes four key attributes:
Example: In this example, you use a prompt node to extract structured data from a support request.
[Python]
    prompt_node = aflow.prompt(
        name="extract_support_info",
        display_name="Extract information from a support request message.",
        description="Extract information from a support request message.",
        system_prompt=[
            "You are a customer support processing assistant, your job take the supplied support request received from email,",
            "and extract the information in the output as specified in the schema."
        ],
        user_prompt=[
            "Here is the {message}"
        ],
        llm="meta-llama/llama-3-3-70b-instruct",
        llm_parameters={    
            "temperature": 0,
            "min_new_tokens": 5,
            "max_new_tokens": 400,
            "top_k": 1,
            "stop_sequences": ["Human:", "AI:"]
        },
        input_schema=Message,
        output_schema=SupportInformation
    )
To view the complete example, see examples/flow_builder/extract_support_request.