Skip to content

feat(client): support startingWorkflowNodeId in session config - #910

Open
pmarkert wants to merge 1 commit into
elevenlabs:mainfrom
pmarkert:feat/client-starting-workflow-node-id
Open

feat(client): support startingWorkflowNodeId in session config#910
pmarkert wants to merge 1 commit into
elevenlabs:mainfrom
pmarkert:feat/client-starting-workflow-node-id

Conversation

@pmarkert

@pmarkert pmarkert commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Add startingWorkflowNodeId to BaseSessionConfig and wire it through constructOverrides.

This allows callers using the private WebSocket or WebRTC session paths (signed URL / conversation token) to target a specific agent workflow node at conversation start, matching the behaviour already available on the server-side outbound-call API (ConversationInitiationClientDataRequestInput).

Also adds the field to ConversationInitiationClientToOrchestratorEvent in @elevenlabs/types so the type system is consistent end-to-end. Did not touch the auto-generated file, but it should probably be regenerated.


Note

Low Risk
Small optional passthrough on session startup; no auth or data-model changes in this diff.

Overview
Adds optional startingWorkflowNodeId on BaseSessionConfig so private WebSocket/WebRTC sessions (signed URL / conversation token) can tell the agent workflow which node to enter at conversation start, instead of always using the default entry node.

constructOverrides now copies that value onto the conversation initiation payload as starting_workflow_node_id, matching the server-side outbound initiation shape described in the PR.

Reviewed by Cursor Bugbot for commit 54f3b7e. Bugbot is set up for automated code reviews on this repo. Configure here.

Add `startingWorkflowNodeId` to `BaseSessionConfig` and wire it through
`constructOverrides` so it is emitted as `starting_workflow_node_id` in
the `conversation_initiation_client_data` WebSocket event.

This allows callers using the private WebSocket or WebRTC session paths
(signed URL / conversation token) to target a specific agent workflow node
at conversation start, matching the behaviour already available on the
server-side outbound-call API (`ConversationInitiationClientDataRequestInput`).

Also adds the field to `ConversationInitiationClientToOrchestratorEvent` in
`@elevenlabs/types` so the type system is consistent end-to-end.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant