Discussions
Request Access to Interactive Avatar Realtime API for Assistant Integration (Node.js + WebSocket + n8n)
Hello HeyGen Engineering Team,
I’m currently building a real-time conversational AI assistant that uses HeyGen’s interactive avatar API to provide live spoken responses to users.
The project includes:
A Node.js backend that creates sessions, connects to the WebSocket endpoint, and sends tasks via /v1/streaming.task.
A frontend that captures user voice, converts it to text, and shows the avatar’s responses.
An integration with n8n.io to trigger automated workflows (e.g., CRM updates, product quotations, insurance simulations) based on avatar responses.
I’ve already implemented all the required backend architecture, including:
createSession() via POST /v1/streaming.new
startSession() via POST /v1/streaming.start
Real-time WebSocket handler for receiving avatar_end_message
POST /v1/streaming.task for sending talk prompts
However, my API requests return:
{ "error": "Request failed with status code 401" }
I believe my account does not yet have access to the streaming features or my token is not provisioned for avatar realtime interactions.
Could you please confirm if access must be explicitly granted for the Interactive Avatar Realtime API?
And if so, what is the process to have it enabled for my account?
Thank you in advance! Looking forward to launching this experience with HeyGen avatars.