> For the complete documentation index, see [llms.txt](https://build.intract.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://build.intract.io/protocol-overview/protocol-components/data-ingestion-engine-die-ingestion-layer.md).

# Data Ingestion Engine (DIE) / Ingestion Layer

### Overview

The Ingestion Layer is the first point of interaction for users looking to add their data to our system. Whether it’s tweets from Twitter, Discord messages, emails, bank statements, or any other type of data, this layer is responsible for securely fetching, validating, and formatting the data. The system supports multiple data sources and methods of ingestion to ensure flexibility and comprehensiveness.

Key functions of the Ingestion Layer include:

* **Data Collection:** Aggregating data from various external services and user uploads.
* **Data Structuring:** Organizing data in a consistent, accessible format.
* **Data Verification:** Validating the authenticity and integrity of the data.
* **Up-to-date Synchronization:** Ensuring that data remains current with real-time updates or periodic checks.

### Components

#### Ingestion Modules

This is the core functionality of the ingestion layer. These are the pieces of codes to ingest and verify the authenticity of any given data - e.g. we need some code to ingest the twitter tweets. Now this piece of ingestion layer needs to know the twitter api response structure etc. Other kind of ingestion modules might be based on new technologies like zkTLS etc.

Currently we support the following Ingestion Methods:

1. API Based Ingestion
2. zkTLS Based Ingestion
3. OAuth Based Ingestion
4. Raw Data Upload

More methods to be added as required

#### Scheduler

The role of ingestion scheduler will be to:

1. Update refresh tokens if necessary (in case of OAuth)
2. Schedule fetching jobs for when for recurring data sourcing.

#### Bridges

The role of bridges is to transform data from one format to other. For example: if the given response is in csv and the application required is in json, so we need to run a bridge on the data to convert it in required format.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://build.intract.io/protocol-overview/protocol-components/data-ingestion-engine-die-ingestion-layer.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
