# Behind the scenes of the most famous bot in Israel

- Speaker: [Shilo Magen](/wiki/speakers/shilo-magen.md)
- Event: [Reversim Summit 2022](/wiki/years/2022.md)
- Video: https://www.youtube.com/watch?v=0wNS3Ux3kX8
- Transcript: [/transcripts/2022/14-0wNS3Ux3kX8.md](/transcripts/2022/14-0wNS3Ux3kX8.md)
- Language: Hebrew · Type: talk · Level: intermediate
- Topics: [Security](/wiki/topics/security.md), [Software Engineering](/wiki/topics/software-engineering.md), [DevOps](/wiki/topics/devops.md), [Debugging](/wiki/topics/debugging.md)

> Written by an LLM from machine transcripts. It can contain errors. Check the transcript before you quote it.

## Summary

The speaker shares the story behind creating a popular automated bot in Israel designed to help citizens secure passport appointments during a severe bureaucratic crisis. By reversing the government system's API rather than using clumsy browser emulation, the speaker and a team quickly built a scalable cloud application that assisted thousands of users. The talk covers the architectural decisions, scaling challenges on AWS, handling unexpected production incidents, and dealing with massive media attention. Ultimately, the audience learns how a personal side project can rapidly scale into a national service while navigating complex technical and operational hurdles.

## Key points

- [0:11](https://www.youtube.com/watch?v=0wNS3Ux3kX8&t=11s) The severe crisis of booking passport appointments in Israel prompted the speaker to build a personal solution.
- [1:29](https://www.youtube.com/watch?v=0wNS3Ux3kX8&t=89s) The speaker avoided slow browser automation by reverse-engineering the government system's API for greater efficiency.
- [2:42](https://www.youtube.com/watch?v=0wNS3Ux3kX8&t=162s) After successfully testing the code, the architecture was quickly deployed to AWS using serverless functions and managed databases.
- [3:43](https://www.youtube.com/watch?v=0wNS3Ux3kX8&t=223s) A critical bug falsely promised appointments to users who already had existing bookings, which required urgent crisis management.
- [4:45](https://www.youtube.com/watch?v=0wNS3Ux3kX8&t=285s) After several weeks of blocking attempts and massive media exposure, the project successfully helped thousands of citizens before shutting down.

## Takeaways

- Reverse-engineering APIs can be a much more elegant and efficient alternative to browser automation for building tools.
- Leveraging serverless cloud infrastructure allows a small side project to scale rapidly and handle massive traffic spikes.
- Always anticipate edge cases like duplicate user bookings when rapidly deploying automated systems to production.

## Questions this talk answers

- How can you efficiently interact with legacy web systems without relying on slow browser automation?
- What architectural patterns help a small side project scale to handle thousands of concurrent users overnight?
- How do you manage unexpected production incidents and bugs when scaling a high-visibility public bot?

## Technologies

AWS, DynamoDB, API Gateway

## Tags

api reverse engineering, automation, incident management, scaling, serverless, side project
