add_workflow_activity
Enable workflow customization by adding activities such as approvals, tasks, or notifications to ServiceNow workflows using the specified workflow version ID, name, type, and optional attributes.
Instructions
Add a new activity to a workflow in ServiceNow
Input Schema
Name | Required | Description | Default |
---|---|---|---|
activity_type | Yes | Type of activity (e.g., 'approval', 'task', 'notification') | |
attributes | No | Additional attributes for the activity | |
description | No | Description of the activity | |
name | Yes | Name of the activity | |
workflow_version_id | Yes | Workflow version ID |
Input Schema (JSON Schema)
{
"description": "Parameters for adding an activity to a workflow.",
"properties": {
"activity_type": {
"description": "Type of activity (e.g., 'approval', 'task', 'notification')",
"title": "Activity Type",
"type": "string"
},
"attributes": {
"anyOf": [
{
"type": "object"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional attributes for the activity",
"title": "Attributes"
},
"description": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Description of the activity",
"title": "Description"
},
"name": {
"description": "Name of the activity",
"title": "Name",
"type": "string"
},
"workflow_version_id": {
"description": "Workflow version ID",
"title": "Workflow Version Id",
"type": "string"
}
},
"required": [
"workflow_version_id",
"name",
"activity_type"
],
"title": "AddWorkflowActivityParams",
"type": "object"
}