# Create Input, Mediation and Connection contracts

Let's go back to our second [example scenario](/data-mover-1.21/contracts/business-scenarios.md#scenario-2-input-mediation-and-connection-contracts) with the organization that needs to receive a zip file containing all the invoices issued by its branches throughout the country. Data Mover accesses each branch repository every hour, retrieves the invoices issued in the last hour, creates the zip file, and stores them in a specific folder. Once the files have reached the folder, the email confirmation is sent to the user. Then, the head office connects to Data Mover to collect the zip files.

<figure><img src="/files/o0KdoZjqDSSUOMUfPsf4" alt="" width="563"><figcaption></figcaption></figure>

We need 3 contracts:

* [Input contract](/data-mover-1.21/contracts/business-scenarios/create-input-mediation-and-connection-contracts/create-the-input-contract.md): every hour, Data Mover connects to each branch repository (data producers) to get the files.
* [Mediation contract](/data-mover-1.21/contracts/business-scenarios/create-input-mediation-and-connection-contracts/create-the-mediation-contract.md): Data Mover zips the files.
* [Connection contract](/data-mover-1.21/contracts/business-scenarios/create-input-mediation-and-connection-contracts/create-the-connection-contract.md): Data Mover stores the zip files and sends a confirmation via email to the head office (data consumer), which will then collect the files.&#x20;


---

# 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.primeur.com/data-mover-1.21/contracts/business-scenarios/create-input-mediation-and-connection-contracts.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.
