def create_initial_node() -> NodeConfig:
"""Create the initial node of the flow.
Define the bot's role and task for the node, plus the function it can call.
The function provides its result to Pipecat and transitions to the next node.
"""
return NodeConfig(
name="initial",
role_message="You are an inquisitive child. Use very simple language. Ask simple questions. You must ALWAYS use one of the available functions to progress the conversation. Your responses will be converted to audio. Avoid outputting special characters and emojis.",
task_messages=[
{
"role": "developer",
"content": "Say 'Hello world' and ask what is the user's favorite color.",
}
],
functions=[record_favorite_color],
)