Add Edge to Graph
curl --request POST \
--url https://api.beamstudio.ai/agent-graphs/add-edge \
--header 'Content-Type: application/json' \
--header 'current-workspace-id: <current-workspace-id>' \
--header 'x-api-key: <api-key>' \
--data '
{
"sourceNodeId": "<string>",
"targetNodeId": "<string>",
"agentId": "<string>",
"agentGraphId": "<string>",
"isAttachmentDataPulledIn": true,
"condition": "<string>",
"groups": [
{
"rules": [
{
"sourceAgentToolConfigurationOutputParamsId": "<string>",
"comparisonValue": "<string>",
"comparisonAgentToolConfigurationOutputParamsId": "<string>"
}
]
}
]
}
'{
"sourceAgentGraphNodeId": "<string>",
"targetAgentGraphNodeId": "<string>",
"isAttachmentDataPulledIn": true,
"conditionGroups": [
{
"agentGraphEdgeId": "<string>",
"edge": "<unknown>",
"rules": [
{
"agentGraphEdgeConditionGroupId": "<string>",
"sourceAgentToolConfigurationOutputParamsId": "<string>",
"group": "<unknown>",
"sourceOutputParam": {
"id": "param-123e4567-e89b-12d3-a456-426614174000",
"agentToolConfigurationId": "config-123e4567-e89b-12d3-a456-426614174000",
"isArray": false,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"paramName": "customerData",
"position": 1,
"paramDescription": "The customer data retrieved from the database.",
"parentId": "<string>",
"paramPath": "response.data.customer",
"outputExample": "{\"name\": \"John Doe\", \"email\": \"john@example.com\"}",
"dataType": "string",
"typeOptions": {}
},
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"comparisonValue": "<string>",
"comparisonAgentToolConfigurationOutputParamsId": "<string>",
"comparisonOutputParam": {
"id": "param-123e4567-e89b-12d3-a456-426614174000",
"agentToolConfigurationId": "config-123e4567-e89b-12d3-a456-426614174000",
"isArray": false,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"paramName": "customerData",
"position": 1,
"paramDescription": "The customer data retrieved from the database.",
"parentId": "<string>",
"paramPath": "response.data.customer",
"outputExample": "{\"name\": \"John Doe\", \"email\": \"john@example.com\"}",
"dataType": "string",
"typeOptions": {}
}
}
],
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"condition": "<string>"
}Agent Graph
Add Edge to Graph
Add a new edge (connection) between two nodes in the agent workflow graph. Edges define the flow of execution between nodes.
POST
/
agent-graphs
/
add-edge
Add Edge to Graph
curl --request POST \
--url https://api.beamstudio.ai/agent-graphs/add-edge \
--header 'Content-Type: application/json' \
--header 'current-workspace-id: <current-workspace-id>' \
--header 'x-api-key: <api-key>' \
--data '
{
"sourceNodeId": "<string>",
"targetNodeId": "<string>",
"agentId": "<string>",
"agentGraphId": "<string>",
"isAttachmentDataPulledIn": true,
"condition": "<string>",
"groups": [
{
"rules": [
{
"sourceAgentToolConfigurationOutputParamsId": "<string>",
"comparisonValue": "<string>",
"comparisonAgentToolConfigurationOutputParamsId": "<string>"
}
]
}
]
}
'{
"sourceAgentGraphNodeId": "<string>",
"targetAgentGraphNodeId": "<string>",
"isAttachmentDataPulledIn": true,
"conditionGroups": [
{
"agentGraphEdgeId": "<string>",
"edge": "<unknown>",
"rules": [
{
"agentGraphEdgeConditionGroupId": "<string>",
"sourceAgentToolConfigurationOutputParamsId": "<string>",
"group": "<unknown>",
"sourceOutputParam": {
"id": "param-123e4567-e89b-12d3-a456-426614174000",
"agentToolConfigurationId": "config-123e4567-e89b-12d3-a456-426614174000",
"isArray": false,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"paramName": "customerData",
"position": 1,
"paramDescription": "The customer data retrieved from the database.",
"parentId": "<string>",
"paramPath": "response.data.customer",
"outputExample": "{\"name\": \"John Doe\", \"email\": \"john@example.com\"}",
"dataType": "string",
"typeOptions": {}
},
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"comparisonValue": "<string>",
"comparisonAgentToolConfigurationOutputParamsId": "<string>",
"comparisonOutputParam": {
"id": "param-123e4567-e89b-12d3-a456-426614174000",
"agentToolConfigurationId": "config-123e4567-e89b-12d3-a456-426614174000",
"isArray": false,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"paramName": "customerData",
"position": 1,
"paramDescription": "The customer data retrieved from the database.",
"parentId": "<string>",
"paramPath": "response.data.customer",
"outputExample": "{\"name\": \"John Doe\", \"email\": \"john@example.com\"}",
"dataType": "string",
"typeOptions": {}
}
}
],
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"condition": "<string>"
}Authorizations
Headers
Body
application/json
Response
201 - application/json
Edge added successfully
⌘I