Create Knowledge Article
create_kb_articleCreate a draft knowledge article in a ServiceNow knowledge base using HTML or wiki markup, with options to set category and workflow state.
Instructions
Create a new knowledge article in a specified knowledge base. The article is created in 'draft' workflow state by default. Use publish_kb_article to make it visible to end users.
The body content can be provided as HTML (text field) or wiki markup (wiki field). HTML is the more common format.
IMPORTANT: This creates a new article on the instance.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instance | No | The ServiceNow instance auth alias to use. This is the alias configured via `now-sdk auth --add` (e.g., "myinstance", "prod", "test"). The user will typically refer to this by name when saying things like "on my myinstance instance". If not provided, falls back to the SN_AUTH_ALIAS environment variable. | |
| short_description | Yes | The article title/short description. | |
| knowledge_base_sys_id | Yes | The sys_id of the knowledge base to create the article in. | |
| text | No | The article body content in HTML format. | |
| wiki | No | The article body content in wiki markup format (alternative to HTML). | |
| category_sys_id | No | The sys_id of the category to assign the article to. | |
| article_type | No | The article type (e.g., 'text', 'wiki'). Defaults to platform default. | |
| workflow_state | No | The initial workflow state: 'draft' (default), 'published', or 'retired'. | draft |
| additional_fields | No | Optional additional fields to set on the article record as key-value pairs. |