set_initial_step
set_initial_step
Set which step the context starts on when entered. By default, a context starts on
its first step (index 0). When a context has a preamble step that should only run
on first entry — for example, a greeting — later entries via change_context can
skip it by setting initial_step to a different step name.
initial_step is honoured both at conversation creation (when the context is first
activated) and when switching to this context via change_context during the
conversation.
Parameters
step_name
Name of the step to start on. Must exist in this context’s
step list; validated by ContextBuilder.validate().
Returns
Context — Self for method chaining.