# Building an Event-Driven Integration

{% hint style="info" %}
This tutorial builds upon the work done in [**Build a Single-Step Integration**](/tutorials/building-a-single-step-integration.md) and [**Build a Multi-System Integration**](/tutorials/building-a-multi-system-integration.md)**.**

If you haven't already, we recommend you complete those tutorials first, then return here.
{% endhint %}

In the previous two tutorials ([1](/tutorials/building-a-single-step-integration.md), [2](/tutorials/building-a-multi-system-integration.md)) we ran our integration manually from within Integration Gateway.

In real-world use cases, we often see a different trigger model: Activity in one system causes a chain of events that results in some action in a different system. For example, a new customer created in a CRM will result in that customer being created in the banking core.

We call these **Event-Driven Integrations**, as the integration is run in response to events that call into Integration Gateway, rather than being manually run from within Integration Gateway.

In this tutorial, we will take the logic we built in the previous two tutorials and transform it into a **event-driven** architecture, triggering the integration from a third-party system.

For this tutorial, we will use a mock CRM built using Integration Gateway's [Frontends feature](/how-to-guides/how-to-build-and-deploy-a-custom-frontend.md).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://glyue.docs.sandboxbanking.com/tutorials/building-an-event-driven-integration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
