Payloads
Conditional connections
In a pipeline, you may set up conditional connections between consecutive actions. With this type of connection, the target nodes will rely on the success or failure of the prior node.
Listed below are some examples of the payloads received based on the action types of the initial and target nodes, if the initial node has failed.
Custom action failure
Target: Webhook node input
{
"prev_node": {
"event": {},
"context": {}
},
"error": {
"exc_type": "error_type",
"exc_value": "error_value"
}
}Target: Custom action node input
{
"prev_node": {
"event": {},
"context": {}
},
"error": {
"exc_type": "error_type",
"exc_value": "error_value"
}
}Target: Agent node input
Process the following data:
{
"prev_node": {
"event": {},
"context": {}
},
"error": {
"exc_type": "error_type",
"exc_value": "error_value"
}
}Email failure
Target: Webhook node input
{
"prev_node": {
"email_body": empty
},
"error": {
}
}Target: Custom action node input
{
"prev_node": {
"email_body": empty
},
"error": {
}
}Target: Agent node input
Process the following data:
{
"prev_node": {
"email_body": empty
},
"error": {
}
}Webhook failure
Target: Webhook node input
{
"prev_node": {
"headers": {},
"body": "always text"
},
"error": {
"status": 400,
"response": "TEXT"
}
}Target: Custom action node input
{
"prev_node": {
"headers": {},
"body": "always text"
},
"error": {
"status": 400,
"response": "TEXT"
}
}Target: Agent node input
Process the following data:
{
"prev_node": {
"headers": {},
"body": "always text"
},
"error": {
"status": 400,
"response": "TEXT"
}
}Agent failure
Target: Webhook node input
{
"prev_node": {
"prompt": "text"
},
"error": {
}
}Target: Custom action node input
{
"prev_node": {
"prompt": "text"
},
"error": {
}
}Target: Agent node input
Process the following data:
{
"prev_node": {
"prompt": "text"
},
"error": {
}
}Updated about 23 hours ago