{"version":"1.0","type":"rich","title":"Generated by XState Viz: https://xstate.js.org/viz","description":"This example shows a state machine for a free-trial signup flow, progressing from an idle state through name entry to an email state. The machine starts in `idle`, waits for a `READY` event, then moves to `name`, where an entry action logs the context and event before automatically raising a `NEXT` event to transition to `email`. It uses XState’s `Machine` and `raise` API to define states, transitions, and context with a `retries` counter. The code includes a custom `nameEntry` action that triggers the next step programmatically.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-e60702b29b414e5079fc657f081f3b6e?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}