Skip to main content

Medusa Automations

What it is

Medusa Automations is the workflow engine that automatically creates or updates publications and, when needed, generates Smart Zoom articles for those publications.

How it works

Once enabled for a tenant, Medusa Automations watches a tenant-specific AWS S3 bucket—either on a fixed schedule or on-demand—for new PDF assets (and optionally XML files for Smart Zoom). When matching files are found it:

  1. Validates file names against the required naming conventions.
  2. Builds the final PDF using Ghostscript when individual page files are uploaded.
  3. Sends the processed PDF to Farfalla for ingestion.
  4. Optionally processes XML files to create Smart Zoom articles that belong to the publication.
  5. Sends completion notifications by email (to the tenant) and Slack (to #feed-medusa).

embed

Only PDF-based publications are currently supported. EPUBs and Audiobooks are not yet compatible.

Enabling the feature for a tenant

  1. Sign in to Farfalla Nova.
  2. Select the target tenant and open its details view.
  3. Scroll to Custom Features and click Create Tenant Feature.
  4. Choose Medusa Automations and confirm.

After activation the Publications dashboard will show two extra buttons:

  • Dispatch Automation – create a new publication.
  • Redispatch Automation – update an existing publication.

embed embed

Workflow stages

There are three high-level stages:

  1. Fire an automation – triggered manually (dashboard or Nova) or automatically on a schedule.
  2. Process the automation – fetch files, transform, publish, generate Smart Zoom.
  3. Finish – send notifications and persist run history.

Firing an automation

You can dispatch (create) or redispatch (update) a publication via:

  • Publications dashboard in Farfalla.
  • Automation view in Medusa Nova.
  • Scheduled cron execution configured in the automation.

Processing logic (dispatch)

  1. Check the S3 path for files that match the expected file name pattern: prefix-yymmdd-xxx.pdf
    Example complete file list for individual pages:

    • LT-200309-001.pdf
    • LT-200309-002.pdf
    • LT-200309-003.pdf

    Example for a single-file publication: LT-200309-000.pdf.

  2. Generate the combined PDF (when individual pages are provided).

  3. Upload the final PDF to Farfalla.

  4. If XML files are present, create Smart Zoom articles (see Smart Zoom Articles).

Processing logic (redispatch)

Same as dispatch, except Smart Zoom articles are not regenerated—only publication pages are updated.

Completion

  • Email report sent to the tenant's configured addresses.
  • Slack notification sent to #feed-medusa.

Creating a new automation (super-admins only)

  1. Open Medusa Nova.

  2. Log in (credentials stored in 1Password).

  3. Navigate to Automations and click Create Automation.

  4. Fill in the required fields:

    FieldRequiredDescription
    Tenant IDThe tenant's numeric ID.
    NameFriendly name for the automation.
    Run automaticallyEnable for scheduled execution.
    TimezoneTenant's timezone for cron evaluation.
    Users emails for reportsComma-separated list.
    S3 credentials & bucket infoAccess key, secret, region, bucket name.
    File matching regexRegex that matches the tenant's file naming scheme.
    ...(See Medusa Nova form for full list.)
  5. Save the automation, then scroll down and create one or more Configurations to define schedules and file patterns.

For detailed parameter explanations see the Automations UI tooltips or the Medusa code reference.


X

Graph View