Wexa.ai
  1. Agentflows
Wexa.ai
  • Wexa AI
  • Getting Started
  • Use Cases and Workflows
  • API Reference
  • Tutorials
  • Troubleshooting
  • API Endpoints
    • Actions
      • create action
      • get action
    • Agentflows
      • get agent flow
        GET
      • failover agentflows
        GET
      • Get agentflow by projectId and UserId
        GET
      • Verify_quota
        POST
      • get agentflow by id
        GET
      • create agentflow
        POST
      • Add skilled agent to agentflow
        POST
      • Update skilled agent
        POST
    • Analytics
      • Get analytics
    • Customer
      • get customer
      • Get credit history
    • Coworker schedules
      • get schedules
      • create coworker schedule
      • get schedule coworker by its id
      • update schedule by its id
      • delete schedule by its id
    • Connectors
      • get connectors by projectid
      • get connector by Id
      • Delete a connector
      • connector update status
      • get all available trigger actions
    • Credits
      • Validate user validity
      • validate workspace credits
    • Dashboard
      • get dashboard
      • refresh dashboard
      • delete component in dashboard
    • Executeflow
      • create executeflow
      • get executions
      • pause executeflow
      • resume execution
      • get execution by execution id
      • cancel executeflow
      • verify quota
      • get execution details for monitoring
      • execute agentflow
    • Files
      • get files by fileid
      • get connector by fileid
      • get files by connector_id
      • get total file size
      • upload files
    • Inbox
      • get inbox
    • Marketplace
      • get all connectors
      • get marketplace coworkers
      • get marketplace coworker by id
    • Marketplace coworkers
      • hire a coworker
      • check marketplace coworker update
    • Settings
      • get settings
    • Skills
      • get skills
      • get skills by category'
      • get skills by id
      • skills by name
      • create skill
    • Tags
      • tags
    • Tasks
      • get tasks
      • get task by id
      • resume task
      • Pause running task
      • Stop task
      • Get all tasks
      • get specific task graph
    • Tables
      • create table
      • create database
      • get tables
      • get records list
      • get table names
      • delete record
      • delete a coulmn
    • Project member
      • project_member
    • Project
      • Get all projects
      • Get project
      • Get Projects
      • create project
      • update project
      • Delete project
  1. Agentflows

Update skilled agent

