I am trying to build a node within Conversation Flow using Option 3 as mentioned in the API Doc but getting error that type of node should be 'conversation' only however I wanted to pass function.
Here is the sample node Json:
{
"id": "verify_client_info",
"type": "function",
"function_name": "check_existing_client",
"tool_id": "client_check",
"tool_type": "local",
"wait_for_result": true,
"name": "check_existing_client",
"speak_during_execution": true,
"instruction": {
"type": "prompt",
"text": "Checking if client exists in the database..."
},
"parameters": {
"email": "{{user_input}}"
},
"edges": [
{
"id": "edge_client_found",
"transition_condition": {
"type": "function_result",
"function_result": "client_exists"
},
"destination_node_id": "get_client_details"
}
]
}