# ServiceNow

This section provides a comprehensive walkthrough for integrating ServiceNow with Mindflow to build powerful, automated workflows. By the end of these guides, you will have a functional pipeline that connects ServiceNow's robust ITSM capabilities with Mindflow’s orchestration engine.

## Introduction

ServiceNow is the backbone of enterprise operations, but its true power is unlocked when it talks to other tools in your stack. This tutorial focuses on setting up the essential "connectors"—**API Keys** for secure communication, **Business Rules** for triggering logic on record changes, and **Virtual Agent** configurations to bring Mindflow’s automation directly into your chat interfaces.

Whether you are looking to automate incident creation, sync data across platforms, or provide self-service bot actions, these steps establish the foundational bridge between ServiceNow and Mindflow.

## Guides

These guides are designed to be followed in sequence to ensure a secure and functional integration.

[Create an API Key](./create-an-api-key/)

To allow Mindflow to securely "talk" to your ServiceNow instance, you must define an authentication method.

- **Purpose:** Establish a secure handshake between platforms using OAuth 2.0 or Basic Auth.
- **Key Step:** You will navigate to **Application Registry** within ServiceNow to create a new Client ID and Client Secret, which Mindflow will use to authenticate requests.

[Create Business Rules](./create-business-rules/)

Automation often needs to start the moment something happens inside ServiceNow (e.g., a new ticket is opened).

- **Purpose:** Use server-side scripts to trigger external Webhooks or actions when a record is inserted or updated.
- **Key Step:** You will configure a "Before" or "After" Business Rule that sends a payload to Mindflow whenever specific conditions (like "Priority is 1") are met.

[Virtual Agent configuration with Mindflow](./virtual-agent-configuration-with-mindflow/)

Bring the power of Mindflow to your users via ServiceNow's conversational interface.

- **Purpose:** Allow users to trigger complex workflows (like password resets or server restarts) directly through a chat bot.
- **Key Step:** Within the **Virtual Agent Designer**, you will create a topic that calls a Mindflow workflow as a REST action, providing real-time self-service capabilities.
