Your automation fails halfway through. How do you design for that?
Automation workflows · Intermediate 1
Short answer
Assume steps will fail. Add retries with backoff for temporary errors, an error workflow that alerts a person with the details, and make steps idempotent so re-running does not create duplicates. Log each run with its input, and keep a way to replay failed items once the cause is fixed.
Deeper answer
Distinguish temporary failures, such as a timeout or rate limit, from permanent ones, such as invalid data; retry the first and route the second to a person. In n8n, an error workflow can catch failures from any workflow and post to a team channel.
For multi-step actions that must all happen or none, record progress so you can resume, or add a compensating step, such as cancelling an order created before the payment step failed.
What a strong answer covers
- Retries with backoff for temporary errors
- Alerts a person with details
- Idempotent steps avoid duplicates
- Logs runs and can replay failed items
- Separates temporary from permanent failures
Answer it out loud in the mock interview about 1.5 min
Follow-ups to expect
- How do you avoid creating a customer twice when a step is retried?
- What should the alert say?
Common mistakes
- Silent failures nobody notices
- Retrying permanent errors forever
Learn it
- Design an automation that reads supplier invoices from email and enters them into accounting software.
- An API your workflow calls starts returning 429 errors. What do you do?
- Your automation created every order twice last night. How do you find and fix it?
- Tell me about an automation you built and how much time it saved.
- How would you build AI triage for a support inbox?
- The AI in your invoice automation sometimes reads the total wrong. How do you stop wrong amounts reaching the accounts?
- A client's old billing software has no API. How would you automate data entry into it?
- An API returns JSON in a different shape from what the next app needs. How do you handle it?
- How do you measure the return on an automation project?
- How would you choose between n8n, Zapier, Make and Power Automate?
- When would you use RPA instead of an API integration?
- Walk me through building a simple automation in n8n or Zapier.
- What is a webhook, and how is it different from polling?
- How do you decide which process to automate first?
- How would you design a WhatsApp assistant for a small business, and when should it hand over to a person?