HeyGen
The HeyGen
provider includes processors that can use your HeyGen API key and perform various actions like generating avatars in real-time and make them answer questions from your datasources.
Realtime Avatar
Input
task_type
: The type of task to perform. Can berepeat
,talk
,create_session
,start_session
,close_session
andsubmit_ice_candidate
. Types other thanrepeat
are used internally by the processor and not for direct use.text
: The text to repeat.session_id
: The session ID to use. If not provided, a session_id from app session will be used if available.
Configuration
avatar_name
: Avatar ID to use for the session. You can find this in your HeyGen account or use the API to get a list of available avatars. See their API documentation for more details.voice_id
: Voice ID to use for the session. You can find this in your HeyGen account or use the API to get a list of available voices. See their API documentation for more details.connection_id
: The connection ID of the HeyGen account to use. Add a connection of typeAPI Key Authentication
from Settings > Connections (and add your HeyGen API key).reuse_session
: Whether to reuse the session or create a new one. If set totrue
, the session will be reused for subsequent requests. If set tofalse
, a new session will be created for eachcreate_session
request.quality
: The quality of the generated video stream. Can below
,medium
orhigh
. Defaults tomedium
.input_stream
: When set totrue
, the input text will be streamed to the avatar. This is useful when you want to generate a video of the avatar speaking a long text. Defaults tofalse
. This will make the avatar start speaking as soon as a sentence is available.
Output
task_type
: The type of task performed.task_response_json
: The response from the HeyGen API.