Policy
Make use of Large Language models to provide Conversational reasoning and task execution
Last updated
Make use of Large Language models to provide Conversational reasoning and task execution
Last updated
The Policy node allows you to specify a task that the chatbot can perform to assist the users. The instructions for the task can be written in plain text and the chatbot will walk the user through it making decisions based on the user messages. The Policy node makes use of Large Language models such as GPT-4 to execute the instructions.
The Policy Node comprises of the following core pieces along with optional configurations.
Name - A meaningful name for the Policy
Policy - Instructions describing the approach for the chatbot. This can be as detailed as needed. The policy should clearly define the task to do and the exit criteria for completion of the policy
Actions - Actions are API calls that the Policy can execute.
Give a nice greeting to the customer and then tell them you will be helping them check the order status.
In order to check their order status, ask the customer for the order ID and email, if not provided.
Once they have provided all the needed information, let them know that you are pulling up the order.
If you are able to find the order provide them with the status, shipping address and the tracking url.
If you are not able to find the order ask them to check the information they provided and provide it again.
In addition to the core components you have control on the type of model, failure criteria and context provided to the Policy Node.
This specifies the LLM to use for executing the Policy. You can use DeepConverse account or bring your own LLM from (Azure, OpenAI, Anthropic).
You also have an option to specify which model you would like to use.
To help the policy execution you have the option of specifying which context data the policy has access to. For example, if you already have the name and email captured you can provide it to the node. In this way it can skip asking for the same data again.
Parameters to Include - This property is used to list out the parameters from the context to provide to the policy node.
Parameters to Capture - This property is used to specify the parameters along with a detailed description that the chatbot should capture via the policy.
To ensure that the chatbot does not get stuck in the Policy node you have the option of specifying maximum number of turns that should happen for the policy.
Here is a demo of the Policy Node in action. You can see it walking the customer through the order status check.