how to detect is there is a valid cli available?
# support
u
Hi I can't work out how I can check if there is a valid cli {{number}} available so that the agent does not ask for the number if it exists tried {{number}} and it doesn't seem to work
v
@🚀 Christine Hello! It sounds like you're trying to determine if a valid caller line identification (CLI) number is available in your system so that the agent doesn't need to request it if it already exists. To assist you better, could you please provide me with more information about the system or API you are using? This will help me understand how to check for the existence of a CLI number in your specific context.
You can continue this conversation by mentioning me in the message.
u
I am just using the vapi system prompt and trying to reference the system variable {{number}} . If you grill the agent it knows it, but you can't reference it in the prompt
s
You may include the information in a distinct section within your prompt, or alternatively, you may add another system message to serve as a response generation boundary or context, guiding the assistant to utilize it while taking the context into account.
2 Views