Function Nodes enable routing, task creation, business hour checks, and API requests
Function Nodes are critical components in the Plivo Agent Builder, enabling you to execute a variety of operations within your conversational flows. These nodes enhance the flexibility of your AI workflows by allowing you to route conversations, check business hours, create tasks, and send API requests to external services. Below are the four key Function Nodes and their configurations:
The Assign to Human Node routes the conversation to a human specialist for manual intervention. You can assign the conversation to a specific agent or a team, based on predefined criteria.Configuration Steps:
Select the Queue: Choose a queue where the conversation will wait until a human agent is available.
Advanced Settings:
Routing Strategy: Choose from multiple routing strategies:
Highest Idle Time: Routes to the agent who has been idle for the longest.
Simultaneous Conversations: Routes based on how many conversations the agent can handle simultaneously.
Lowest Conversations Handled: Routes to the agent with the least number of handled conversations.
Lowest Conversation Handle Time: Routes to the agent with the lowest handling time.
Simultaneous Conversation Recipients: Specify how many agents can handle the conversation at the same time.
Conversation Assignment Retry: Set the retry count for unsuccessful assignments.
Sticky Routing: Enable sticky routing to route the conversation to the same agent.
Sticky Routing Expiry: Set an expiry time for sticky routing.
The HTTP Request Node allows you to send API requests to external services and process the response.Configuration Steps:
API URL and Method: Define the endpoint URL and HTTP method (GET, POST, etc.).
Authentication: Choose the authentication type (None, Basic Auth, or Bearer Token).
Timeout and Retries: Set a timeout period and retry attempts for the request.
Parameters: Define the key-value pairs for parameters, headers, and body of the request.
Possible Paths After This Node:
Success: Proceed if the request is successful.
Failure: Proceed if the request fails.
These Function Nodes enable you to create dynamic, responsive workflows that handle manual interventions, business hour checks, task assignments, and external API integrations. By leveraging these nodes, you can enhance the efficiency and complexity of your conversational flows.