# Lambda

{% stepper %}
{% step %}
Member makes a transaction using a mobile app
{% endstep %}

{% step %}
Transaction details are sent to API Gateway so that it calls two serverless functions:

* First Lambda function registers a transaction in the Order Management system
* Second Lambda function registers a transaction in Open Loyalty
  {% endstep %}

{% step %}
As a result, Open Loyalty sends a webhook to the third Lambda function that a Member earned points&#x20;
{% endstep %}

{% step %}
The third Lambda function calls Marketing Auto’s API to send Member a push notification about earned points / received reward
{% endstep %}
{% endstepper %}

<div align="center"><figure><img src="https://lh7-qw.googleusercontent.com/slidesz/AGV_vUfNciBxbkeBBWqMuUZrOZLa0l6izohLJ4aQXkN87pRkFwwKppadBgcS-Da-FMBBXshDDrwA2xB2ZE9KWRFXg-_ZM8B6DXCo0VAc0GWXqkVA2sdSbq5yWVQ5E951qXJFgnGyxuxs0Syd-06-cIHrq1FD4IWiboBR=s2048?key=q4vl9UUexBRVP8pBEsxHUQ" alt=""><figcaption></figcaption></figure></div>


---

# 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://help.openloyalty.io/technical-guide/integration/integration-examples/lambda.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.
