Connectors

/

ServiceNow

/

Resolve a ServiceNow incident
Write

Resolve ServiceNow incidents with the right code and notes

For service desk agents who want incidents resolved with a valid close code and notes shared with the caller, by asking their AI assistant.

Try PopdockAI free
Get a live demo
Resolve a ServiceNow incident
Resolve INC0012345 in ServiceNow as solved permanently. Notes: reset the VPN profile and confirmed with the user.
INC0012345 is in progress with no linked outage. - State: In progress to Resolved - Close code: Solved (Permanently) - Notes: Reset the VPN profile and confirmed with the user, shared with the caller Shall I resolve it?
ServiceNow
Sample figures. Your results come from your own account.
servicenow-get-incident
servicenow-get-outages-task-link
servicenow-update-incident

On this page

The problem

The problem

The prompt

Who it's for

How it works

Tools used

Connector

ServiceNow

ServiceNow
Run it on your own ServiceNow data.

Connect ServiceNow, pick your AI tool and paste the prompt.

Try PopdockAI free

The problem

Incidents resolved with an outage still open

Resolving an incident needs a close code and notes, and the caller should hear what was done. Under pressure, incidents get resolved with a linked outage still open, or a failed update is retried with whatever values fit.

Without PopdockAI

  • Pick a close code from memory
  • Miss the outage linked to the incident
  • Retry a failed update with any code that works
  • Leave the caller wondering what was fixed

With PopdockAI

  • Already resolved or closed incidents stop the job
  • A linked outage is flagged so it gets closed too
  • Accepted close codes are listed if you have not chosen one
  • One update after you confirm, shared with the caller and re-read

The prompt

Use this prompt

Copy it into any AI tool connected to PopdockAI. Swap the values in braces for your own.

Prompt
**Objective:** Resolve incident `{incident-number}` with close code `{close-code}` and the resolution notes `{resolution-notes}`.

**Step 1: Read the incident**

Call `servicenow-get-incident` with number `{incident-number}`. Keep its sys-id, state, priority, assigned-to and short-description.

**Step 2: Check it can be resolved**

* If state is already Resolved or Closed, report that and stop.
* Call `servicenow-get-outages-task-link` with task `{incident-number}`. If an outage is linked, warn that the outage record should be closed too.
* If `{close-code}` is blank, list the close-code values the tool accepts and ask the user to pick one. ServiceNow will not resolve an incident without a close code and close notes.

**Step 3: Confirm**

Show the user: number, short-description, current state, the new state Resolved, the close code and the notes. Ask for an explicit yes.

**Step 4: Write once**

After a yes, call `servicenow-update-incident` once with sys-id from Step 1, state Resolved, close-code `{close-code}`, close-notes `{resolution-notes}`, and comments set to the same notes so the caller is told.

**Step 5: Verify**

Call `servicenow-get-incident` with number `{incident-number}` and confirm state is Resolved. Report the before and after state.

**Rules & Guidelines:**

* The only write tool this prompt may call is `servicenow-update-incident`, once, after confirmation. Do not call `servicenow-update-task-sla`, `servicenow-update-problem` or any add- tool.
* Resolve, do not Close. Closing is left to the auto-close rule or the caller.
* Never pass fields the user did not supply; the update only changes what it is given.

**Validation:**

* If `{incident-number}` is not found, stop.
* If the update returns an error, report it verbatim and do not retry with different values.

Who it's for

One answer, three teams that use it

Service desk analysts

Resolve tickets without the form

Close out an incident with the right code and notes in one message.

Resolve INC0020934 as solved by workaround. Notes: cleared the print queue and restarted the spooler.

Support engineers

Do not forget the linked outage

Get warned when an outage is still linked so it is closed alongside the incident.

Resolve INC0021015 as solved permanently, the storage controller was replaced.

Service desk leads

Keep close codes consistent

Analysts pick from the accepted close codes instead of guessing.

What close codes can I use for INC0021044? Then resolve it with notes: password reset and MFA re-enrolled.

How it works

What PopdockAI does when you ask

You give the incident, a close code and notes, and your AI assistant checks it is ready to resolve. It updates the incident once, after you confirm, and never retries an error.

01

Ask

You give the incident number, a close code and resolution notes.

Your AI tool

02

Check

It stops if already resolved and warns about a linked outage.

servicenow-get-incident
servicenow-get-outages-task-link

03

Confirm

You see the change and say yes.

No items found.

04

Resolve

It updates the incident once and re-reads it to confirm.

Your AI tool

What PopdockAI provides

The tools behind the answer

Ready made tools for ServiceNow and one secure connection to your AI tool. No code, no exports.

get-data

servicenow-get-incident

Returns incident records (number, state, priority, caller, assignment and dates) from ServiceNow. Filter by number, state, priority, caller, assignment group, assignee, short description text and opened date range.
get-data

servicenow-get-outages-task-link

Returns links between tasks and the outages they caused or relate to from ServiceNow. Filter by task or outage text.
run-action

servicenow-update-incident

Updates an existing incident record in ServiceNow (the incident table), identified by its sys_id. Only the fields you pass are changed.
Read only.Nothing in ServiceNow Changes

This report is built from Get data tools only. PopdockAI applies the row, field and parameter rules your admin sets, and every query is written to the audit trail.

How Popdock AI secures your data

The outcome

Clean resolutions callers can understand

Try PopdockAI free
Get a live demo

Related use cases

More ways to put this data to work

All Ramp use cases

One prompt template with infinite possibilities.

‍

Your AI assistant adapts its approach, tone, and capabilities to match each unique context while you maintain a single, manageable workflow.

Join forward-thinking companies that are transforming their operations with intelligent, secure AI automation.

Try PopdockAI Free
See Documentation