Skip to main content

ServiceNow

Integrate NudgeBee with ServiceNow for ticket management. Create ServiceNow incidents directly from NudgeBee events, and optionally sync your ServiceNow Knowledge Base articles for AI-assisted troubleshooting.


Prerequisites​

Before configuring the integration, ensure you have:

  • A ServiceNow instance (e.g., https://your-instance.service-now.com)
  • A ServiceNow username and password with permissions to create incidents
  • Access to the incident table in your ServiceNow instance

Step 1: Add the ServiceNow Account in NudgeBee​

  1. Navigate to Admin → Integrations → Ticketing tab.
  2. Click the ServiceNow card.

ServiceNow in Ticketing tab

  1. Fill in the configuration:

Add ServiceNow Account

  • Name — a unique name to identify this ServiceNow account configuration (e.g., Production ServiceNow).
  • Instance URL — your ServiceNow instance URL (e.g., https://your-instance.service-now.com).
  • Username — a ServiceNow user account with permissions to create and update incidents.
  • Password — the password for the ServiceNow user account. This value is stored encrypted in NudgeBee.
  • Sync Knowledge Base — enable this checkbox to sync your ServiceNow Knowledge Base articles into NudgeBee for AI-assisted troubleshooting.
  1. Click Save.

Test Connection queries the incident table to confirm the credentials work. If authentication fails, verify your instance URL, username, and password are correct.


Step 2: Create Incidents from NudgeBee​

Incidents can be created from NudgeBee in two ways:

  • Automatically — from events, alerts, or autopilot runbook actions.
  • Manually — from the NudgeBee event detail view by clicking the ticket icon and selecting ServiceNow.

Each incident includes:

  • A short description derived from the event title.
  • A detailed description with full event context.
  • Urgency set based on the event priority.

How It Works​

Capabilities​

Once configured, NudgeBee can perform the following operations with ServiceNow:

OperationDescription
Create IncidentCreate incidents with title, description, and urgency
Add Work NotesAdd internal work notes to existing incidents

Supported Incident Fields​

FieldDescription
Short DescriptionIncident title
DescriptionDetailed incident description with event context
UrgencyMapped from NudgeBee priority

Priority Mapping​

NudgeBee PriorityServiceNow Urgency
High1 - High
Medium2 - Medium
Low3 - Low

Knowledge Base Sync​

When Sync Knowledge Base is enabled, NudgeBee creates an organization-wide knowledge base from your ServiceNow Knowledge Base articles and re-syncs it automatically once a day (08:00 UTC by default); use Retrigger on the knowledge base to sync now. It appears in b-Cortex → Knowledge → Knowledge Base under Integration. These articles are then used by the AI engine to provide context-aware troubleshooting recommendations based on your organization's documented procedures and solutions.


Verify the Integration​

  1. Save the configuration. If credentials are valid, the integration is created without errors.
  2. Navigate to any event in NudgeBee.
  3. Click the ticket creation option and select ServiceNow.
  4. Verify the incident is created in your ServiceNow instance with the correct fields.

Troubleshooting ServiceNow Integration​

1. Authentication Fails on Save / Connection Test​

  • Symptom: 401 Unauthorized or User not authenticated when clicking Save.
  • Root Causes:
    • ServiceNow instance requires OAuth 2.0 / Web Service Access Only flags.
    • Multi-Factor Authentication (MFA) is enforced on the service user account (ServiceNow REST APIs require either basic auth with an exclusion or an OAuth client).
  • Remediation:
    1. Test authentication directly using curl:
      curl -u username:password \
      -H "Accept: application/json" \
      https://your-instance.service-now.com/api/now/table/incident?sysparm_limit=1
    2. Review the instance's REST authentication policy with its administrator. Web service access only restricts interactive UI login; it is not a general-purpose bypass for authentication policies. See ServiceNow REST authentication.

2. Incident Creation Fails (403 Forbidden / Missing Table ACLs)​

  • Symptom: NudgeBee fails to create tickets with ACL exception: User not authorized to insert into incident table.
  • Root Cause: The service user lacks the necessary ServiceNow roles.
  • Remediation: Assign the following standard roles to the service user in ServiceNow:
    • itil or incident_manager — Grants create/read/update permissions on the incident and sys_user tables.
    • knowledge_admin or knowledge — Required if Sync Knowledge Base is enabled.

3. Missing Mandatory Fields on Incident Table​

  • Symptom: Incident creation fails with Mandatory field 'caller_id' or 'category' is missing.
  • Remediation:
    1. In ServiceNow System Definition $\rightarrow$ Tables $\rightarrow$ incident, check which columns have Mandatory = true.
    2. NudgeBee's ServiceNow connection has no default values for these fields. Make the columns optional, give them a default in ServiceNow (for example with a business rule or dictionary default), or supply them in the ticket task of the automation that creates the incident.

4. Knowledge Base Articles Not Syncing​

  • Symptom: KB articles are not indexed in NuBi RCA investigations.
  • Remediation:
    1. Ensure Sync Knowledge Base is toggled On in NudgeBee.
    2. Verify that the service user has read access to the kb_knowledge table and that the target KB Base has Workflow state = published.