# 4me Integration

[4me](https://www.4me.com/) is a service management platform designed to streamline collaboration and workflow management across various departments and organizations. It focuses on providing seamless service integration and management capabilities, allowing businesses to handle IT, HR, and other service-related processes efficiently. Following the instructions below, you can connect 4me with ilert and automatically notify your team when a request or a problem is created within 4me.&#x20;

## In ilert: Create a 4me alert source&#x20;

1. Go to **Alert sources** -> **Alert sources** and click **Create new alert source**.

   <figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2FjX0cS4q7woTXKajZmc1W%2FScreenshot%202023-08-28%20at%2010.21.10.png?alt=media&#x26;token=8ef3666b-84eb-4b51-abee-f07303313941" alt=""><figcaption></figcaption></figure>
2. Search for **4me** in the search field, click the 4me tile, and then **Next**.&#x20;

   <figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2FlXzQlJpaTFSR49AZk0xA%2FScreenshot%202023-08-28%20at%2010.24.23.png?alt=media&#x26;token=cffeacb4-57b9-47d4-827d-b0f6b1afd914" alt=""><figcaption></figcaption></figure>
3. Give your alert source a name, optionally assign teams, and click **Next**.
4. Select an **escalation policy** by creating a new one or assigning an existing one.

   <figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2FNnuZqONaIhbOf6fn4OkZ%2FScreenshot%202023-08-28%20at%2011.37.47.png?alt=media&#x26;token=8a74f7b5-5bd2-4eea-97fa-1c1dbb041333" alt=""><figcaption></figcaption></figure>
5. Select your [Alert grouping](https://docs.ilert.com/alerting/configure-alerting/alert-sources#alert-grouping) preference and click **Continue setup**. You may click **Do not group alerts** for now and change it later.&#x20;

   <figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2FueugN4JgHn1c90ggFA6u%2FScreenshot%202023-08-28%20at%2011.38.24.png?alt=media&#x26;token=b8009daf-3ca8-4264-a6fa-e42ef7333205" alt=""><figcaption></figcaption></figure>
6. The next page shows additional settings, such as customer alert templates or notification priority. Click **Finish setup** for now.
7. On the final page, an API key and/or webhook URL will be generated. You will need it later.

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2Fi3TIOBvNYBQfDtNpmm0A%2FScreenshot%202023-08-28%20at%2011.47.34.png?alt=media&#x26;token=6cae965a-e448-4443-8c20-37cf501c43b2" alt=""><figcaption></figcaption></figure>

## In 4me: Create a an OAuth token

1. Click on the profile avatar -> **My Profile**.

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2F7Iqq4z3xtLq5zA6agJ93%2F2-1.png?alt=media&#x26;token=43291aab-8e72-4c15-86d1-1506f9125513" alt="" width="563"><figcaption></figcaption></figure>

2. Now click on **Personal Access Tokens** -> **Generate new token**.

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2FrBx8DXU0qgHfuPU6JElJ%2F2-2.png?alt=media&#x26;token=2983abec-dc46-412f-88e8-12f5c8fc57a8" alt="" width="563"><figcaption></figcaption></figure>

3. Enter a name and click on **Add record types...**.

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2FKr49ZTffxRbRFSaiL6lf%2F2-3.png?alt=media&#x26;token=86dc8e9a-8d6f-4cab-989a-68882b0e0403" alt="" width="563"><figcaption></figcaption></figure>

4. Add Problem and Request.
5. Activate all checkboxes and click on **Generate Token.**

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2FLBrRQXmSG0cHPDrIqeVa%2F2-4.png?alt=media&#x26;token=c135ff0e-fe83-41cf-9752-0bae24bdb300" alt="" width="563"><figcaption></figcaption></figure>

6. Copy the token.

## In ilert: Finish 4me alert source setup

1. Select your previously created 4me alert source and click on 4me settings.
2. Enter the 4me account name and the previously created OAuth token into the associated fields.

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2FbErDUdZYKYkqvGCaGHGl%2F2-6.png?alt=media&#x26;token=c05ff30f-5c00-40c2-8222-4587931b0a4f" alt="" width="563"><figcaption></figcaption></figure>

3. Select the 4me region. The region can be found in the URL of your 4me instance.

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2FrQgbnktcNxlvK4ZAut1y%2F2-7.png?alt=media&#x26;token=5fe61cc8-dd68-4b6c-8efa-09132bff0df9" alt="" width="534"><figcaption></figcaption></figure>

## In 4me: Create a webhook

1. Click on the hamburger menu on the top left corner -> settings icon.

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2FHXjTRAUrytvYUZv1BMqf%2F2-8.png?alt=media&#x26;token=cca276d1-8c76-4ba0-b0a2-966edaaa0f37" alt="" width="563"><figcaption></figcaption></figure>

2. In the searchbar enter: "webhook" and click on **Webhooks** in the search result.

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2FemPWz1xFz4m5dd2J2kEE%2F2-9.png?alt=media&#x26;token=d0dfde30-8031-403a-a216-161a35c4ae28" alt="" width="563"><figcaption></figcaption></figure>

3. Click on the "+" to create a new webhook.

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2F48jW9CHBNX1MhZ3mWyVl%2F2-10.png?alt=media&#x26;token=b3fa795a-89ca-425b-aa32-1d88972c1183" alt="" width="563"><figcaption></figcaption></figure>

4. Add following webhooks each event: `problem.create`, `problem.update`, `request.create`, `request.update`, `automation_rule`.
5. Enter a name, the Event type and your 4me alert source URL.

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2FY3xehHPzfcFc28q1ZEAz%2F2-11.png?alt=media&#x26;token=5f1589c5-ebb6-4d56-85db-85ff77c7059a" alt="" width="563"><figcaption></figcaption></figure>

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2FBvuPJXdespaye92OT9Fk%2F2-14.png?alt=media&#x26;token=ada241f9-443b-4fec-afa3-6f12ea1da99a" alt="" width="563"><figcaption></figcaption></figure>

6. The webhook will then be verified.

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2FB9cR2CpJKXnKnVIOgvx2%2F2-12.png?alt=media&#x26;token=62cd60bd-dfed-4aa5-ab5e-d637cf757fb1" alt="" width="563"><figcaption></figcaption></figure>

7. After couple seconds the webhook should update with **Last deilvery 200**.

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2F0qUwToXLLGlUxhewCUO7%2F2-13.png?alt=media&#x26;token=1cdd348b-47bf-4382-89fa-1283e9d312c1" alt="" width="563"><figcaption></figcaption></figure>

## FAQ <a href="#faq" id="faq"></a>

**Will alerts in ilert be resolved automatically?**

Yes, make sure that webhooks for following events have been created: `problem.update`, `request.update`. As soon as the status of a problem or request is solved in 4me, the corresponding alert in ilert will be resolved.

**Will alerts in ilert be accepted automatically?**

Yes, make sure that webhooks for following events have been created: `problem.update`, `request.update`. As soon as the status of a problem or request is accepted in 4me, the corresponding alert in ilert will be accepted.
