To create Home Assistant records from Gmail without manual input, use a ready-made scenario.
You can launch this Gmail + Home Assistant integration in Scriptera: describe the task in plain words — the scenario is built, launched and monitored for you.