POST
api.wexa.ai/agentflow/68075a61ff5c4953f0170a10/update/skilled/68075b23f6570e1e34cbece0
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'api.wexa.ai/agentflow/68075a61ff5c4953f0170a10/update/skilled/68075b23f6570e1e34cbece0?projectID=67fdea40aac77be632954f13' \
--header 'x-api-key: {{x-api-key}}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "role": "content creator testing",
    "title": "content creator testing",
    "skills": [
        "68063653fc2e1fb8597c775f"
    ],
    "prompt": {
        "display_template": "[{\"type\":\"paragraph\",\"children\":[{\"text\":\"create a content about ai replacing humans in future\"}]}]",
        "variables": [],
        "template": "create a content about ai"
    },
    "context": [],
    "triggers": [],
    "llm": {
        "model": "azure/gpt-4o",
        "max_tokens": 10000,
        "temperature": 0
    },
    "role_description": "content creator testing",
    "memory": {
        "memory_type": "lt"
    },
    "has_knowledge_base": false,
    "is_user_specific_task": false,
    "is_preview_mode_enabled": false
}'
Response Response Example
{
    "_id": "68075a61ff5c4953f0170a10",
    "name": "content creator testing",
    "description": "content creator testing",
    "role": "content creator testing",
    "projectID": "67fdea40aac77be632954f13",
    "image": "https://klotdev.blob.core.windows.net/coworkers/process-flow-wexa-10.png",
    "agentflow_type": "master",
    "parent_agentflow_id": null,
    "failover_goal": null,
    "created_at": 1745312352.995075,
    "updated_at": 1745313020.668533,
    "last_used": 1745312352.995086,
    "isActive": true,
    "is_deleted": false,
    "default_goal": "",
    "is_cron_scheduled": false,
    "organization_id": "67fdea40aac77be632954f0f",
    "cron_details": {
        "agentflow_id": "",
        "goal": {
            "template": "",
            "display_template": ""
        },
        "collection_name": null,
        "query": {},
        "projectID": "",
        "frequency": "",
        "limit": null,
        "query_limit": null,
        "executed_by": null,
        "filters": null,
        "count": null
    },
    "anomaly_detection": {
        "is_enabled": false,
        "instructions": ""
    },
    "agents": [
        {
            "_id": "68075b23f6570e1e34cbece0",
            "title": "content creator testing",
            "role": "content creator testing",
            "role_description": "content creator testing",
            "llm": {
                "model": "azure/gpt-4o",
                "temperature": 0,
                "max_tokens": 10000
            },
            "context": [],
            "has_knowledge_base": false,
            "prompt": {
                "template": "create a content about ai",
                "variables": [],
                "display_template": "[{\"type\":\"paragraph\",\"children\":[{\"text\":\"create a content about ai replacing humans in future\"}]}]"
            },
            "triggers": [],
            "is_user_specific_task": false,
            "pre_and_post_execution_input": null,
            "skills": [
                {
                    "_id": "68063653fc2e1fb8597c775f",
                    "name": "Content creator - Content creation",
                    "projectID": "67fdea40aac77be632954f13",
                    "connector_id": "68063653fc2e1fb8597c775e",
                    "description": "Creates content",
                    "logo": "https://klotdev.blob.core.windows.net/wexa/92d70903-e331-445f-a34d-eebc93d4a520_429-4292382_generalicons-meeting-social-security-icon-png.png",
                    "connector_name": "Content creator",
                    "is_deleted": false,
                    "user_id": "67fdea40aac77be632954f0e",
                    "actions": [
                        {
                            "_id": "68063654fc2e1fb8597c7760",
                            "name": "Content creation",
                            "endpoint": "/content_creator/generate",
                            "sort": "generate",
                            "category": "content_creator",
                            "previous_action_id": null,
                            "next_action_id": null,
                            "is_terminal": true,
                            "input_schema": {
                                "fields": [
                                    {
                                        "field_id": "content",
                                        "label": "content to generated",
                                        "type": "object",
                                        "required": true,
                                        "description": "A JSON object with the data that is to be saved in the execution context and should be generated by an LLM. You can follow the instructions given in the task to generate appropriate json data. This is mandatory and you should provide the data in the format mentioned in the task. If nothing is mentioned, just interpret any relevant data and provide it in the JSON format."
                                    }
                                ]
                            },
                            "output_schema": {
                                "fields": [
                                    {
                                        "field_id": "content",
                                        "label": "Generated content",
                                        "type": "object",
                                        "required": true,
                                        "description": "A JSON object representing the generated content based on the provided instructions."
                                    }
                                ]
                            },
                            "description": "This is a dummy connector that simply returns the input data as the output data.So when no other skills are available, this connector can be used."
                        }
                    ],
                    "initial_action_id": "68063654fc2e1fb8597c7760"
                }
            ],
            "agent_type": "skilled_agent",
            "next_agent": "68075b23f6570e1e34cbece0",
            "is_preview_mode_enabled": false
        },
        {
            "_id": "68075b23f6570e1e34cbece0",
            "title": "content creator testing",
            "role": "content creator testing",
            "role_description": "content creator testing",
            "llm": {
                "model": "azure/gpt-4o",
                "temperature": 0,
                "max_tokens": 10000
            },
            "context": [],
            "has_knowledge_base": false,
            "prompt": {
                "template": "create a content about abdul kalam",
                "variables": [],
                "display_template": "[{\"type\":\"paragraph\",\"children\":[{\"text\":\"create a content about abdul kalam\"}]}]"
            },
            "triggers": [],
            "is_user_specific_task": false,
            "pre_and_post_execution_input": null,
            "skills": [
                {
                    "_id": "68063653fc2e1fb8597c775f",
                    "name": "Content creator - Content creation",
                    "projectID": "67fdea40aac77be632954f13",
                    "connector_id": "68063653fc2e1fb8597c775e",
                    "description": "Creates content",
                    "logo": "https://klotdev.blob.core.windows.net/wexa/92d70903-e331-445f-a34d-eebc93d4a520_429-4292382_generalicons-meeting-social-security-icon-png.png",
                    "connector_name": "Content creator",
                    "is_deleted": false,
                    "user_id": "67fdea40aac77be632954f0e",
                    "actions": [
                        {
                            "_id": "68063654fc2e1fb8597c7760",
                            "name": "Content creation",
                            "endpoint": "/content_creator/generate",
                            "sort": "generate",
                            "category": "content_creator",
                            "previous_action_id": null,
                            "next_action_id": null,
                            "is_terminal": true,
                            "input_schema": {
                                "fields": [
                                    {
                                        "field_id": "content",
                                        "label": "content to generated",
                                        "type": "object",
                                        "required": true,
                                        "description": "A JSON object with the data that is to be saved in the execution context and should be generated by an LLM. You can follow the instructions given in the task to generate appropriate json data. This is mandatory and you should provide the data in the format mentioned in the task. If nothing is mentioned, just interpret any relevant data and provide it in the JSON format."
                                    }
                                ]
                            },
                            "output_schema": {
                                "fields": [
                                    {
                                        "field_id": "content",
                                        "label": "Generated content",
                                        "type": "object",
                                        "required": true,
                                        "description": "A JSON object representing the generated content based on the provided instructions."
                                    }
                                ]
                            },
                            "description": "This is a dummy connector that simply returns the input data as the output data.So when no other skills are available, this connector can be used."
                        }
                    ],
                    "initial_action_id": "68063654fc2e1fb8597c7760"
                }
            ],
            "agent_type": "skilled_agent",
            "next_agent": null,
            "is_preview_mode_enabled": false
        }
    ],
    "initialAgent": "68075b23f6570e1e34cbece0"
}

Request

Query Params

Header Params

Body Params application/json

Examples

Responses

🟢200Update skilled agent
application/json
Body

Modified at 2025-04-23 12:17:30
Previous
Add skilled agent to agentflow
Next
Get analytics
Built with