# Auto-Reply Alternate Contact Extractor (`kingly_contest_7cb/autoreply-contact-extractor`) Actor

Turn out-of-office and left-the-company auto-replies into leads. Extracts each alternate contact (name, email, role, phone), the reason (OOO or LEFT), the return date and a relevance tag. Rules only, no AI fees, EN/ES/FR/DE.

- **URL**: https://apify.com/kingly_contest_7cb/autoreply-contact-extractor.md
- **Developed by:** [Carina Hatton](https://apify.com/kingly_contest_7cb) (community)
- **Categories:** Lead generation, Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 alternate contacts

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Auto-Reply Alternate Contact Extractor

Every cold email campaign produces a pile of auto-replies, and most teams archive them unread. That pile is full of names. "I'm out until the 23rd, contact Maria Lopez, Head of Growth." "Priya has left the company, please email Daniel Okafor." Someone just handed you the right person, with an email address and a job title, and it's sitting in a folder called Auto-Replies.

This Actor reads those replies and turns them into clean rows: who to contact instead, their email, role and phone, why the original person is unavailable, when they're back, and which part of the business the new contact covers.

It runs on rules and pattern matching, so there are no AI fees and your text never leaves the Actor. The sample input finishes in about two seconds.

### What you get from each auto-reply

| Field | What it is |
|---|---|
| `name`, `email`, `role`, `phone` | The alternate contact, as stated in the reply |
| `relevance` | `marketing`, `social`, `growth`, `ops`, `founder`, `finance`, `logistics` or `other`, from the role, the mailbox name (billing@, press@) and the words around the contact |
| `reason` | `OOO` (out of office), `LEFT` (left the company or mailbox closed) or `OTHER` (helpdesk confirmations and similar) |
| `returnDate` | ISO date (YYYY-MM-DD) when the reply gives one, plus `returnDateRaw` as written and `returnDateType` (`back-on` or `away-until`) |
| `contactType` | `person`, `team` (a shared mailbox like logistics@) or `sender-new-address` (same person, new email) |
| `confidence` | 0 to 1. A named person with an email next to a phrase like "please contact" scores 0.9 or higher |
| `evidence` | The sentence the contact came from, so spot-checks take seconds |
| `sourceId`, `fromEmail`, `subject` | Ties each row back to your input |

Replies with no alternate contact still get one row (`contactFound: false`) with the reason and return date, so you can see every input was processed and know exactly when to follow up with the original person.

### Who this is for

- **Outbound and SDR teams** who want the "contact my colleague" leads out of their reply folder and into the CRM.
- **Agencies and ecommerce sellers** pitching brands, where the out-of-office message tells you who runs marketing, social or wholesale.
- **Ops and finance teams** cleaning a contact list: `LEFT` rows tell you which contacts to retire and who replaced them.
- **Anyone automating follow-ups**: schedule the next touch for `returnDate` instead of guessing.

### How to use it

1. Export your auto-replies (from Gmail, Outlook, Instantly, Smartlead, Lemlist or wherever your campaign runs) as text.
2. Paste them into **Auto-reply texts** as strings, or as objects with `text` plus optional `id`, `fromEmail`, `subject` and `receivedAt`. HTML bodies are fine.
3. Click **Start**, then download the results as CSV, Excel or JSON, or pull them from the API.

Already have the replies in an Apify dataset? Pick it under **Source dataset** and name the text field. The Actor reads it directly.

#### Input example

```json
{
  "autoReplies": [
    "I'm out of the office until Dec 4. For anything urgent, contact Ana Ruiz (Head of Marketing) at ana.ruiz@acme.example.",
    {
      "id": "lead-4471",
      "fromEmail": "priya.shah@northpeak.example",
      "subject": "Re: Wholesale pricing",
      "text": "Priya Shah is no longer with Northpeak Outdoor. Please direct wholesale questions to Daniel Okafor (Director of Business Development) at daniel.okafor@northpeak.example."
    }
  ]
}
```

Give `fromEmail` when you have it. The sender's own address and signature are always skipped, and `fromEmail` makes that bulletproof.

#### Output example

From a test run on the sample input:

```json
{
  "sourceId": "ooo-maria",
  "fromEmail": "jordan.lee@brightbloom.example",
  "contactFound": true,
  "name": "Maria Lopez",
  "email": "maria.lopez@brightbloom.example",
  "role": "Head of Growth",
  "phone": "+1 (555) 010-2233",
  "relevance": "growth",
  "contactType": "person",
  "confidence": 0.98,
  "reason": "OOO",
  "returnDate": "2026-11-23",
  "returnDateRaw": "Monday, November 23, 2026",
  "returnDateType": "back-on",
  "language": "en",
  "senderName": "Jordan Lee",
  "evidence": "For anything marketing related, please contact my colleague Maria Lopez, Head of Growth, at maria.lopez@brightbloom.example or +1 (555) 010-2233."
}
```

The dataset has three views: **Overview**, **Contacts with evidence** and **Reply status**. A `RUN_SUMMARY` record counts replies by reason and contacts by relevance tag.

### What it handles

- **Phrasings in four languages.** English, plus the common ones in Spanish ("contacte con mi compañera"), French ("veuillez contacter") and German ("wenden Sie sich bitte an meine Kollegin").
- **Dates in most formats people type.** "Monday, November 23", "back on 12/02", "the 3rd of December", "15 January 2027", "27.11.2026", "2 de diciembre", "jusqu'au 4 décembre", "2026-12-07". If the year is missing, it picks the next one that makes sense (set **Reference date** or per-item `receivedAt` for old replies).
- **Signatures, mailto links and Outlook clutter.** `ana@x.com<mailto:ana@x.com>`, HTML links, `ana [at] acme [dot] com`, and quoted original messages below the reply are all cleaned up first.
- **Phones in the usual shapes:** +1 (555) 010-2233, 555.010.2233, +44 20 7946 0958, 030 1234567, ext. 204.
- **Contact cards** laid out on separate lines after "please contact:".
- **The sender is not a lead.** Their own address, "reach me on my mobile", signature blocks, noreply@ and mailer-daemon addresses are ignored unless the reply names that address as the contact.

### Accuracy

Precision comes first. When the Actor isn't sure a name belongs to an email, it leaves `name` empty rather than guess. On our test set of 53 fictional auto-replies, every email it returned was a correct alternate contact, and it never returned a sender's own address. On a set of replies written after the rules were finished, 6 of 8 came out fully right; the misses were one first name without the surname and one reply with no contact phrase it recognized.

Rules have limits. A reply written like a riddle, or one that mentions a contact without any "contact", "reach", "email", "covering" style phrase, can be missed. Use `minConfidence` to keep only the strong rows, or check the `evidence` column.

### Pricing

Pay per event, no subscription:

| Event | Price |
|---|---|
| Actor start | $0.001 per run |
| Reply analyzed | $0.0003 per non-empty reply ($0.30 per 1,000) |
| Alternate contact | $0.002 per contact row ($2.00 per 1,000) |

The 10 sample replies cost $0.03 in total (1 start, 10 replies, 13 contacts). 1,000 replies that produce 600 contacts cost about $1.50. Rows for replies with no contact only carry the reply fee, and empty inputs are free.

Set **Maximum cost per run** in the run options and the Actor stops before it would go over. It never charges for a reply unless all of that reply's contacts fit in the budget.

### FAQ

**Does it send any email or check if addresses are valid?** No. It only reads the text you give it. Pair it with an email verifier if you need deliverability checks.

**Is my data sent to an AI service?** No. Everything runs inside the Actor with pattern matching.

**Can I run it on a schedule?** Yes. Point **Source dataset** at the dataset your inbox export writes to, then schedule it in Apify or call it from Make, Zapier or n8n.

**Is this legal?** The Actor processes text you already have. You are responsible for how you use the contacts, including consent and anti-spam rules where you operate (GDPR, CAN-SPAM, CASL and similar).

**Something parsed wrong?** Open an issue on the Actor's Issues tab with the reply text (swap in fake names and domains). Fixes come from examples.

# Actor input Schema

## `autoReplies` (type: `array`):

Each item is either a string (the raw auto-reply text, HTML is fine) or an object: {"text": "...", "id": "optional", "fromEmail": "optional, the auto-reply sender", "subject": "optional", "receivedAt": "optional ISO date used to guess the year of the return date"}. Give fromEmail when you have it so the sender's own address is never returned as a contact.

## `sourceDatasetId` (type: `string`):

Read auto-replies from an existing Apify dataset too, for example the output of your inbox export. Each item needs the text in the field named below; id, fromEmail (or from), subject and receivedAt (or date) are picked up when present.

## `textField` (type: `string`):

Field that holds the reply text in the source dataset. If it is missing the Actor tries body, content, message, snippet, plainText and html.

## `referenceDate` (type: `string`):

Used to pick the year when a reply says 'back on Dec 3' without one. Defaults to today. Per-item receivedAt wins over this.

## `includeNoContactRows` (type: `boolean`):

On by default, so every input shows up once in the dataset (contactFound: false) with its reason and return date.

## `minConfidence` (type: `number`):

Drop contacts below this confidence. 0 keeps everything. Typical scores: 0.9+ named person with email, 0.7 to 0.8 team mailbox, 0.4 to 0.6 name or phone only.

## `includeEvidence` (type: `boolean`):

Adds the sentence the contact came from, so you can spot-check results fast.

## Actor input object example

```json
{
  "autoReplies": [
    {
      "id": "ooo-maria",
      "fromEmail": "jordan.lee@brightbloom.example",
      "subject": "Automatic reply: Spring collab idea",
      "text": "Hi there,\n\nThanks for your email. I'm out of the office on annual leave and will return on Monday, November 23, 2026, with limited access to email.\n\nFor anything marketing related, please contact my colleague Maria Lopez, Head of Growth, at maria.lopez@brightbloom.example or +1 (555) 010-2233.\nFor invoices and payments, email billing@brightbloom.example.\n\nBest,\nJordan Lee\nBrand Manager | Brightbloom Skincare\njordan.lee@brightbloom.example | +1 555 010 9999"
    },
    {
      "id": "left-priya",
      "fromEmail": "priya.shah@northpeak.example",
      "subject": "Re: Wholesale pricing",
      "text": "Priya Shah is no longer with Northpeak Outdoor. Her last day was October 30.\n\nPlease direct partnership and wholesale questions to Daniel Okafor (Director of Business Development) at daniel.okafor@northpeak.example. For order status and shipping, contact our logistics team at logistics@northpeak.example.\n\nThis mailbox is no longer monitored."
    },
    {
      "id": "ooo-social",
      "fromEmail": "sam@loomandlark.example",
      "subject": "Out of Office",
      "text": "I'm currently travelling for a trade show and back in the office on 12/02.\n\nIn my absence, our Social Media Manager, Chloe Martin (chloe@loomandlark.example), is covering creator and influencer requests. Anything urgent can go to our founder Ben Hart on 07700 900123.\n\nCheers,\nSam"
    },
    {
      "id": "other-helpdesk",
      "fromEmail": "support@cartwheelgoods.example",
      "subject": "We received your message [Ticket #48213]",
      "text": "Thanks for contacting Cartwheel Goods! This is an automated confirmation that we received your message. Our team replies within 1 to 2 business days.\n\nPlease do not reply to this email. Sent from noreply@cartwheelgoods.example"
    },
    {
      "id": "ooo-plain-noalt",
      "fromEmail": "alex.wu@harborlane.example",
      "subject": "Automatic reply",
      "text": "Hello,\n\nI am on parental leave until 15 January 2027 and will not be checking email. I will respond to your message when I return.\n\nThank you,\nAlex Wu"
    },
    {
      "id": "es-ooo",
      "fromEmail": "lucia.fernandez@solymar.example",
      "subject": "Respuesta automática: Propuesta",
      "text": "Hola,\n\nEstoy fuera de la oficina de vacaciones hasta el 2 de diciembre de 2026, con acceso limitado al correo.\n\nPara temas urgentes, contacte con mi compañera Carmen Ruiz, responsable de marketing, en carmen.ruiz@solymar.example o al +34 912 345 678.\n\nSaludos,\nLucía Fernández"
    },
    {
      "id": "fr-left",
      "fromEmail": "julien.moreau@atelierlumen.example",
      "subject": "Réponse automatique",
      "text": "Bonjour,\n\nJulien Moreau ne fait plus partie de l'équipe Atelier Lumen.\n\nPour toute demande commerciale, veuillez contacter Élodie Bernard, directrice commerciale : elodie.bernard@atelierlumen.example.\nPour la comptabilité : compta@atelierlumen.example.\n\nCordialement"
    },
    {
      "id": "de-ooo",
      "fromEmail": "markus.becker@waldwerk.example",
      "subject": "Abwesenheitsnotiz",
      "text": "Guten Tag,\n\nich bin bis einschließlich 27.11.2026 nicht im Büro und habe keinen Zugriff auf meine E-Mails.\n\nIn dringenden Fällen wenden Sie sich bitte an meine Kollegin Anna Schmidt (Leiterin Logistik) unter anna.schmidt@waldwerk.example oder +49 30 1234567.\n\nMit freundlichen Grüßen\nMarkus Becker"
    },
    {
      "id": "html-left",
      "fromEmail": "kate.oneill@ferncrest.example",
      "subject": "Kate has left Ferncrest",
      "text": "<p>Hi,</p><p>Kate O'Neill has left Ferncrest Home as of November 6. Kate's accounts have been taken over by <a href=\"mailto:tom.becker@ferncrest.example\">Tom Becker</a>, our Ecommerce Director.</p><p>For press and PR, email <a href=\"mailto:press@ferncrest.example\">press@ferncrest.example</a>.</p>"
    },
    {
      "id": "ooo-card",
      "fromEmail": "nina@coastcandle.example",
      "subject": "OOO until Dec 1",
      "text": "Thanks for reaching out! I'm out of office until Tuesday, Dec 1 for a family event.\n\nIf you need something before then, please contact:\nRosa Diaz\nOperations Manager\nrosa.diaz@coastcandle.example\n(555) 010-4477\n\nTalk soon,\nNina Park\nFounder, Coast Candle Co.\nnina@coastcandle.example"
    }
  ],
  "textField": "text",
  "includeNoContactRows": true,
  "minConfidence": 0,
  "includeEvidence": true
}
```

# Actor output Schema

## `dataset` (type: `string`):

Alternate contacts and no-contact rows

## `summary` (type: `string`):

Counts by reason and relevance, replies analyzed, contacts found

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "autoReplies": [
        {
            "id": "ooo-maria",
            "fromEmail": "jordan.lee@brightbloom.example",
            "subject": "Automatic reply: Spring collab idea",
            "text": "Hi there,\n\nThanks for your email. I'm out of the office on annual leave and will return on Monday, November 23, 2026, with limited access to email.\n\nFor anything marketing related, please contact my colleague Maria Lopez, Head of Growth, at maria.lopez@brightbloom.example or +1 (555) 010-2233.\nFor invoices and payments, email billing@brightbloom.example.\n\nBest,\nJordan Lee\nBrand Manager | Brightbloom Skincare\njordan.lee@brightbloom.example | +1 555 010 9999"
        },
        {
            "id": "left-priya",
            "fromEmail": "priya.shah@northpeak.example",
            "subject": "Re: Wholesale pricing",
            "text": "Priya Shah is no longer with Northpeak Outdoor. Her last day was October 30.\n\nPlease direct partnership and wholesale questions to Daniel Okafor (Director of Business Development) at daniel.okafor@northpeak.example. For order status and shipping, contact our logistics team at logistics@northpeak.example.\n\nThis mailbox is no longer monitored."
        },
        {
            "id": "ooo-social",
            "fromEmail": "sam@loomandlark.example",
            "subject": "Out of Office",
            "text": "I'm currently travelling for a trade show and back in the office on 12/02.\n\nIn my absence, our Social Media Manager, Chloe Martin (chloe@loomandlark.example), is covering creator and influencer requests. Anything urgent can go to our founder Ben Hart on 07700 900123.\n\nCheers,\nSam"
        },
        {
            "id": "other-helpdesk",
            "fromEmail": "support@cartwheelgoods.example",
            "subject": "We received your message [Ticket #48213]",
            "text": "Thanks for contacting Cartwheel Goods! This is an automated confirmation that we received your message. Our team replies within 1 to 2 business days.\n\nPlease do not reply to this email. Sent from noreply@cartwheelgoods.example"
        },
        {
            "id": "ooo-plain-noalt",
            "fromEmail": "alex.wu@harborlane.example",
            "subject": "Automatic reply",
            "text": "Hello,\n\nI am on parental leave until 15 January 2027 and will not be checking email. I will respond to your message when I return.\n\nThank you,\nAlex Wu"
        },
        {
            "id": "es-ooo",
            "fromEmail": "lucia.fernandez@solymar.example",
            "subject": "Respuesta automática: Propuesta",
            "text": "Hola,\n\nEstoy fuera de la oficina de vacaciones hasta el 2 de diciembre de 2026, con acceso limitado al correo.\n\nPara temas urgentes, contacte con mi compañera Carmen Ruiz, responsable de marketing, en carmen.ruiz@solymar.example o al +34 912 345 678.\n\nSaludos,\nLucía Fernández"
        },
        {
            "id": "fr-left",
            "fromEmail": "julien.moreau@atelierlumen.example",
            "subject": "Réponse automatique",
            "text": "Bonjour,\n\nJulien Moreau ne fait plus partie de l'équipe Atelier Lumen.\n\nPour toute demande commerciale, veuillez contacter Élodie Bernard, directrice commerciale : elodie.bernard@atelierlumen.example.\nPour la comptabilité : compta@atelierlumen.example.\n\nCordialement"
        },
        {
            "id": "de-ooo",
            "fromEmail": "markus.becker@waldwerk.example",
            "subject": "Abwesenheitsnotiz",
            "text": "Guten Tag,\n\nich bin bis einschließlich 27.11.2026 nicht im Büro und habe keinen Zugriff auf meine E-Mails.\n\nIn dringenden Fällen wenden Sie sich bitte an meine Kollegin Anna Schmidt (Leiterin Logistik) unter anna.schmidt@waldwerk.example oder +49 30 1234567.\n\nMit freundlichen Grüßen\nMarkus Becker"
        },
        {
            "id": "html-left",
            "fromEmail": "kate.oneill@ferncrest.example",
            "subject": "Kate has left Ferncrest",
            "text": "<p>Hi,</p><p>Kate O'Neill has left Ferncrest Home as of November 6. Kate's accounts have been taken over by <a href=\"mailto:tom.becker@ferncrest.example\">Tom Becker</a>, our Ecommerce Director.</p><p>For press and PR, email <a href=\"mailto:press@ferncrest.example\">press@ferncrest.example</a>.</p>"
        },
        {
            "id": "ooo-card",
            "fromEmail": "nina@coastcandle.example",
            "subject": "OOO until Dec 1",
            "text": "Thanks for reaching out! I'm out of office until Tuesday, Dec 1 for a family event.\n\nIf you need something before then, please contact:\nRosa Diaz\nOperations Manager\nrosa.diaz@coastcandle.example\n(555) 010-4477\n\nTalk soon,\nNina Park\nFounder, Coast Candle Co.\nnina@coastcandle.example"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("kingly_contest_7cb/autoreply-contact-extractor").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "autoReplies": [
        {
            "id": "ooo-maria",
            "fromEmail": "jordan.lee@brightbloom.example",
            "subject": "Automatic reply: Spring collab idea",
            "text": """Hi there,

Thanks for your email. I'm out of the office on annual leave and will return on Monday, November 23, 2026, with limited access to email.

For anything marketing related, please contact my colleague Maria Lopez, Head of Growth, at maria.lopez@brightbloom.example or +1 (555) 010-2233.
For invoices and payments, email billing@brightbloom.example.

Best,
Jordan Lee
Brand Manager | Brightbloom Skincare
jordan.lee@brightbloom.example | +1 555 010 9999""",
        },
        {
            "id": "left-priya",
            "fromEmail": "priya.shah@northpeak.example",
            "subject": "Re: Wholesale pricing",
            "text": """Priya Shah is no longer with Northpeak Outdoor. Her last day was October 30.

Please direct partnership and wholesale questions to Daniel Okafor (Director of Business Development) at daniel.okafor@northpeak.example. For order status and shipping, contact our logistics team at logistics@northpeak.example.

This mailbox is no longer monitored.""",
        },
        {
            "id": "ooo-social",
            "fromEmail": "sam@loomandlark.example",
            "subject": "Out of Office",
            "text": """I'm currently travelling for a trade show and back in the office on 12/02.

In my absence, our Social Media Manager, Chloe Martin (chloe@loomandlark.example), is covering creator and influencer requests. Anything urgent can go to our founder Ben Hart on 07700 900123.

Cheers,
Sam""",
        },
        {
            "id": "other-helpdesk",
            "fromEmail": "support@cartwheelgoods.example",
            "subject": "We received your message [Ticket #48213]",
            "text": """Thanks for contacting Cartwheel Goods! This is an automated confirmation that we received your message. Our team replies within 1 to 2 business days.

Please do not reply to this email. Sent from noreply@cartwheelgoods.example""",
        },
        {
            "id": "ooo-plain-noalt",
            "fromEmail": "alex.wu@harborlane.example",
            "subject": "Automatic reply",
            "text": """Hello,

I am on parental leave until 15 January 2027 and will not be checking email. I will respond to your message when I return.

Thank you,
Alex Wu""",
        },
        {
            "id": "es-ooo",
            "fromEmail": "lucia.fernandez@solymar.example",
            "subject": "Respuesta automática: Propuesta",
            "text": """Hola,

Estoy fuera de la oficina de vacaciones hasta el 2 de diciembre de 2026, con acceso limitado al correo.

Para temas urgentes, contacte con mi compañera Carmen Ruiz, responsable de marketing, en carmen.ruiz@solymar.example o al +34 912 345 678.

Saludos,
Lucía Fernández""",
        },
        {
            "id": "fr-left",
            "fromEmail": "julien.moreau@atelierlumen.example",
            "subject": "Réponse automatique",
            "text": """Bonjour,

Julien Moreau ne fait plus partie de l'équipe Atelier Lumen.

Pour toute demande commerciale, veuillez contacter Élodie Bernard, directrice commerciale : elodie.bernard@atelierlumen.example.
Pour la comptabilité : compta@atelierlumen.example.

Cordialement""",
        },
        {
            "id": "de-ooo",
            "fromEmail": "markus.becker@waldwerk.example",
            "subject": "Abwesenheitsnotiz",
            "text": """Guten Tag,

ich bin bis einschließlich 27.11.2026 nicht im Büro und habe keinen Zugriff auf meine E-Mails.

In dringenden Fällen wenden Sie sich bitte an meine Kollegin Anna Schmidt (Leiterin Logistik) unter anna.schmidt@waldwerk.example oder +49 30 1234567.

Mit freundlichen Grüßen
Markus Becker""",
        },
        {
            "id": "html-left",
            "fromEmail": "kate.oneill@ferncrest.example",
            "subject": "Kate has left Ferncrest",
            "text": "<p>Hi,</p><p>Kate O'Neill has left Ferncrest Home as of November 6. Kate's accounts have been taken over by <a href=\"mailto:tom.becker@ferncrest.example\">Tom Becker</a>, our Ecommerce Director.</p><p>For press and PR, email <a href=\"mailto:press@ferncrest.example\">press@ferncrest.example</a>.</p>",
        },
        {
            "id": "ooo-card",
            "fromEmail": "nina@coastcandle.example",
            "subject": "OOO until Dec 1",
            "text": """Thanks for reaching out! I'm out of office until Tuesday, Dec 1 for a family event.

If you need something before then, please contact:
Rosa Diaz
Operations Manager
rosa.diaz@coastcandle.example
(555) 010-4477

Talk soon,
Nina Park
Founder, Coast Candle Co.
nina@coastcandle.example""",
        },
    ] }

# Run the Actor and wait for it to finish
run = client.actor("kingly_contest_7cb/autoreply-contact-extractor").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "autoReplies": [
    {
      "id": "ooo-maria",
      "fromEmail": "jordan.lee@brightbloom.example",
      "subject": "Automatic reply: Spring collab idea",
      "text": "Hi there,\\n\\nThanks for your email. I'\''m out of the office on annual leave and will return on Monday, November 23, 2026, with limited access to email.\\n\\nFor anything marketing related, please contact my colleague Maria Lopez, Head of Growth, at maria.lopez@brightbloom.example or +1 (555) 010-2233.\\nFor invoices and payments, email billing@brightbloom.example.\\n\\nBest,\\nJordan Lee\\nBrand Manager | Brightbloom Skincare\\njordan.lee@brightbloom.example | +1 555 010 9999"
    },
    {
      "id": "left-priya",
      "fromEmail": "priya.shah@northpeak.example",
      "subject": "Re: Wholesale pricing",
      "text": "Priya Shah is no longer with Northpeak Outdoor. Her last day was October 30.\\n\\nPlease direct partnership and wholesale questions to Daniel Okafor (Director of Business Development) at daniel.okafor@northpeak.example. For order status and shipping, contact our logistics team at logistics@northpeak.example.\\n\\nThis mailbox is no longer monitored."
    },
    {
      "id": "ooo-social",
      "fromEmail": "sam@loomandlark.example",
      "subject": "Out of Office",
      "text": "I'\''m currently travelling for a trade show and back in the office on 12/02.\\n\\nIn my absence, our Social Media Manager, Chloe Martin (chloe@loomandlark.example), is covering creator and influencer requests. Anything urgent can go to our founder Ben Hart on 07700 900123.\\n\\nCheers,\\nSam"
    },
    {
      "id": "other-helpdesk",
      "fromEmail": "support@cartwheelgoods.example",
      "subject": "We received your message [Ticket #48213]",
      "text": "Thanks for contacting Cartwheel Goods! This is an automated confirmation that we received your message. Our team replies within 1 to 2 business days.\\n\\nPlease do not reply to this email. Sent from noreply@cartwheelgoods.example"
    },
    {
      "id": "ooo-plain-noalt",
      "fromEmail": "alex.wu@harborlane.example",
      "subject": "Automatic reply",
      "text": "Hello,\\n\\nI am on parental leave until 15 January 2027 and will not be checking email. I will respond to your message when I return.\\n\\nThank you,\\nAlex Wu"
    },
    {
      "id": "es-ooo",
      "fromEmail": "lucia.fernandez@solymar.example",
      "subject": "Respuesta automática: Propuesta",
      "text": "Hola,\\n\\nEstoy fuera de la oficina de vacaciones hasta el 2 de diciembre de 2026, con acceso limitado al correo.\\n\\nPara temas urgentes, contacte con mi compañera Carmen Ruiz, responsable de marketing, en carmen.ruiz@solymar.example o al +34 912 345 678.\\n\\nSaludos,\\nLucía Fernández"
    },
    {
      "id": "fr-left",
      "fromEmail": "julien.moreau@atelierlumen.example",
      "subject": "Réponse automatique",
      "text": "Bonjour,\\n\\nJulien Moreau ne fait plus partie de l'\''équipe Atelier Lumen.\\n\\nPour toute demande commerciale, veuillez contacter Élodie Bernard, directrice commerciale : elodie.bernard@atelierlumen.example.\\nPour la comptabilité : compta@atelierlumen.example.\\n\\nCordialement"
    },
    {
      "id": "de-ooo",
      "fromEmail": "markus.becker@waldwerk.example",
      "subject": "Abwesenheitsnotiz",
      "text": "Guten Tag,\\n\\nich bin bis einschließlich 27.11.2026 nicht im Büro und habe keinen Zugriff auf meine E-Mails.\\n\\nIn dringenden Fällen wenden Sie sich bitte an meine Kollegin Anna Schmidt (Leiterin Logistik) unter anna.schmidt@waldwerk.example oder +49 30 1234567.\\n\\nMit freundlichen Grüßen\\nMarkus Becker"
    },
    {
      "id": "html-left",
      "fromEmail": "kate.oneill@ferncrest.example",
      "subject": "Kate has left Ferncrest",
      "text": "<p>Hi,</p><p>Kate O'\''Neill has left Ferncrest Home as of November 6. Kate'\''s accounts have been taken over by <a href=\\"mailto:tom.becker@ferncrest.example\\">Tom Becker</a>, our Ecommerce Director.</p><p>For press and PR, email <a href=\\"mailto:press@ferncrest.example\\">press@ferncrest.example</a>.</p>"
    },
    {
      "id": "ooo-card",
      "fromEmail": "nina@coastcandle.example",
      "subject": "OOO until Dec 1",
      "text": "Thanks for reaching out! I'\''m out of office until Tuesday, Dec 1 for a family event.\\n\\nIf you need something before then, please contact:\\nRosa Diaz\\nOperations Manager\\nrosa.diaz@coastcandle.example\\n(555) 010-4477\\n\\nTalk soon,\\nNina Park\\nFounder, Coast Candle Co.\\nnina@coastcandle.example"
    }
  ]
}' |
apify call kingly_contest_7cb/autoreply-contact-extractor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,kingly_contest_7cb/autoreply-contact-extractor"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/I5b49oD9jcyphDdwW/builds/TyCR9advqmF1cQT9A/openapi.json
