1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "autoReplies": [
9 {
10 "id": "ooo-maria",
11 "fromEmail": "jordan.lee@brightbloom.example",
12 "subject": "Automatic reply: Spring collab idea",
13 "text": """Hi there,
14
15Thanks 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.
16
17For anything marketing related, please contact my colleague Maria Lopez, Head of Growth, at maria.lopez@brightbloom.example or +1 (555) 010-2233.
18For invoices and payments, email billing@brightbloom.example.
19
20Best,
21Jordan Lee
22Brand Manager | Brightbloom Skincare
23jordan.lee@brightbloom.example | +1 555 010 9999""",
24 },
25 {
26 "id": "left-priya",
27 "fromEmail": "priya.shah@northpeak.example",
28 "subject": "Re: Wholesale pricing",
29 "text": """Priya Shah is no longer with Northpeak Outdoor. Her last day was October 30.
30
31Please 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.
32
33This mailbox is no longer monitored.""",
34 },
35 {
36 "id": "ooo-social",
37 "fromEmail": "sam@loomandlark.example",
38 "subject": "Out of Office",
39 "text": """I'm currently travelling for a trade show and back in the office on 12/02.
40
41In 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.
42
43Cheers,
44Sam""",
45 },
46 {
47 "id": "other-helpdesk",
48 "fromEmail": "support@cartwheelgoods.example",
49 "subject": "We received your message [Ticket #48213]",
50 "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.
51
52Please do not reply to this email. Sent from noreply@cartwheelgoods.example""",
53 },
54 {
55 "id": "ooo-plain-noalt",
56 "fromEmail": "alex.wu@harborlane.example",
57 "subject": "Automatic reply",
58 "text": """Hello,
59
60I am on parental leave until 15 January 2027 and will not be checking email. I will respond to your message when I return.
61
62Thank you,
63Alex Wu""",
64 },
65 {
66 "id": "es-ooo",
67 "fromEmail": "lucia.fernandez@solymar.example",
68 "subject": "Respuesta automática: Propuesta",
69 "text": """Hola,
70
71Estoy fuera de la oficina de vacaciones hasta el 2 de diciembre de 2026, con acceso limitado al correo.
72
73Para temas urgentes, contacte con mi compañera Carmen Ruiz, responsable de marketing, en carmen.ruiz@solymar.example o al +34 912 345 678.
74
75Saludos,
76Lucía Fernández""",
77 },
78 {
79 "id": "fr-left",
80 "fromEmail": "julien.moreau@atelierlumen.example",
81 "subject": "Réponse automatique",
82 "text": """Bonjour,
83
84Julien Moreau ne fait plus partie de l'équipe Atelier Lumen.
85
86Pour toute demande commerciale, veuillez contacter Élodie Bernard, directrice commerciale : elodie.bernard@atelierlumen.example.
87Pour la comptabilité : compta@atelierlumen.example.
88
89Cordialement""",
90 },
91 {
92 "id": "de-ooo",
93 "fromEmail": "markus.becker@waldwerk.example",
94 "subject": "Abwesenheitsnotiz",
95 "text": """Guten Tag,
96
97ich bin bis einschließlich 27.11.2026 nicht im Büro und habe keinen Zugriff auf meine E-Mails.
98
99In dringenden Fällen wenden Sie sich bitte an meine Kollegin Anna Schmidt (Leiterin Logistik) unter anna.schmidt@waldwerk.example oder +49 30 1234567.
100
101Mit freundlichen Grüßen
102Markus Becker""",
103 },
104 {
105 "id": "html-left",
106 "fromEmail": "kate.oneill@ferncrest.example",
107 "subject": "Kate has left Ferncrest",
108 "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>",
109 },
110 {
111 "id": "ooo-card",
112 "fromEmail": "nina@coastcandle.example",
113 "subject": "OOO until Dec 1",
114 "text": """Thanks for reaching out! I'm out of office until Tuesday, Dec 1 for a family event.
115
116If you need something before then, please contact:
117Rosa Diaz
118Operations Manager
119rosa.diaz@coastcandle.example
120(555) 010-4477
121
122Talk soon,
123Nina Park
124Founder, Coast Candle Co.
125nina@coastcandle.example""",
126 },
127 ] }
128
129
130run = client.actor("kingly_contest_7cb/autoreply-contact-extractor").call(run_input=run_input)
131
132
133print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
134for item in client.dataset(run.default_dataset_id).iterate_items():
135 print(item)
136
137