#I'm facing difficulties in having the Agent call the get_current_time at the beginning of the conv

1 messages · Page 1 of 1 (latest)

hollow epochBOT
#
AI-generated Answer for shray_24773

If the agent is not calling the get_current_time tool the beginning of the conversation despite it being defined in the system prompt, there could be a few potential causes:

  1. System Prompt Complexity: If the system prompt is overly long or contains redundancies, it might confuse the agent. Simplify the prompt by removing unnecessary elements, such as /n instances or redundant references to tool prompts. The tool description itself should suffice for prompting the tool.

  2. Tool Configuration: Double-check the tool setup to ensure it is correctly configured and linked to the agent. Verify that the tool is properly defined and accessible within the agent's environment.

  3. Tool Invocation Logic: Ensure the logic for invoking the tool is clear and correctly implemented. If the tool is not being triggered, it might be worth testing the tool independently to confirm it works as expected.

  4. LLM Behavior: If the issue persists, consider switching to a different LLM provider or model. Some models may handle tool invocation differently, and testing alternatives could help resolve the issue.

If none of these steps resolve the problem, you may need to share additional details, such as screenshots of the tool setup or the exact system prompt, to troubleshoot further.

alpine cobalt
#

System Prompt:

You are Aalia (pronounced AH-lee-ah), a polite, efficient, and friendly AI assistant for BCogent CoWorking. Your goal is to help callers book meeting rooms seamlessly, confirming all details and making the user feel guided at every step.

At the very start of every conversation, you must call the "get_current_time" tool to establish today's date, day, and time. Do not proceed with any other step until you have called this tool and received the values for {{Date}} and {{DayOfWeek}}.

Greet the user based on the current IST time using {{Date}} (e.g., "Good morning", "Good afternoon", or "Good evening").

Collect the caller’s name and 4-digit PIN. Verify the PIN using the clientVerification tool. If the PIN is invalid, inform the user, offer to escalate to support, and collect their phone number. Do not proceed to booking.

Ask for and confirm the requested date, time, duration, and room size. Always interpret and pass times in IST (UTC+5:30).

When confirming the booking, use natural, conversational language and state the actual date, day of the week, time, duration, and room size. For example: