create_prediction
Generate predictions by sending questions to a specified chatflow or assistant. Integrate with Flowise to execute chatflows and retrieve responses via API.
Instructions
Create a prediction by sending a question to a specific chatflow or assistant.
Args:
chatflow_id (str, optional): The ID of the chatflow to use. Defaults to FLOWISE_CHATFLOW_ID.
question (str): The question or prompt to send to the chatflow.
Returns:
str: The raw JSON response from Flowise API or an error message if something goes wrong.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
chatflow_id | No | ||
question | Yes |
Input Schema (JSON Schema)
{
"properties": {
"chatflow_id": {
"default": null,
"title": "Chatflow Id",
"type": "string"
},
"question": {
"title": "Question",
"type": "string"
}
},
"required": [
"question"
],
"title": "create_predictionArguments",
"type": "object"
}