# Connect folders and delivery systems

URL: https://docs.glossi.io/repeat-at-scale/automations/connectors

Use Google Drive, OneDrive or Adobe Experience Manager as the folder an automation watches, the place it delivers to, or both.

A connector lets an automation start from a folder your team already uses and send finished images back to one. Google Drive, Microsoft OneDrive and Adobe Experience Manager (AEM) work as a trigger and as an export step.

> **Enterprise.** Automations are available on Enterprise.

## Watch a folder

1. In the automation, choose the **Google Drive**, **OneDrive** or **AEM** trigger.
2. Connect the account:
   * **Google Drive** and **OneDrive**: sign in and allow access.
   * **AEM**: choose **Cloud Service** and enter the **Base URL**, **Client ID**, **Client Secret** and **Organization ID** from Adobe Developer Console (**Technical Account ID** is optional), or choose **On-Premise** and enter a **Username** and **Password**. Select **Test Connection**.
3. Select the folder to watch.
4. Run one file with **Run once** before turning the automation on.

Keep the watched folder for this automation only, keep other file types out of it, and name files so they identify the product. Files can be up to 1 GB.

## Route by subfolder

Add a **Template Match** step to render each subfolder with a different template. A file in `studio-white/` renders with the template tagged `studio-white`. Files at the root of the watched folder are skipped, and so is a subfolder with no matching template tag. See [Template Match](https://docs.glossi.io/repeat-at-scale/automations/steps.md#template-match).

## Export results

1. Add **Export to Google Drive**, **Export to OneDrive** or **Export to AEM** as the last step.
2. If the trigger uses the same provider, select **Use** with the connected account, or **Sign in with a different account**. AEM exports take the same credentials as the AEM trigger.
3. Choose the destination folder.
4. Under **Export files**, pick **Render image**, **Cutout image** (the product on a transparent PNG), or both.

Each model's files land in their own folder in the destination: `<model>/<file>`, or `<model>/<style>/<file>` when the AI Edit step groups by style.

## Keep the connection working

Access to Google Drive and OneDrive can expire or be revoked. When a connection needs attention, sign in again on the trigger or export step. Until you do, new files are not picked up and exports don't complete.

After the first run, check that the right file came in, the job completed, and the files arrived with the names and folders you expect.

## Related

* [Choose an automation trigger](https://docs.glossi.io/repeat-at-scale/automations/triggers.md)
* [Add automation steps](https://docs.glossi.io/repeat-at-scale/automations/steps.md)
* [Inspect jobs and recover failures](https://docs.glossi.io/repeat-at-scale/automations/runs-and-recovery.md)