What is a webhook, and how is it different from polling?
Automation workflows · Beginner 3
Short answer
Polling means your workflow asks a service every few minutes whether anything changed. A webhook is the reverse: the service sends an HTTP request to your URL the moment an event happens, such as a payment succeeding. Webhooks are faster and use fewer requests, but you must secure the endpoint and handle repeats.
Deeper answer
With a webhook you get a URL from your automation tool and register it in the other service. Security matters: verify the signature the sender includes, use HTTPS, and never trust the payload blindly.
Senders retry when your endpoint fails, so the same event can arrive twice; make the workflow idempotent by checking an event ID before acting. Polling is still fine when a service offers no webhooks or near-real-time is not needed.
What a strong answer covers
- Polling asks repeatedly on a schedule
- Webhook pushes an HTTP request when an event happens
- Webhooks are faster and cheaper on requests
- Secure the endpoint and verify signatures
- Handle duplicates or retries
Answer it out loud in the mock interview about 1 min
Follow-ups to expect
- How would you stop a duplicate payment webhook from creating two orders?
- How do you verify a webhook really came from the sender?
Common mistakes
- Not verifying signatures
- Assuming each event arrives exactly once
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.
- 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?
- Your automation fails halfway through. How do you design for that?