The experience sampling method (ESM) has become a central approach for capturing everyday experiences, yet the technical aspects of study setup can be challenging for researchers. ESMira is an open-source, decentralized ESM ecosystem that combines a web-based administration interface with Android and iOS apps, enabling researchers to design, deploy, and manage state-of-the-art, complex ESM studies on their own server infrastructure. In this tutorial, we provide a step-by-step âcookbookâ for creating an ESM study with ESMira, using a longitudinal study on the election of Pope Leo XIV as a running example. We guide readers through project creation, questionnaire design, filters and triggers, introduce scripting with the Merlin language, and cover chart generation, summary scores, multilingual and group settings, reward handling, as well as study publication and monitoring. Particular emphasis is placed on practical tips, common pitfalls (e.g., notification limits, schedule changes, server outages), data integrity, and privacy-preserving features such as decentralized hosting, event logs, and an anonymous reward system. By combining concrete examples, ready-to-use study code, and links to openly available resources, this tutorial lowers the technical barrier to conducting high-quality ESM studies with ESMira and supports transparent, reproducible research workflows.