https://retellai.com/?utm_source=discord&utm_medium=seo logo
write a prompt for a single prompt agent that work...
# ❓・ai-evy-support
o
@AI Evy write a prompt for a single prompt agent that works as a host for a restaurant. Make it use check calender and book appointment using cal.com functions. I want to test
a
Thanks for tagging me @omarkouta.. I'll look through relevant sources and get back to you shortly.
### Answer Here's a restaurant host prompt for a single prompt agent using Cal.com functions:
Copy code
You are Maria, a friendly and professional host at Bella Vista Restaurant. You handle reservation inquiries and bookings with warmth and efficiency.

RESTAURANT DETAILS:
- Name: Bella Vista Restaurant
- Hours: Tuesday-Sunday, 5:00 PM - 10:00 PM (Closed Mondays)
- Cuisine: Italian fine dining
- Party size: 2-8 guests
- Location: Downtown

YOUR ROLE:
1. Greet callers warmly and ask how you can help with their reservation needs
2. Collect party size, preferred date, and time preferences
3. When a customer provides a time range or specific date, check calendar availability by calling the `check_calendar_availability` function
4. Present available time slots clearly to the customer
5. When customer selects a specific time slot, collect their name, phone number, and any special requests
6. Once all details are confirmed, call the `book_appointment` function to secure their reservation
7. Confirm the booking details and thank them

CONVERSATION FLOW:
- Start with: "Hello! Thank you for calling Bella Vista Restaurant. I'm Maria, and I'd be happy to help you with a reservation today. What date and time were you hoping to dine with us?"
- Always check availability before offering specific times
- Confirm all details before booking: "Just to confirm, I have you down for [party size] guests on [date] at [time] under the name [name]. Is that correct?"
- End with: "Perfect! Your reservation is confirmed. We look forward to seeing you at Bella Vista!"

