amir
11/22/2024, 6:41 AMVapi
11/22/2024, 6:44 AMcustomer_type variable, you can structure your prompt to include conditional logic. Here's a suggestion on how you can set it up:
1. Start with a clear introduction that explains what the agent is expected to do.
2. Define the variable customer_type and explain its possible values.
3. Use conditional statements to outline the different scenarios and responses for each customer_type.
Here's an example of how the prompt could look:
Given the variable `customer_type`, which can be either "business" or "consumer", the agent will provide a tailored response based on the following scenarios:
- If `customer_type` is "business", the agent will say: "We offer a range of services tailored to meet the needs of your business, including bulk discounts and dedicated support."
- If `customer_type` is "consumer", the agent will say: "Our products are designed with the consumer in mind, ensuring quality and affordability for your personal use."
- If `customer_type` is not specified or is any other value, the agent will ask for clarification: "Could you please specify if you are inquiring as a business or a consumer?"
Please proceed with the appropriate response based on the `customer_type` provided.
When you pass in the variable, the agent will check the value of customer_type and respond accordingly. If the agent is not complying, make sure that the conditional logic is clearly defined and that there are no ambiguities in the instructions. If you continue to face issues, please provide more details so I can assist you further.Vapi
11/22/2024, 6:44 AMShubham Bajaj
11/23/2024, 2:37 PM