# How ContextDecision Works

## **Overview**

ContextDecision helps you increase your app's revenue by showing the right prompts and messages at the right time. By analyzing on-device signals through Edge AI, it identifies user contexts that are best for engagement, increasing revenue and user satisfaction.

## How It Works

* ContextDecision determines the best moments to present in-app offers using real-time, on-device machine learning.
* Your app collects device signals before showing an offer and logs whether the user converts or dismisses it.
* Our team trains a machine learning model tailored to your app, using the data we collected from it. This ensures that the model performs the best for your app and your user base.
* The model suppresses offers when conversion probability is low and surfaces them at optimal moments, increasing the conversion rate.

## **Integration Overview**

1. [Integrate the SDK](https://docs.contextsdk.com/basics/getting-started) with minimal code additions — no new app permissions required.
2. [Start logging user interactions](https://docs.contextsdk.com/context-decision/logging-conversions) (successful conversions and dismissals).
3. Identify new entry points to balance the number of offers shown. To learn more, see [adding-entry-points](https://docs.contextsdk.com/context-decision/adding-entry-points "mention").
4. Allow time for the [**Calibration Phase**](https://docs.contextsdk.com/other/glossary#calibration-phase) (approximately 1,000 positive interactions collected).
5. After calibration, a custom model is trained and deployed automatically, optimizing offer timing in real-time.

## **Privacy Considerations**

ContextDecision prioritizes user privacy by processing data on-device, ensuring that no personally identifiable information (PII) is collected or stored. This approach maintains compliance with privacy regulations and fosters user trust.

By leveraging ContextDecision, your application can deliver in-app offers and messages at moments that align with user readiness, thereby enhancing engagement and driving revenue growth.


---

# 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://docs.contextsdk.com/basics/how-context-decision-works.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.