IMPORTANT GUIDELINES:
- Only offer times that show as available in the calendar check
- Always collect: party size, date, time, name, and phone number
- Be helpful with alternative times if their preferred slot isn't available
- Maintain a warm, professional restaurant host tone throughout
To set this up, you'll need to: 1. Add the "Check Calendar Availability" function with your Cal.com API key and event type ID [(1) ]() 2. Add the "Book Appointment" function with the same Cal.com credentials [(2) ]() 3. Configure the correct timezone settings in both Cal.com and Retell AI [(3) ]() The prompt includes explicit instructions for when to call each function - checking availability when customers mention time ranges, and booking when they select a specific slot [(1) ]() [(2) ]() .
​ To learn more, see the sources I considered: [[1] Check Calendar Availability](https://docs.retellai.com/build/check-availability) [[2] Book Calendar](https://docs.retellai.com/build/book-calendar) [[3] Automate Scheduling with AI Appointment Booking | Retell AI](https://www.retellai.com/features/book-appointments) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
o
@AI Evy The agent keeps telling me they have technical issue checking the calender, however I set all settings correctly and everything is expected to work.
a
Thanks for the follow-up, @omarkouta.. I'll get back to you soon.
### Answer Based on the available sources, there are several common issues that can cause calendar checking problems. Let me help you troubleshoot: Common Setup Issues: 1. Cal.com Credentials Verification [(1) ]() : - Ensure your Cal.com API key is correct (found in Settings > Developer > API Keys) - Verify the Event Type ID matches the number in your Cal.com URL - Double-check that the event type is properly configured and saved 2. Timezone Configuration [(2) ]() : - Configure timezone settings in both Cal.com and the Retell AI dashboard for accurate scheduling - Ensure both platforms use the same timezone (e.g., "America/Los_Angeles") 3. **Known Issues from Community Reports**: - There have been reports of the Cal.com API "get available slots" not being reliable [(3) ]() - Some users experienced timezone formatting bugs where PM times were incorrectly shown as AM, though this has been fixed [(4) ]() Testing Recommendations [(5) ]() : - Use the Test button in the agent settings to ensure the Cal.com functions are working as expected **Troubleshooting Steps**: 1. Verify your Cal.com account is properly set up with working event types 2. Test the API credentials directly in Cal.com's interface 3. Check if the issue occurs with different time ranges 4. Ensure your Cal.com event type has available slots during the times you're testing If you continue experiencing issues after verifying these settings, the problem might be related to Cal.com's API reliability [(3) ](
86462578310910112/1329318130165481502) or specific configuration conflicts between your Cal.com setup and Retell AI.
​ To learn more, see the sources I considered: [[1] Check Calendar Availability](https://docs.retellai.com/build/check-availability) [[2] Automate Scheduling with AI Appointment Booking | Retell AI](https://www.retellai.com/features/book-appointments) [[3] Discord message from @jayzpio on 2025-01-16](https://discord.com/channels/1186424376300679209/1186462578310910112/1329318130165481502) [[4] When using check_calendar_availability function, I am getting all the times in AM (same timezone)](https://discord.com/channels/1186424376300679209/1291338582388248637) [[5] AI Scheduling Assistant with Cal.com | Retell AI](https://www.retellai.com/blog/cal-coms-preset-tools) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
o
how to Test the API credentials directly in Cal.com's interface
@AI Evy how to Test the API credentials directly in Cal.com's interface
a
Thanks for the follow-up, @omarkouta.. I'll get back to you soon.
### Answer I don't have specific information about testing API credentials directly in Cal.com's interface in the available sources. The sources focus on how to integrate Cal.com with Retell AI rather than testing credentials within Cal.com itself. Based on the Retell AI documentation, here's what I can tell you about the Cal.com integration setup: To get your Cal.com API key [(1) ]() : 1. Go to "Settings" in your cal.com dashboard 2. Navigate to "Developer" section 3. Click on "API Keys" to retrieve your API key To get your Event Type ID : 1. Open your created event type 2. Look at the URL in your browser 3. The event type ID is the number in the URL Example: ` In this case,
1427703
is your event type ID For testing your credentials directly within Cal.com's interface, you would need to refer to Cal.com's own documentation or support resources, as this falls outside of Retell AI's documentation scope. However, you can test if your Cal.com integration is working properly within Retell AI by using the agent testing features in the Retell AI dashboard. Check out these potentially useful sources: [Book Calendar]() Would you like me to try to provide a general answer about testing API credentials, or do you have other questions about the Retell AI integration with Cal.com?
​ To learn more, see the sources I considered: [[1] Book Calendar](https://docs.retellai.com/build/book-calendar) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
o
@AI Evy Write a static prompt to make appointment
a
Thanks for the follow-up, @omarkouta.. I'll get back to you soon.
### Answer Based on the available sources, I can help you understand how to create prompts for appointment booking, but I don't have specific documentation about creating static prompts for appointment booking in the sources provided. From the documentation, I can see that Retell AI offers two main approaches to building conversational agents [(1) ]() : 1. **Single Prompt**: Design your agent with one comprehensive prompt 2. **Multi-Prompt Tree**: Structure your agent with multiple organized prompts The documentation notes that single prompt agents may encounter challenges as they become more complex, including that "the agent may start to hallucinate or deviate from instructions" and "function calling becomes less reliable" . For appointment booking functionality, the multi-prompt approach is recommended for more sophisticated agents . However, the specific sources I have access to don't contain detailed examples of static prompts for appointment booking. The community discussions mention issues with the built-in calendar booking functions, where users report that "the built in function is limited in its functionality" and suggest integrating custom tools for more options [(2) ]() . Check out these potentially useful sources: [Prompt Overview]() , [calendar appointment booking through retell]() Would you like me to try to provide a general answer about creating appointment booking prompts, or do you have other questions about Retell AI's prompt structure?
​ To learn more, see the sources I considered: [[1] Prompt Overview](https://docs.retellai.com/build/single-multi-prompt/prompt-overview) [[2] calendar appointment booking through retell](https://discord.com/channels/1186424376300679209/1250814023067500657) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
o
@AI Evy single prompt
a
Thanks for the follow-up, @omarkouta.. I'll get back to you soon.
### Answer Based on the documentation, here's how to create a single prompt agent for appointment booking: ## Single Prompt Structure The single prompt approach allows you to define your agent's behavior with one comprehensive prompt [(1) ]() . For appointment booking, you should structure your prompt with clear sections [(2) ]() :
Copy code
///## Identity
You are a friendly AI assistant for [Business Name]. ....

///## Style Guardrails
Be concise: ...
Be conversational: ...
...

///## Response Guideline
Return dates in their spoken forms: ...
Ask up to one question at a time: ...
...

///## Task
1. Greet the user
2. Ask for preferred appointment date and time
3. Check calendar availability using check_calendar_availability function
4. Present available slots to the user
5. Collect customer details (name, phone, email)
6. Book the appointment using book_appointment function
7. Confirm the booking details
...
## Writing Tasks as Steps When you want your agent to follow a specific procedure, write the task as steps . This helps the LLM understand what to ask at each step:
Copy code
///## Task
1. Ask for user's name.
2. Ask if user needs a refund, need a replacement, or just retriving information.
 - if user needs a refund, transition to refund state.
 - if user needs a replacement, transition to replacement state.
3. If user is just retriving information, ask for the order number.
...
If you need the agent to wait for responses at specific points, you can be more explicit :
Copy code
///## Task
1. Inform user why you are calling.
2. Ask for user's name.
wait for user response
3. Ask if user needs a refund, need a replacement, or just retriving information.
wait for user response
 - if user needs a refund, transition to refund state.
 - if user needs a replacement, transition to replacement state.
4. Ask for the order number.
wait for user response
...
## Important Considerations Single prompt agents are straightforward and great for simple use cases, but may encounter challenges as complexity increases [(1) ]() : - The agent may start to hallucinate or deviate from instructions - Function calling becomes less reliable - The prompt becomes difficult to maintain as it grows larger For appointment booking with calendar integration, you may want to consider the multi-prompt approach for more sophisticated functionality .
​ To learn more, see the sources I considered: [[1] Prompt Overview](https://docs.retellai.com/build/single-multi-prompt/prompt-overview) [[2] Write a single prompt](https://docs.retellai.com/build/single-multi-prompt/write-single-prompt) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
n
@AI Evy please guide me how to integrate a POS (Toast, Clover) and OpenTable with Retell voice agent?
a
Thanks for the follow-up, @niamatullah313. I'll get back to you soon.
### Answer Based on the available sources, I can provide guidance on integrating POS systems and OpenTable with Retell voice agents: ## OpenTable Integration For OpenTable integration, the approach involves using custom functions with the OpenTable API [(1) ]() . You'll need to: 1. **Apply for OpenTable API Access**: The customer needs to request API access from OpenTable through their account 2. **Create Custom Functions**: Write custom code for GET and POST requests to interact with OpenTable's API 3. **Integration Platform**: You can use platforms like Make.com for the integration, though there isn't specific OpenTable integration documentation on the Retell website ## POS Integration Approach While the sources don't contain specific documentation for Toast or Clover POS integration, Retell AI supports custom API integrations through several methods: ### Integration Options **Custom API Integrations**: Similar to the Airtable integration approach, you can connect POS systems through custom API integrations [(2) ]() **Integration Partners**: Retell AI works with certified integration partners who can help with custom integrations . Partners like Deligence Technologies Inc. specialize in "Retell AI Integration with CRM/other tools" **Webhook Integration**: AI voice agents can interact with external databases and systems in real-time through webhook integrations [(3) ]() ### Technical Implementation The integration would typically involve: - Setting up custom functions to communicate with your POS system's API - Using webhooks for real-time data synchronization - Implementing proper authentication and data handling protocols ## Recommended Next Steps 1. **Contact
Integration Partners**: Consider working with certified partners who specialize in Retell AI integrations [(2) ]() 2. **API Documentation Review**: Obtain API documentation from Toast, Clover, and OpenTable to understand available endpoints 3. **Custom Development**: Develop custom functions for the specific POS and reservation system interactions you need Check out these potentially useful sources: [Connect AI call agent to Airtable]() Would you like me to provide more specific guidance on any particular aspect of these integrations?
​ To learn more, see the sources I considered: [[1] Discord message from @niamatullah313 on 2025-08-06](https://discord.com/channels/1186424376300679209/1186462578310910112/1402673528494362787) [[2] Connect AI call agent to Airtable](https://www.retellai.com/integrations/airtable) [[3] AI Voice Agents in 2025: Everything Businesses Need to Know | Retell AI](https://www.retellai.com/blog/ai-voice-agents-in-2025) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
Thanks for the feedback, glad I was helpful.