https://retellai.com/?utm_source=discord&utm_medium=seo logo
I would like to create a function for rescheduling...
# 💬・general
j
@AI Evy I would like to create a function for rescheduling, canceling and checking calandaravailability in retell single prompt agent. The question is should i create a function for each of these and theirfor creeate seporate scinarios in make.com or is it possible to include this functinality into one scinario in make.com if so please give me the seeps and code to set up the function
a
Thanks for tagging me @joesturdy. I'll look through relevant sources and get back to you shortly.
### Answer For your single-prompt agent, you can create custom functions for calendar operations [(1) ]() . You have two approaches: *Option 1: Separate Functions (Recommended) * Create individual functions for each operation - this provides better control and clearer function calling . Steps to create custom functions: 1. Add custom function in dashboard - Click "+ Add" in the tools section and select "Custom Function" from the dropdown menu 2. Configure function details - Add a name and description for each custom function. The name should be unique and separated with underscore : - Name:
check_calendar_availability
- Name:
reschedule_appointment
- Name:
cancel_appointment
3. Select HTTP Method - Choose POST for Make.com webhooks 4. Add endpoint URL - Add the Make.com webhook URL where Retell will send the request 5. Define parameters using JSON schema format :
Copy code
json
{
 "type": "object",
 "properties": {
   "action": {
     "type": "string",
     "description": "The calendar action to perform"
   },
   "appointment_id": {
     "type": "string", 
     "description": "Appointment ID for reschedule/cancel"
   },
   "new_date": {
     "type": "string",
     "description": "New date for rescheduling"
   }
 }
}
Option 2: Single Function You can create one function that handles all three operations by using a parameter to specify the action type . In Make.com, use conditional logic to route based on the action parameter. Prompt Instructions: For single-prompt agents, include clear instructions in your prompt to control function calling [(2) ]() :
Copy code
///## Task
1. Ask for user's name.
2. Ask if user needs to reschedule, cancel, or check availability.
 - if reschedule, call reschedule_appointment function
 - if cancel, call cancel_appointment function  
 - if check availability, call check_calendar_availability function
The separate functions approach is generally more reliable for function calling and easier to debug in Make.com scenarios [(1) ]() .
​ To learn more, see the sources I considered: [[1] Integrate any system with custom function](https://docs.retellai.com/build/single-multi-prompt/custom-function) [[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.
j
@AI Evy and how do i make it so that my make.com scinarios can send infomation back to the retell ai such as calandar availbility
a
Thanks for the follow-up, @joesturdy. I'll get back to you soon.
### Answer To send information back to Retell AI from your Make.com scenarios, you need to understand how the response mechanism works with custom functions [(1) ]() [(2) ]() . How Retell Receives Data from Make.com: When Retell calls your custom function, it expects a response from your endpoint . Your Make.com scenario should return the calendar availability data in the HTTP response, and Retell will automatically receive this information . Response Format: The response from your Make.com webhook can be in various formats [(1) ]() : - string - buffer - JSON object - blob All these formats will be converted to string before sending to the LLM for further processing . The function result is capped at 15000 characters to prevent overloading the LLM context window . Setting Up Response Variables: You can extract values from the API response and save them as dynamic variables for use later in the conversation [(1) ]() [(2) ]() . For example, you can extract calendar availability from the response and reference it later using
{{availability_slots}}
[(1) ]() . Example Response Structure:
Copy code
json
{
 "properties": {
 "availability": {
 "available_slots": ["9:00 AM", "2:00 PM", "4:00 PM"],
 "date": "2025-08-21"
 }
 }
}
Make.com Setup: In your Make.com scenario, ensure your webhook response module returns the calendar data in JSON format. Retell will automatically process this response and make it available to the LLM for generating the agent's spoken response [(1) ]() [(2) ]() . The key point is that the response from your Make.com scenario becomes the function result that Retell uses to continue the conversation .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
​ To learn more, see the sources I considered: [[1] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) [[2] Integrate any system with custom function](https://docs.retellai.com/build/single-multi-prompt/custom-function) ​
j
@AI Evy Ok please provide me with the exact set up in retell for the check availability cancel and reschedule functions all separate im taliing code and steps
a
Thanks for the follow-up, @joesturdy. I'll get back to you soon.
### Answer Here's the exact setup for creating three separate custom functions in Retell AI for calendar operations: ## Function 1: Check Calendar Availability Steps to create: 1. Click "+ Add" in the tools section and select "Custom Function" from the dropdown menu [(1) ]() 2. Configure function details : - **Tool name**:
check_calendar_availability
(must be unique within that agent) - **Description**: "Checks availability for appointment slots" 3. **Select HTTP Method**: POST 4. **Add endpoint URL**: Your Make.com webhook URL 5. Define parameters using JSON schema format :
Copy code
json
{
  "type": "object",
  "properties": {
    "date": {
      "type": "string",
      "description": "The date to check availability for (YYYY-MM-DD format) "
    },
    "time_range": {
      "type": "string", 
      "description": "Preferred time range (e.g., 'morning', 'afternoon', 'evening') "
    }
  },
  "required": ["date"]
}
## Function 2: Cancel Appointment Steps to create: 1. Click "+ Add" in the tools section and select "Custom Function" 2. Configure function details : - **Tool name**:
cancel_appointment
- **Description**: "Cancel an existing appointment" 3. **Select HTTP Method**: POST 4. **Add endpoint URL**: Your Make.com webhook URL 5. Define parameters :
Copy code
json
{
  "type": "object",
  "properties": {
    "appointment_id": {
      "type": "string",
      "description": "The unique identifier of the appointment to cancel"
    },
    "customer_name": {
      "type": "string",
      "description": "Customer name for verification"
    },
    "reason": {
      "type": "string",
      "description": "Reason for cancellation (optional) "
    }
  },
  "required": ["appointment_id", "customer_name"]
}
## Function 3: Reschedule Appointment Steps to create: 1. Click "+ Add" in the tools section and select "Custom Function" 2. Configure function details : - **Tool name**:
reschedule_appointment
- **Description**: "Reschedule an existing appointment to a new date and time" 3. **Select HTTP Method**: POST 4. **Add endpoint URL**: Your Make.com webhook URL 5. Define parameters :
Copy code
json
{
  "type": "object",
  "properties": {
    "appointment_id": {
      "type": "string",
      "description": "The unique identifier of the appointment to reschedule"
    },
    "customer_name": {
      "type": "string",
      "description": "Customer name for verification"
    },
    "new_date": {
      "type": "string",
      "description": "New date for the appointment (YYYY-MM-DD format) "
    },
    "new_time": {
      "type": "string",
      "description": "New time for the appointment (HH:MM format) "
    }
  },
  "required": ["appointment_id", "customer_name", "new_date", "new_time"]
}
## Additional Configuration for All Functions *Set request headers (optional) * : - Add any authentication headers needed for your Make.com webhook *Set response variables (optional) * : Extract values from the API response and save them as dynamic variables for use later in the conversation . For example, you can extract availability results and reference them later using
{{available_slots}}
. Configure speech behavior : - **Speak during execution**: Enable for user-facing actions like checking availability - **Speak after execution**: Enable to let the agent tell the user the result of the function call ## Update Your Prompt Include explicit instructions in your prompt for when to invoke each custom function :
Copy code
When user requests to check availability for a specific date, call the `check_calendar_availability` function.
When user wants to cancel an existing appointment, call the `cancel_appointment` function.
When user wants to reschedule an appointment, call the `reschedule_appointment` function.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
​ To learn more, see the sources I considered: [[1] Integrate any system with custom function](https://docs.retellai.com/build/single-multi-prompt/custom-function) ​
j
@AI Evy Ok brilliant now a question i have is in theory could i just have one scinario in make.com and multiple functions in retell and then just use a router in make.com to handel each bit of info if it is a cancel go donw the cancel route and return that the meeting has been cancelled etc if so i imagine i would just use the exact same webhhok link for all the 3 functions onf cancel, check availability and reschedule etc each one returnng a response to the retell aganet Please if this is possible i wuld like to do it because it means i can just have one scinario in make.com and still have a reliable ai agent. i would liek you to outline what the scinario would look like in make.com
a
Thanks for the follow-up, @joesturdy. I'll get back to you soon.
### Answer Yes, absolutely! You can use one Make.com scenario with multiple Retell functions using the same webhook URL [(1) ]() [(2) ]() . This is a smart approach that maintains reliability while simplifying your Make.com setup. ## Retell AI Setup For all three functions, use the exact same webhook URL in the endpoint URL field . The key is that Retell sends the function name in the request body, which allows Make.com to route accordingly . Request body structure from Retell:
Copy code
json
{
  "name": "check_calendar_availability",
  "call": {...},
  "args": {...}
}
The
name
field contains the function name (check_calendar_availability, cancel_appointment, or reschedule_appointment) , which you'll use for routing in Make.com . ## Make.com Scenario Structure Here's how your single Make.com scenario would look: 1. Webhook Module (receives all function calls) - Single webhook URL used for all three Retell functions - Receives the function name in
name
field and parameters in
args
field 2. Router Module - Route 1: Filter
name
= "check_calendar_availability" - Route 2: Filter
name
= "cancel_appointment" - Route 3: Filter
name
= "reschedule_appointment" 3. Function-Specific Modules (one branch per route) - **Availability Route**: Connect to calendar API → Format available slots → Return JSON response - **Cancel Route**: Connect to calendar API → Cancel appointment → Return confirmation message - **Reschedule Route**: Connect to calendar API → Update appointment → Return confirmation 4. Response Modules (end of each route) - Each route ends with a webhook response module - Return appropriate JSON/text response back to Retell ## Response Handling Each route should return a response that Retell can process. The response can be in various formats and will be converted to string before sending to the LLM for further processing . The function result is capped at 15000 characters to prevent overloading the LLM context window . This approach gives you the reliability of separate functions in Retell while maintaining a single, organized scenario in Make.com that routes based on the function name sent in the request body .
​ To learn more, see the sources I considered: [[1] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) [[2] Integrate any system with custom function](https://docs.retellai.com/build/single-multi-prompt/custom-function) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy does anything change in the way that I set up the functions? If I would like to just have one make.com scenario that handles the functions I set up in retail AI and response to the AI agent? If not, I would like you to provide me with the perfect prompt to give to make.com's AI so that it can create this scenario for me
a
Thanks for the follow-up, @joesturdy. I'll get back to you soon.
### Answer ### Answer No, nothing changes in how you set up the functions in Retell AI [(1) ]() . You'll still create all three separate functions exactly as outlined previously, each with the same webhook URL . ## Retell AI Function Setup (No Changes) For all three functions (
check_calendar_availability
,
cancel_appointment
,
reschedule_appointment
) , use the exact same endpoint URL in the "Add endpoint URL" field . Each function keeps its unique name and parameter schema as defined earlier. ## Make.com AI Prompt Here's the perfect prompt to give to Make.com's AI to create your scenario:
Copy code
Create a Make.com scenario that handles multiple Retell AI custom function calls through a single webhook endpoint. The scenario should:

1. Start with a Webhook module that receives HTTP POST requests from Retell AI
2. The incoming webhook data structure includes:
   - "name" field containing the function name
   - "args" field containing the function parameters
   - "call" field containing call metadata

3. Add a Router module with 3 routes based on the "name" field:
   - Route 1: Filter where name equals "check_calendar_availability"
   - Route 2: Filter where name equals "cancel_appointment" 
   - Route 3: Filter where name equals "reschedule_appointment"

4. For the availability route:
   - Connect to calendar system to check available slots
   - Format response as JSON with available time slots
   - End with Webhook Response module returning the availability data

5. For the cancel route:
   - Connect to calendar system to cancel the appointment using appointment_id from args
   - End with Webhook Response module returning cancellation confirmation

6. For the reschedule route:
   - Connect to calendar system to update appointment with new date/time from args
   - End with Webhook Response module returning reschedule confirmation

Each route must end with a Webhook Response module that sends data back to Retell AI. The response should be in JSON format and contain the relevant information for the AI agent to communicate to the user.

Set up error handling for each route to return appropriate error messages if the calendar operations fail.
This approach maintains the reliability of separate functions in Retell while using a single organized Make.com scenario that routes based on the function name sent in the request .
​ To learn more, see the sources I considered: [[1] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy oh please redo the prompt to include the fact that im using google calandar. Update the steps in the pormpt accordingly
a
Thanks for the follow-up, @joesturdy. I'll get back to you soon.
### Answer Based on the sources, here's the updated Make.com AI prompt specifically for Google Calendar integration:
Copy code
Create a Make.com scenario that handles multiple Retell AI custom function calls for Google Calendar operations through a single webhook endpoint. The scenario should:

1. Start with a Webhook module that receives HTTP POST requests from Retell AI
2. The incoming webhook data structure includes:
   - "name" field containing the function name
   - "args" field containing the function parameters
   - "call" field containing call metadata

3. Add a Router module with 3 routes based on the "name" field:
   - Route 1: Filter where name equals "check_calendar_availability"
   - Route 2: Filter where name equals "cancel_appointment" 
   - Route 3: Filter where name equals "reschedule_appointment"

4. For the availability route:
   - Use Google Calendar "Search Events" module to check for existing appointments
   - Use Google Calendar "List Events" module to find available time slots
   - Format response as JSON with available time slots for the requested date
   - End with Webhook Response module returning the availability data

5. For the cancel route:
   - Use Google Calendar "Get an Event" module to find the appointment using appointment_id from args
   - Use Google Calendar "Delete an Event" module to cancel the appointment
   - End with Webhook Response module returning cancellation confirmation message

6. For the reschedule route:
   - Use Google Calendar "Get an Event" module to find the existing appointment
   - Use Google Calendar "Update an Event" module to change the date/time using new_date and new_time from args
   - End with Webhook Response module returning reschedule confirmation

7. Authentication setup:
   - Configure Google Calendar connection with OAuth 2.0
   - Ensure proper scopes for calendar read/write access

Each route must end with a Webhook Response module that sends JSON data back to Retell AI. Include error handling for each route to ret
Copy code
urn appropriate error messages if Google Calendar operations fail.

The response format should be structured JSON that the Retell AI agent can easily parse and communicate to the user.
​ To learn more, see the sources I considered: [[1] Retell direct to Google Calendar](https://discord.com/channels/1186424376300679209/1339876482213744661) [[2] Discord message from @pierre_26837 on 2024-10-16](https://discord.com/channels/1186424376300679209/1186462578310910112/1296013768827867157) [[3] Integrate any system with custom function](https://docs.retellai.com/build/single-multi-prompt/custom-function) [[4] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
This approach allows you to connect directly to Google Calendar as mentioned in the Discord discussions [(1) ]() [(2) ]() , while maintaining the same Retell AI function setup with custom functions [(3) ]() [(4) ]() .
j
@AI Evy so as this particular reminder agent is triggered by a web hook in make.com which horses through an event ID can that event ID then be used in future in this separate mate.com scenario?
a
Thanks for the follow-up, @joesturdy. I'll get back to you soon.
### Answer Based on the available sources about Retell AI webhooks and custom functions, I don't have specific information about passing event IDs between separate Make.com scenarios or how webhook-triggered agents handle external event IDs in subsequent function calls. The sources explain that Retell AI webhooks send call-related data to your endpoints [(1) ]() , and custom functions can receive parameters and return responses . However, the documentation doesn't specifically address how external event IDs from initial webhook triggers can be accessed in separate Make.com scenarios that handle Retell AI function calls. For this specific integration question about passing event IDs between Make.com scenarios, I'd recommend: Check out these potentially useful sources: - [Webhook Overview]() - [Retell AI Webhooks | AI Voice Agents With Live Data | Retell AI]() - [Webhook]() Would you like me to try to answer generally based on my knowledge instead?
​ To learn more, see the sources I considered: [[1] Webhook Overview](https://docs.retellai.com/features/webhook-overview) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy if the AI agent is passed through a event ID as a variable when it is called from a make.com scenario can that event ID fair will be used with a new mate.com scenario?
a
Thanks for the follow-up, @joesturdy. I'll get back to you soon.
### Answer ### Answer Based on the available sources, I don't have specific information about how event IDs passed as variables to Retell AI agents can be accessed in separate Make.com scenarios for custom functions. The sources show that when Retell AI calls custom functions, it sends data in this structure [(1) ]() :
Copy code
json
{
  "name": "function_name",
  "call": {...},
  "args": {...}
}
However, the documentation doesn't specify how external variables like event IDs from the initial agent trigger are made available to subsequent custom function calls in separate Make.com scenarios. For this specific integration question about accessing event IDs across different Make.com scenarios when working with Retell AI agents, I'd recommend: Check out these potentially useful sources: - [LLM WebSocket]() Would you like me to try to answer generally based on my knowledge instead?
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
​ To learn more, see the sources I considered: [[1] LLM WebSocket](https://docs.retellai.com/api-references/llm-websocket) ​
j
@AI Evy can retail AI agents sent back variables that were originally sent to them via a web hook?
a
Thanks for the follow-up, @joesturdy. I'll get back to you soon.
### Answer ### Answer Based on the available sources, I don't have specific information about how Retell AI agents can send back variables that were originally sent to them via webhooks. The sources show that webhooks send data to Retell AI agents [(1) ]() , and that dynamic variables can be passed to agents for outbound calls using the
retell_llm_dynamic_variables
field [(2) ]() . For inbound calls, the inbound call webhook can be used to set dynamic variables and override agent settings [(3) ]() . However, the documentation doesn't specifically address how agents can return or send back the original variables that were provided to them via webhooks in subsequent function calls or responses. For this specific question about variable persistence and return functionality in webhook-triggered scenarios, I'd recommend: Check out these potentially useful sources: - [Inbound call webhook]() - [Dynamic Variables]() - [Retell AI Webhooks | AI Voice Agents With Live Data | Retell AI]() Would you like me to try to answer generally based on my knowledge instead?
​ To learn more, see the sources I considered: [[1] Retell AI Webhooks | AI Voice Agents With Live Data | Retell AI](https://www.retellai.com/blog/retell-ai-webhooks-feature) [[2] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[3] Inbound call webhook](https://docs.retellai.com/features/inbound-call-webhook) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy answer basedon genereal noylage
a
Thanks for the follow-up, @joesturdy. I'll get back to you soon.
### Answer ### Answer Based on general knowledge, yes - Retell AI agents can access and use variables that were originally sent to them, including event IDs, in subsequent custom function calls. How this typically works: 1. **Variable Persistence**: When you pass dynamic variables to a Retell agent (like an event ID) , those variables remain accessible throughout the call session [(1) ]() 2. **Function Parameter Passing**: In your custom functions, you can include the event ID as a parameter in the function schema, and the agent can populate it from the stored dynamic variables 3. **Cross-Scenario Access**: The event ID can be sent from the agent to your Make.com custom function scenario as part of the function call payload Practical Implementation: When setting up your custom functions, you could add the event ID as a parameter:
Copy code
json
{
  "type": "object",
  "properties": {
    "event_id": {
      "type": "string",
      "description": "The Google Calendar event ID for this appointment"
    },
    "action": {
      "type": "string", 
      "description": "The action to perform (check, cancel, reschedule) "
    }
  },
  "required": ["event_id"]
}
Then in your prompt, instruct the agent to use the event ID variable:
Copy code
When calling calendar functions, always include the event ID: {{event_id}}
This way, the same event ID that triggered the initial webhook can be used in your separate Make.com scenario that handles the custom functions.
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy Ok brill lets update the code for the functions we are setting up in retell to incldue this . I will make sure that the event ID is sent to the agent that will have function set up to trigger the scenario that will need the event ID to cancel events etc
a
Thanks for the follow-up, @joesturdy. I'll get back to you soon.
### Answer Here's the updated function setup code for Retell AI that includes the event ID parameter for all three functions: ## Function 1: Check Calendar Availability (Updated) Steps to create: 1. Click "+ Add" in the tools section and select "Custom Function" from the dropdown menu [(1) ]() 2. Configure function details : - **Tool name**:
check_calendar_availability
- **Description**: "Checks availability for appointment slots using event ID context" 3. **Select HTTP Method**: POST 4. **Add endpoint URL**: Your Make.com webhook URL 5. Define parameters using JSON schema format :
Copy code
json
{
  "type": "object",
  "properties": {
    "event_id": {
      "type": "string",
      "description": "The Google Calendar event ID for context"
    },
    "date": {
      "type": "string",
      "description": "The date to check availability for (YYYY-MM-DD format) "
    },
    "time_range": {
      "type": "string",
      "description": "Preferred time range (e.g., 'morning', 'afternoon', 'evening') "
    }
  },
  "required": ["event_id", "date"]
}
## Function 2: Cancel Appointment (Updated) Steps to create: 1. Click "+ Add" in the tools section and select "Custom Function" 2. Configure function details : - **Tool name**:
cancel_appointment
- **Description**: "Cancel an existing appointment using event ID" 3. **Select HTTP Method**: POST 4. **Add endpoint URL**: Your Make.com webhook URL 5. Define parameters :
Copy code
json
{
  "type": "object",
  "properties": {
    "event_id": {
      "type": "string",
      "description": "The Google Calendar event ID of the appointment to cancel"
    },
    "customer_name": {
      "type": "string",
      "description": "Customer name for verification"
    },
    "reason": {
      "type": "string",
      "description": "Reason for cancellation (optional) "
    }
  },
  "required": ["event_id", "customer_name"]
}
## Function 3: Reschedule Appointment (Updated) Steps to create: 1. Click "+ Add" in the tools section and select "Custom Function" 2. Configure function details : - **Tool name**:
reschedule_appointment
- **Description**: "Reschedule an existing appointment using event ID" 3. **Select HTTP Method**: POST 4. **Add endpoint URL**: Your Make.com webhook URL 5. Define parameters :
Copy code
json
{
  "type": "object",
  "properties": {
    "event_id": {
      "type": "string",
      "description": "The Google Calendar event ID of the appointment to reschedule"
    },
    "customer_name": {
      "type": "string",
      "description": "Customer name for verification"
    },
    "new_date": {
      "type": "string",
      "description": "New date for the appointment (YYYY-MM-DD format) "
    },
    "new_time": {
      "type": "string",
      "description": "New time for the appointment (HH:MM format) "
    }
  },
  "required": ["event_id", "customer_name", "new_date", "new_time"]
}
## Updated Prompt Instructions Include these instructions in your agent prompt to ensure the event ID is always passed :
Copy code
When calling any calendar function, always include the event ID using the dynamic variable {{event_id}}.

When user requests to check availability, call the `check_calendar_availability` function with the event ID.
When user wants to cancel an existing appointment, call the `cancel_appointment` function with the event ID.
When user wants to reschedule an appointment, call the `reschedule_appointment` function with the event ID.
This ensures that the event ID passed to your agent via webhook will be included in all function calls to your Make.com scenario, allowing you to perform the appropriate Google Calendar operations using the same event context.
​ To learn more, see the sources I considered: [[1] Integrate any system with custom function](https://docs.retellai.com/build/single-multi-prompt/custom-function) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy lets make sire to rewrite this code for each function jsut to include what it needs to give my make.com workflow the info it needs to execute canceling, rescheduling or chacking availability i see you have included the customers name which isnt needed if you have the exact id surely
a
Thanks for the follow-up, @joesturdy. I'll get back to you soon.
### Answer You're absolutely right - if you have the exact event ID, you don't need customer name for verification. Here are the streamlined function parameters that include only what your Make.com workflow needs: ## Function 1: Check Calendar Availability (Streamlined) Function Setup: [(1) ]() [(2) ]() - **Tool name**:
check_calendar_availability
- **Description**: "Checks availability for appointment slots" - **HTTP Method**: POST - **Endpoint URL**: Your Make.com webhook URL Parameters:
Copy code
json
{
  "type": "object",
  "properties": {
    "event_id": {
      "type": "string",
      "description": "The Google Calendar event ID for context"
    },
    "date": {
      "type": "string",
      "description": "The date to check availability for (YYYY-MM-DD format) "
    },
    "duration": {
      "type": "number",
      "description": "Duration needed in minutes (e.g., 30, 60) "
    }
  },
  "required": ["event_id", "date"]
}
## Function 2: Cancel Appointment (Streamlined) Function Setup: - **Tool name**:
cancel_appointment
- **Description**: "Cancel an existing appointment using event ID" - **HTTP Method**: POST - **Endpoint URL**: Your Make.com webhook URL Parameters:
Copy code
json
{
  "type": "object",
  "properties": {
    "event_id": {
      "type": "string",
      "description": "The Google Calendar event ID of the appointment to cancel"
    }
  },
  "required": ["event_id"]
}
## Function 3: Reschedule Appointment (Streamlined) Function Setup: - **Tool name**:
reschedule_appointment
- **Description**: "Reschedule an existing appointment using event ID" - **HTTP Method**: POST - **Endpoint URL**: Your Make.com webhook URL Parameters:
Copy code
json
{
  "type": "object",
  "properties": {
    "event_id": {
      "type": "string",
      "description": "The Google Calendar event ID of the appointment to reschedule"
    },
    "new_date": {
      "type": "string",
      "description": "New date for the appointment (YYYY-MM-DD format) "
    },
    "new_time": {
      "type": "string",
      "description": "New time for the appointment (HH:MM format) "
    }
  },
  "required": ["event_id", "new_date", "new_time"]
}
This streamlined approach gives your Make.com workflow exactly what it needs - the event ID to identify the specific Google Calendar event, plus only the essential parameters for each operation [(3) ]() .
​ To learn more, see the sources I considered: [[1] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) [[2] Integrate any system with custom function](https://docs.retellai.com/build/single-multi-prompt/custom-function) [[3] Retell direct to Google Calendar](https://discord.com/channels/1186424376300679209/1339876482213744661) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy I dont want them being able to chose the amout of time for a meetign as that is already dicated based on the kind of call they booked in the first place they just should be able to move it please update code for functions.
a
Thanks for the follow-up, @joesturdy. I'll get back to you soon.
### Answer ### Answer You're right - since the meeting duration is already determined by the original booking type, we should remove the duration parameter. Here are the updated function parameters: ## Function 1: Check Calendar Availability (Final) Function Setup: [(1) ]() [(2) ]() - **Tool name**:
check_calendar_availability
- **Description**: "Checks availability for appointment slots" - **HTTP Method**: POST - **Endpoint URL**: Your Make.com webhook URL Parameters:
Copy code
json
{
  "type": "object",
  "properties": {
    "event_id": {
      "type": "string",
      "description": "The Google Calendar event ID for context"
    },
    "date": {
      "type": "string",
      "description": "The date to check availability for (YYYY-MM-DD format) "
    }
  },
  "required": ["event_id", "date"]
}
## Function 2: Cancel Appointment (Final) Function Setup: - **Tool name**:
cancel_appointment
- **Description**: "Cancel an existing appointment using event ID" - **HTTP Method**: POST - **Endpoint URL**: Your Make.com webhook URL Parameters:
Copy code
json
{
  "type": "object",
  "properties": {
    "event_id": {
      "type": "string",
      "description": "The Google Calendar event ID of the appointment to cancel"
    }
  },
  "required": ["event_id"]
}
## Function 3: Reschedule Appointment (Final) Function Setup: - **Tool name**:
reschedule_appointment
- **Description**: "Reschedule an existing appointment using event ID" - **HTTP Method**: POST - **Endpoint URL**: Your Make.com webhook URL Parameters:
Copy code
json
{
  "type": "object",
  "properties": {
    "event_id": {
      "type": "string",
      "description": "The Google Calendar event ID of the appointment to reschedule"
    },
    "new_date": {
      "type": "string",
      "description": "New date for the appointment (YYYY-MM-DD format) "
    },
    "new_time": {
      "type": "string",
      "description": "New time for the appointment (HH:MM format) "
    }
  },
  "required": ["event_id", "new_date", "new_time"]
}
This streamlined approach ensures your Make.com workflow receives only the essential information needed - the event ID to identify the specific appointment, and the new scheduling details when needed, while preserving the original meeting duration from the initial booking [(3) ]() .
​ To learn more, see the sources I considered: [[1] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) [[2] Integrate any system with custom function](https://docs.retellai.com/build/single-multi-prompt/custom-function) [[3] Reschedule and Cancel Appointments](https://discord.com/channels/1186424376300679209/1327183426297663528) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy ok now what im worredi about is that teh varibles get passed into retell as teh keys "eventID" and "name". does the code we have in our functions have to match to be sent to a new scinario?
a
Thanks for the follow-up, @joesturdy. I'll get back to you soon.
### Answer ### Answer You don't need to match the exact variable names between your dynamic variables and function parameters. Here's how it works: Dynamic Variables vs Function Parameters are separate: 1. Dynamic Variables come into Retell as
eventID
and
name
and are referenced in prompts using
{{eventID}}
and
{{name}}
[(1) ]() 2. Function Parameters are defined in your JSON schema and can have different names like
event_id
[(2) ]() How to connect them: In your agent prompt, you instruct the AI to use the dynamic variables when calling functions:
Copy code
When calling calendar functions, always use:
- event_id: {{eventID}} 
- customer_name: {{name}}
Your Make.com scenario will receive: When Retell calls your custom function, the request body structure will be :
Copy code
json
{
  "name": "cancel_appointment",
  "call": {...},
  "args": {
    "event_id": "the_actual_event_id_value",
    "new_date": "2025-01-15",
    "new_time": "14:00"
  }
}
So your Make.com scenario should look for the parameter names you defined in your function schema (
event_id
,
new_date
,
new_time
) in the
args
object, not the original dynamic variable names (
eventID
,
name
) . The agent automatically maps
{{eventID}}
to the
event_id
parameter when making the function call based on your prompt instructions.
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[2] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
Ok but i wouldent have to clarify that if we jsut edited the existing functions correct? so lest just redo them so everything matches
@AI Evy Ok but i wouldent have to clarify that if we jsut edited the existing functions correct? so lest just redo them so everything matches
a
Thanks for the follow-up, @joesturdy. I'll get back to you soon.
### Answer You're absolutely right! If we match the parameter names to your existing dynamic variable names (
eventID
and
name
) , you won't need to add mapping instructions in the prompt. Here are the updated functions with matching names: ## Function 1: Check Calendar Availability (Matching Variables) Function Setup: [(1) ]() [(2) ]() - **Tool name**:
check_calendar_availability
- **Description**: "Checks availability for appointment slots" - **HTTP Method**: POST - **Endpoint URL**: Your Make.com webhook URL Parameters:
Copy code
json
{
  "type": "object",
  "properties": {
    "eventID": {
      "type": "string",
      "description": "The Google Calendar event ID for context"
    },
    "date": {
      "type": "string",
      "description": "The date to check availability for (YYYY-MM-DD format) "
    }
  },
  "required": ["eventID", "date"]
}
[(1) ]() , [(2) ]() ## Function 2: Cancel Appointment (Matching Variables) Function Setup: - **Tool name**:
cancel_appointment
- **Description**: "Cancel an existing appointment using event ID" - **HTTP Method**: POST - **Endpoint URL**: Your Make.com webhook URL Parameters:
Copy code
json
{
  "type": "object",
  "properties": {
    "eventID": {
      "type": "string",
      "description": "The Google Calendar event ID of the appointment to cancel"
    }
  },
  "required": ["eventID"]
}
[(1) ]() , [(2) ]() ## Function 3: Reschedule Appointment (Matching Variables) Function Setup: - **Tool name**:
reschedule_appointment
- **Description**: "Reschedule an existing appointment using event ID" - **HTTP Method**: POST - **Endpoint URL**: Your Make.com webhook URL Parameters:
Copy code
json
{
  "type": "object",
  "properties": {
    "eventID": {
      "type": "string",
      "description": "The Google Calendar event ID of the appointment to reschedule"
    },
    "new_date": {
      "type": "string",
      "description": "New date for the appointment (YYYY-MM-DD format) "
    },
    "new_time": {
      "type": "string",
      "description": "New time for the appointment (HH:MM format) "
    }
  },
  "required": ["eventID", "new_date", "new_time"]
}
[(1) ]() , [(2) ]() Now your Make.com scenario will receive the
eventID
parameter directly matching your dynamic variable name, and the agent can automatically use
{{eventID}}
and
{{name}}
without needing explicit mapping instructions in the prompt [(3) ]() .
​ To learn more, see the sources I considered: [[1] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) [[2] Integrate any system with custom function](https://docs.retellai.com/build/single-multi-prompt/custom-function) [[3] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy terribly sorry and i want the appointments to be called meetings in the functions
a
Thanks for the follow-up, @joesturdy. I'll get back to you soon.
### Answer Here are the updated functions with "meetings" terminology instead of "appointments": ## Function 1: Check Calendar Availability (Updated Terminology) Function Setup: [(1) ]() , [(2) ]() - **Tool name**:
check_calendar_availability
- **Description**: "Checks availability for meeting slots" - **HTTP Method**: POST - **Endpoint URL**: Your Make.com webhook URL Parameters:
Copy code
json
{
  "type": "object",
  "properties": {
    "eventID": {
      "type": "string",
      "description": "The Google Calendar event ID for context"
    },
    "date": {
      "type": "string",
      "description": "The date to check availability for (YYYY-MM-DD format) "
    }
  },
  "required": ["eventID", "date"]
}
[(1) ]() , [(2) ]() ## Function 2: Cancel Meeting (Updated Terminology) Function Setup: - **Tool name**:
cancel_meeting
- **Description**: "Cancel an existing meeting using event ID" - **HTTP Method**: POST - **Endpoint URL**: Your Make.com webhook URL Parameters:
Copy code
json
{
  "type": "object",
  "properties": {
    "eventID": {
      "type": "string",
      "description": "The Google Calendar event ID of the meeting to cancel"
    }
  },
  "required": ["eventID"]
}
[(1) ]() , [(2) ]() ## Function 3: Reschedule Meeting (Updated Terminology) Function Setup: - **Tool name**:
reschedule_meeting
- **Description**: "Reschedule an existing meeting using event ID" - **HTTP Method**: POST - **Endpoint URL**: Your Make.com webhook URL Parameters:
Copy code
json
{
  "type": "object",
  "properties": {
    "eventID": {
      "type": "string",
      "description": "The Google Calendar event ID of the meeting to reschedule"
    },
    "new_date": {
      "type": "string",
      "description": "New date for the meeting (YYYY-MM-DD format) "
    },
    "new_time": {
      "type": "string",
      "description": "New time for the meeting (HH:MM format) "
    }
  },
  "required": ["eventID", "new_date", "new_time"]
}
[(1) ]() , [(2) ]() Now all your functions use "meeting" terminology and match your dynamic variable names (
eventID
) for seamless integration with your Make.com scenarios [(1) ]() , [(2) ]() .
​ To learn more, see the sources I considered: [[1] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) [[2] Integrate any system with custom function](https://docs.retellai.com/build/single-multi-prompt/custom-function) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy Oh and use united kingdom time in functions
a
Thanks for the follow-up, @joesturdy. I'll get back to you soon.
### Answer Here are the updated functions with UK time specified in the parameters: ## Function 1: Check Calendar Availability (UK Time) Function Setup: [(1) ]() , [(2) ]() - **Tool name**:
check_calendar_availability
- **Description**: "Checks availability for meeting slots in UK time" - **HTTP Method**: POST - **Endpoint URL**: Your Make.com webhook URL Parameters:
Copy code
json
{
  "type": "object",
  "properties": {
    "eventID": {
      "type": "string",
      "description": "The Google Calendar event ID for context"
    },
    "date": {
      "type": "string",
      "description": "The date to check availability for in UK time (YYYY-MM-DD format) "
    }
  },
  "required": ["eventID", "date"]
}
[(1) ]() , [(2) ]() ## Function 2: Cancel Meeting (UK Time) Function Setup: - **Tool name**:
cancel_meeting
- **Description**: "Cancel an existing meeting using event ID in UK time" - **HTTP Method**: POST - **Endpoint URL**: Your Make.com webhook URL Parameters:
Copy code
json
{
  "type": "object",
  "properties": {
    "eventID": {
      "type": "string",
      "description": "The Google Calendar event ID of the meeting to cancel"
    }
  },
  "required": ["eventID"]
}
[(1) ]() , [(2) ]() ## Function 3: Reschedule Meeting (UK Time) Function Setup: - **Tool name**:
reschedule_meeting
- **Description**: "Reschedule an existing meeting using event ID in UK time" - **HTTP Method**: POST - **Endpoint URL**: Your Make.com webhook URL Parameters:
​ To learn more, see the sources I considered: [[1] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) [[2] Integrate any system with custom function](https://docs.retellai.com/build/single-multi-prompt/custom-function) ​
Copy code
json
{
  "type": "object",
  "properties": {
    "eventID": {
      "type": "string",
      "description": "The Google Calendar event ID of the meeting to reschedule"
    },
    "new_date": {
      "type": "string",
      "description": "New date for the meeting in UK time (YYYY-MM-DD format) "
    },
    "new_time": {
      "type": "string",
      "description": "New time for the meeting in UK time (HH:MM format, 24-hour) "
    }
  },
  "required": ["eventID", "new_date", "new_time"]
}
[(1) ]() , [(2) ]() Now all your functions specify UK time in the descriptions, ensuring your Make.com scenarios will handle the time zone correctly when processing the meeting operations [(1) ]() , [(2) ]() .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy lets do the format in DD-MM-YYYY or is that a problem doing it that way i just thing it is easier to understand for someone
a
Thanks for the follow-up, @joesturdy. I'll get back to you soon.
### Answer [(1) ]() , [(2) ]() Using DD-MM-YYYY format is fine for your functions - it's just a matter of updating the parameter descriptions to specify the format clearly. Here are your updated functions with UK date format: ## Function 1: Check Calendar Availability (UK Format) Function Setup: [(1) ]() , [(2) ]() - **Tool name**:
check_calendar_availability
- **Description**: "Checks availability for meeting slots in UK time" - **HTTP Method**: POST - **Endpoint URL**: Your Make.com webhook URL Parameters:
Copy code
json
{
  "type": "object",
  "properties": {
    "eventID": {
      "type": "string",
      "description": "The Google Calendar event ID for context"
    },
    "date": {
      "type": "string",
      "description": "The date to check availability for in UK time (DD-MM-YYYY format) "
    }
  },
  "required": ["eventID", "date"]
}
[(1) ]() , [(2) ]() ## Function 2: Cancel Meeting (UK Format) Function Setup: - **Tool name**:
cancel_meeting
- **Description**: "Cancel an existing meeting using event ID in UK time" - **HTTP Method**: POST - **Endpoint URL**: Your Make.com webhook URL Parameters:
Copy code
json
{
  "type": "object",
  "properties": {
    "eventID": {
      "type": "string",
      "description": "The Google Calendar event ID of the meeting to cancel"
    }
  },
  "required": ["eventID"]
}
[(1) ]() , [(2) ]() ## Function 3: Reschedule Meeting (UK Format) Function Setup: - **Tool name**:
reschedule_meeting
- **Description**: "Reschedule an existing meeting using event ID in UK time" - **HTTP Method**: POST - **Endpoint URL**: Your Make.com webhook URL Parameters:
Copy code
json
{
  "type": "object",
  "properties": {
    "eventID": {
      "type": "string",
      "description": "The Google Calendar event ID of the meeting to reschedule"
    },
    "new_date": {
      "type": "string",
      "description": "New date for the meeting in UK time (DD-MM-YYYY format) "
    },
    "new_time": {
      "type": "string",
      "description": "New time for the meeting in UK time (HH:MM format, 24-hour) "
    }
  },
  "required": ["eventID", "new_date", "new_time"]
}
[(1) ]() , [(2) ]() The DD-MM-YYYY format is perfectly fine to use - just make sure your Make.com scenario is set up to parse dates in this format when processing the function calls [(1) ]() , [(2) ]() .
​ To learn more, see the sources I considered: [[1] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) [[2] Integrate any system with custom function](https://docs.retellai.com/build/single-multi-prompt/custom-function) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
Thanks for the follow-up, @joesturdy. I'll get back to you soon.
j
@AI Evy now please create the perfect for my make .com ai to create a scinario that will work seamlessly with those functions and varibles. That will enabe a user to speak to the reminder agent in readl time and excute rescheduling, canceling or checking availability and returning the various infor via webhooks. please be very specific so that it can one shot it.
a
### Answer Here's the complete Make.com scenario blueprint to work seamlessly with your three Retell AI custom functions: ## Make.com Scenario Setup (One-Shot Configuration) ### Step 1: Create Single Webhook Trigger 1. **Add Webhook Module**: "Webhooks > Custom Webhook" 2. **Generate Webhook URL**: Copy this URL to use in all three Retell AI functions 3. **Set Data Structure**: Create with these fields: -
name
(text) -
call
(collection) -
args
(collection) -
eventID
(text) -
date
(text) -
new_date
(text) -
new_time
(text) ### Step 2: Add Router to Handle All Three Functions 1. Add Router Module after webhook 2. **Create 3 Routes**: - Route 1:
check_calendar_availability
- Route 2:
cancel_meeting
- Route 3:
reschedule_meeting
### Step 3: Configure Route Filters Route 1 Filter (Check Availability) : - Condition:
{{1.name}}
Text operator "Equal to"
check_calendar_availability
Route 2 Filter (Cancel Meeting) : - Condition:
{{1.name}}
Text operator "Equal to"
cancel_meeting
Route 3 Filter (Reschedule Meeting) : - Condition:
{{1.name}}
Text operator "Equal to"
reschedule_meeting
### Step 4: Google Calendar Modules for Each Route Route 1 - Check Availability: 1. Google Calendar > Search Events - Calendar ID:
primary
(or your specific calendar) - Time Min:
{{1.args.date}}T00:00:00+00:00
- Time Max:
{{1.args.date}}T23:59:59+00:00
- Single Events:
true
2. HTTP > Make a Request (Return to Retell) - URL: ` - Method:
POST
- Headers:
Content-Type: application/json
- Body Type:
Raw
- Body:
Copy code
json
{
  "available_slots": "{{join(2.items.summary; ', ') }}",
  "date_checked": "{{1.args.date}}",
  "total_events": "{{length(2.items) }}"
}
Copy code
json
{
  "status": "error",
  "message": "{{2.message}}",
  "function": "{{1.name}}"
}
### Step 6: Webhook URL Configuration Use the SAME webhook URL from Step 1 in ALL three Retell AI functions: -
check_calendar_availability
endpoint URL -
cancel_meeting
endpoint URL -
reschedule_meeting
endpoint URL This single scenario handles all three functions by using the
name
field to route to the appropriate Google Calendar action and returns structured responses back to Retell AI for seamless real-time conversation flow [(3) ]() , [(1) ]() , [(2) ]() .
[(1) ]() , [(2) ]() Route 2 - Cancel Meeting: 1. Google Calendar > Delete an Event - Calendar ID:
primary
- Event ID:
{{1.args.eventID}}
2. HTTP > Make a Request (Return to Retell) - URL: ` - Method:
POST
- Headers:
Content-Type: application/json
- Body Type:
Raw
- Body:
Copy code
json
{
  "status": "cancelled",
  "event_id": "{{1.args.eventID}}",
  "message": "Meeting successfully cancelled"
}
[(1) ]() , [(2) ]() Route 3 - Reschedule Meeting: 1. Google Calendar > Update an Event - Calendar ID:
primary
- Event ID:
{{1.args.eventID}}
- Start Date/Time:
{{1.args.new_date}}T{{1.args.new_time}}:00+00:00
- End Date/Time:
{{addHours(parseDate(1.args.new_date + "T" + 1.args.new_time + ":00+00:00"; "DD-MM-YYYYTHH:mm:ssZ") ; 1) }}
2. HTTP > Make a Request (Return to Retell) - URL: ` - Method:
POST
- Headers:
Content-Type: application/json
- Body Type:
Raw
- Body:
Copy code
json
{
  "status": "rescheduled",
  "event_id": "{{1.args.eventID}}",
  "new_date": "{{1.args.new_date}}",
  "new_time": "{{1.args.new_time}}",
  "message": "Meeting successfully rescheduled"
}
[(1) ]() , [(2) ]() ### Step 5: Error Handling (Add to Each Route) 1. Add Error Handler to each Google Calendar module 2. HTTP > Make a Request (Error Response) - Body:
​ To learn more, see the sources I considered: [[1] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) [[2] Integrate any system with custom function](https://docs.retellai.com/build/single-multi-prompt/custom-function) [[3] Voice API: Integrate Phone AI Agents with Your System | Retell AI](https://www.retellai.com/blog/how-to-integrate-phone-ai-agents-with-your-existing-api-systems) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy Is there anyt info is this pormpt that you need me to clarify to make it better the name of the calandar is Askar Research and the webhook to return info to surely is just the same one that gave the info in the first place into the scinario.
a
Thanks for the follow-up, @joesturdy. I'll get back to you soon.
### Answer Based on the available sources, I need to clarify a few important points about webhook responses in Retell AI: Webhook Response Clarification: You're correct that the webhook response should go back through the same endpoint, but there's an important distinction. When Retell AI calls your custom function, it expects a direct HTTP response from your Make.com scenario [(1) ]() . You don't need to make a separate API call back to Retell AI. Updated Make.com Configuration with Calendar Name: ### Step 1: Google Calendar Module Updates Replace
primary
with your specific calendar: - Calendar ID:
Askar Research
(or the exact calendar ID from Google) ### Step 2: Webhook Response Structure Instead of making HTTP requests back to Retell AI, your Make.com scenario should simply return the response directly. Here's the corrected approach: Route 1 - Check Availability Response:
Copy code
json
{
  "available_slots": "{{join(2.items.summary; ', ') }}",
  "date_checked": "{{1.args.date}}",
  "calendar": "Askar Research",
  "total_events": "{{length(2.items) }}"
}
Route 2 - Cancel Meeting Response:
Copy code
json
{
  "status": "cancelled",
  "event_id": "{{1.args.eventID}}",
  "calendar": "Askar Research",
  "message": "Meeting successfully cancelled from Askar Research calendar"
}
Route 3 - Reschedule Meeting Response:
Copy code
json
{
  "status": "rescheduled", 
  "event_id": "{{1.args.eventID}}",
  "new_date": "{{1.args.new_date}}",
  "new_time": "{{1.args.new_time}}",
  "calendar": "Askar Research",
  "message": "Meeting successfully rescheduled in Askar Research calendar"
}
Key Point: Remove the separate HTTP modules I mentioned earlier. Your Make.com scenario should end with the Google Calendar action and return the JSON response directly - Retell AI will automatically receive this as the function response [(2) ]() .
​ To learn more, see the sources I considered: [[1] Setup guide](https://docs.retellai.com/features/register-webhook) [[2] Custom function webhook](https://discord.com/channels/1186424376300679209/1361887355916648599) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy ok please update the prompt
a
Thanks for the follow-up, @joesturdy. I'll get back to you soon.
### Answer ### Answer Here's the complete updated Make.com scenario configuration with "Askar Research" calendar and proper webhook response structure: ## Make.com Scenario Setup (Updated - One-Shot Configuration) ### Step 1: Create Single Webhook Trigger 1. **Add Webhook Module**: "Webhooks > Custom Webhook" 2. **Generate Webhook URL**: Copy this URL to use in all three Retell AI functions 3. **Set Data Structure**: Create with these fields: -
name
(text) -
call
(collection) -
args
(collection) -
eventID
(text) -
date
(text) -
new_date
(text) -
new_time
(text) ### Step 2: Add Router to Handle All Three Functions 1. Add Router Module after webhook 2. **Create 3 Routes**: - Route 1:
check_calendar_availability
- Route 2:
cancel_meeting
- Route 3:
reschedule_meeting
### Step 3: Configure Route Filters Route 1 Filter (Check Availability) : - Condition:
{{1.name}}
Text operator "Equal to"
check_calendar_availability
Route 2 Filter (Cancel Meeting) : - Condition:
{{1.name}}
Text operator "Equal to"
cancel_meeting
Route 3 Filter (Reschedule Meeting) : - Condition:
{{1.name}}
Text operator "Equal to"
reschedule_meeting
### Step 4: Google Calendar Modules for Each Route Route 1 - Check Availability: 1. Google Calendar > Search Events - Calendar ID:
Askar Research
(or the exact Google Calendar ID) - Time Min:
{{1.args.date}}T00:00:00+00:00
- Time Max:
{{1.args.date}}T23:59:59+00:00
- Single Events:
true
2. Webhook Response (Direct JSON return) :
Copy code
json
{
  "available_slots": "{{join(2.items.summary; ', ') }}",
  "date_checked": "{{1.args.date}}",
  "calendar": "Askar Research",
  "total_events": "{{length(2.items) }}",
  "message": "Availability checked for Askar Research calendar"
}
Route 2 - Cancel Meeting: 1. Google Calendar > Delete an Event - Calendar ID:
Askar Research
- Event ID:
{{1.args.eventID}}
2. Webhook Response (Direct JSON return) :
Copy code
json
{
  "status": "cancelled",
  "event_id": "{{1.args.eventID}}",
  "calendar": "Askar Research",
  "message": "Meeting successfully cancelled from Askar Research calendar"
}
Route 3 - Reschedule Meeting: 1. Google Calendar > Update an Event - Calendar ID:
Askar Research
- Event ID:
{{1.args.eventID}}
- Start Date/Time:
{{1.args.new_date}}T{{1.args.new_time}}:00+00:00
- End Date/Time:
{{addHours(parseDate(1.args.new_date + "T" + 1.args.new_time + ":00+00:00"; "DD-MM-YYYYTHH:mm:ssZ") ; 1) }}
2. Webhook Response (Direct JSON return) :
Copy code
json
{
  "status": "rescheduled",
  "event_id": "{{1.args.eventID}}",
  "new_date": "{{1.args.new_date}}",
  "new_time": "{{1.args.new_time}}",
  "calendar": "Askar Research", 
  "message": "Meeting successfully rescheduled in Askar Research calendar"
}
### Step 5: Error Handling (Add to Each Route) 1. Add Error Handler to each Google Calendar module 2. Error Response (Direct JSON return) :
Copy code
json
{
  "status": "error",
  "message": "{{2.message}}",
  "function": "{{1.name}}",
  "calendar": "Askar Research"
}
​ To learn more, see the sources I considered: [[1] Integrate any system with custom function](https://docs.retellai.com/build/single-multi-prompt/custom-function) [[2] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
### Key Changes Made: - Updated calendar references to "Askar Research" [(1) ]() - Removed separate HTTP modules - responses return directly through the webhook [(2) ]() - Added calendar identification in all responses - The same webhook URL handles all three functions using the router logic [(1) ]() [(2) ]() This configuration ensures your Retell AI agent receives immediate responses for real-time conversation flow with your Askar Research calendar .
j
@AI Evy can all the responses simply be in text?
a
Thanks for the follow-up, @joesturdy. I'll get back to you soon.
### Answer Yes, absolutely! All responses can be in simple text format. According to the documentation, Retell AI accepts various response formats and converts them all to string before sending to the LLM [(1) ]() [(2) ]() . Here are your updated Make.com webhook responses in simple text format: Route 1 - Check Availability Response:
Copy code
Available slots for {{1.args.date}} in Askar Research calendar: {{join(2.items.summary; ', ') }}. Total events found: {{length(2.items) }}
Route 2 - Cancel Meeting Response:
Copy code
Meeting {{1.args.eventID}} successfully cancelled from Askar Research calendar
Route 3 - Reschedule Meeting Response:
Copy code
Meeting {{1.args.eventID}} successfully rescheduled to {{1.args.new_date}} at {{1.args.new_time}} in Askar Research calendar
Error Response:
Copy code
Error processing {{1.name}} request: {{2.message}}
The documentation confirms that responses can be in string, buffer, JSON object, or blob format, and all formats will be converted to string before sending to the LLM for further processing . Text responses are often easier for the AI agent to understand and relay to callers naturally.
​ To learn more, see the sources I considered: [[1] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) [[2] Integrate any system with custom function](https://docs.retellai.com/build/single-multi-prompt/custom-function) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy how would you structure the web hook response for each of the functions for the AI reminder agent? Should I use ChatGPT modules within the check availability route so that I can simply send natural language back to retail AI just like the council meeting route and reschedule route?
a
Thanks for the follow-up, @joesturdy. I'll get back to you soon.
### Answer I don't have specific documentation about webhook response structures for custom functions in the provided sources. However, based on the general webhook concepts covered, I can provide some guidance. For your AI reminder agent webhook responses, here's how I'd recommend structuring them: ## Recommended Webhook Response Structure Check Availability Route: Yes, using a ChatGPT module for the check availability route is a good approach. This would allow you to: 1. Process the calendar search results 2. Format them into natural language 3. Return conversational responses like: "I found 3 available slots on [date]: 9:00 AM, 2:00 PM, and 4:30 PM. Which time works best for you?" Cancel Meeting Route: Simple text response:
Copy code
Meeting successfully cancelled from your Askar Research calendar. You'll receive a confirmation shortly.
Reschedule Meeting Route: Simple text response:
Copy code
Your meeting has been rescheduled to [new_date] at [new_time]. Calendar updated successfully.
## Benefits of Using ChatGPT Module for Availability The check availability function benefits most from natural language processing because: - It needs to interpret multiple time slots - Should provide context about availability patterns - Can offer suggestions based on the results - Makes the conversation flow more naturally The cancel and reschedule functions are more straightforward confirmations that work well as simple text responses [(1) ]() [(2) ]() . Unfortunately, I don't have the specific technical implementation details for custom function webhook responses in the available sources. For the exact webhook response format and ChatGPT module integration steps, you might want to check the complete custom function documentation.
​ To learn more, see the sources I considered: [[1] Webhook](https://www.retellai.com/glossary/webhook) [[2] Retell AI Webhooks | AI Voice Agents With Live Data | Retell AI](https://www.retellai.com/blog/retell-ai-webhooks-feature) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
is a ChatGPT module even needed within the check free/busy times route?
@AI Evy is a ChatGPT module even needed within the check free/busy times route? Only worry was that it would just look a bit messy or can retails AI understand if I were to just send the direct output from for example the get free/busy google calandar modiule in make.com
a
Thanks for the follow-up, @joesturdy. I'll get back to you soon.
### Answer Based on the available sources, a ChatGPT module is not required for the check free/busy times route. Retell AI is designed to handle various response formats intelligently. According to the documentation, when your custom function returns data, the response can be in various formats including string, buffer, JSON object, or blob, and "all these formats will be converted to string before sending to LLM for further processing" [(1) ]() . This means Retell AI's LLM can interpret and work with the direct output from Google Calendar's free/busy module. The LLM is sophisticated enough to understand structured calendar data and convert it into natural language for the conversation. For your check availability route, you can simply return the direct Google Calendar free/busy results like:
Copy code
Free slots on {{1.args.date}}: {{join(2.items.start.dateTime; ', ') }} - Available times found in Askar Research calendar
The Retell AI agent will automatically interpret this data and communicate it naturally to the caller. Adding a ChatGPT module would create unnecessary complexity and potentially introduce latency into your webhook response . The documentation shows that function results are "capped at 15000 characters to prevent overloading LLM context window," so even raw calendar data will be processed efficiently by the system .
​ To learn more, see the sources I considered: [[1] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy okay, so knowing this please provide me the three web hook responses I should put in the body section to send back for each provided route.
a
Thanks for the follow-up, @joesturdy. I'll get back to you soon.
### Answer Based on the available sources, here are the three webhook response bodies you should configure in Make.com for each route: ## Route 1 - Check Calendar Availability Response Body:
Copy code
Free/busy times for {{1.args.date}} in Askar Research calendar: {{join(2.items.summary; ' | ') }}. Total events: {{length(2.items) }}
## Route 2 - Cancel Meeting Response Body:
Copy code
Meeting {{1.args.eventID}} has been successfully cancelled from Askar Research calendar
## Route 3 - Reschedule Meeting Response Body:
Copy code
Meeting {{1.args.eventID}} rescheduled to {{1.args.new_date}} at {{1.args.new_time}} in Askar Research calendar
These simple text responses will be automatically processed by Retell AI's LLM, which converts all response formats to string before processing [(1) ]() . The LLM can then naturally communicate this information to the caller during the conversation . For error handling, add this response body to each route's error handler:
Copy code
Unable to process {{1.name}} request for Askar Research calendar. Please try again.
The responses are structured to provide clear, actionable information that the AI agent can easily relay to callers in natural conversation flow [(2) ]() .
​ To learn more, see the sources I considered: [[1] Calling Webhooks In The Middle of A Call](https://discord.com/channels/1186424376300679209/1376986877927886979) [[2] Custom function webhook](https://discord.com/channels/1186424376300679209/1361887355916648599) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy so I've got the retail agent calling to the web hook for each function however I've got to the point where I need to pass through the event ID should i use the eventID under args or retell_llm_varibles
a
Thanks for the follow-up, @joesturdy. I'll get back to you soon.
### Answer Based on the available sources, you should use
eventID
under
args
for passing the event ID to your webhook functions. According to the custom function documentation, when defining parameters for your custom functions, the structure follows this format where function arguments are passed under
args
[(1) ]() :
Copy code
json
{
  "type": "object",
  "properties": {
    "eventID": {
      "type": "string",
      "description": "The Google Calendar event ID for context"
    }
  },
  "required": ["eventID"]
}
In your Make.com webhook, you would access this as
{{1.args.eventID}}
as shown in your previous configurations . The
retell_llm_dynamic_variables
are typically used for dynamic variables that are set at the agent or call level, such as customer information that gets injected into prompts [(2) ]() . The
args
section is specifically for function parameters that get passed when the LLM calls your custom function [(1) ]() . So for your calendar functions, stick with accessing the event ID using
{{1.args.eventID}}
in your Make.com scenario .
​ To learn more, see the sources I considered: [[1] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) [[2] List Calls](https://docs.retellai.com/api-references/list-calls) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy oh so if the reminder agent in the first place got triggered by a make.com scenario which pass through an event ID you were saying that the way to Still receive and get that event ID in the future is to look under the args part when it calls the seporate make.com scinario to check availanility
a
Thanks for the follow-up, @joesturdy. I'll get back to you soon.
### Answer I need to clarify this important distinction about how event IDs flow through Retell AI custom functions. When your reminder agent was initially triggered by a Make.com scenario that passed through an event ID, that information needs to be available to the agent during the conversation. However, when the agent later calls your separate Make.com scenario (like check availability) , the event ID would need to be passed through the function parameters. According to the documentation, when Retell sends a request to your custom function endpoint, the request body includes
args
which contains "the arguments for the custom function, as a JSON object" [(1) ]() [(2) ]() . So if your reminder agent needs to reference the original event ID when calling the check availability function, you would need to: 1. Define the eventID parameter in your check availability function schema:
Copy code
json
{
  "type": "object",
  "properties": {
    "eventID": {
      "type": "string", 
      "description": "The original event ID from the reminder"
    },
    "date": {
      "type": "string",
      "description": "Date to check availability for"
    }
  },
  "required": ["eventID", "date"]
}
[(1) ]() 2. Access it in Make.com using
{{1.args.eventID}}
in your webhook scenario [(1) ]() [(2) ]() . The key point is that the event ID needs to be explicitly passed as a function argument when the LLM calls your custom function - it won't automatically carry over from the initial trigger unless it's part of the function call parameters .
​ To learn more, see the sources I considered: [[1] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) [[2] Integrate any system with custom function](https://docs.retellai.com/build/single-multi-prompt/custom-function) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy my google calandar check availabilty module needs a minimum and maximum time can we we rewrite the check availability time function code also for the reschedule function the date and time needs to me included in one varible lets rewrite that code aswell.
a
Thanks for the follow-up, @joesturdy. I'll get back to you soon.
### Answer [(1) ]() ### Answer Here are the updated function parameter schemas for your Google Calendar integration: ## Updated Check Availability Function Parameters:
Copy code
json
{
  "type": "object",
  "properties": {
    "eventID": {
      "type": "string",
      "description": "The original event ID from the reminder"
    },
    "date": {
      "type": "string",
      "description": "Date to check availability for (YYYY-MM-DD format) "
    },
    "time_min": {
      "type": "string", 
      "description": "Minimum time to check (HH:MM format, e.g., '09:00') "
    },
    "time_max": {
      "type": "string",
      "description": "Maximum time to check (HH:MM format, e.g., '17:00') "
    }
  },
  "required": ["eventID", "date", "time_min", "time_max"]
}
## Updated Reschedule Function Parameters:
Copy code
json
{
  "type": "object",
  "properties": {
    "eventID": {
      "type": "string",
      "description": "The Google Calendar event ID to reschedule"
    },
    "new_datetime": {
      "type": "string",
      "description": "New date and time in ISO format (YYYY-MM-DDTHH:MM:SS, e.g., '2025-03-15T14:30:00') "
    }
  },
  "required": ["eventID", "new_datetime"]
}
## Updated Make.com Configuration: Route 1 - Check Availability Google Calendar Module: - Calendar ID:
Askar Research
- Time Min:
{{1.args.date}}T{{1.args.time_min}}:00+00:00
- Time Max:
{{1.args.date}}T{{1.args.time_max}}:00+00:00
- Single Events:
true
Route 3 - Reschedule Meeting Google Calendar Module: - Calendar ID:
Askar Research
- Event ID:
{{1.args.eventID}}
- Start Date/Time:
{{1.args.new_datetime}}+00:00
- End Date/Time:
{{addHours(parseDate(1.args.new_datetime + "+00:00"; "YYYY-MM-DDTHH:mm:ssZ") ; 1) }}
## Updated Webhook Response Bodies: Check Availability Response:
Copy code
Available slots between {{1.args.time_min}} and {{1.args.time_max}} on {{1.args.date}} in Askar Research calendar: {{join(2.items.summary; ' | ') }}. Total events: {{length(2.items) }}
Reschedule Response:
Copy code
Meeting {{1.args.eventID}} rescheduled to {{1.args.new_datetime}} in Askar Research calendar
This structure allows your Google Calendar module to properly filter availability within your specified time range and handles the reschedule function with a single datetime parameter .
​ To learn more, see the sources I considered: [[1] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy Its gave me invalid json schema schema please fix
a
Thanks for the follow-up, @joesturdy. I'll get back to you soon.
### Answer Here are the corrected JSON schemas for your custom functions. The issue is likely related to the common troubleshooting problems mentioned in the documentation [(1) ]() [(2) ]() . ## Updated Check Availability Function Parameters:
Copy code
json
{
  "type": "object",
  "properties": {
    "eventID": {
      "type": "string",
      "description": "The original event ID from the reminder"
    },
    "date": {
      "type": "string",
      "description": "Date to check availability for (YYYY-MM-DD format) "
    },
    "time_min": {
      "type": "string",
      "description": "Minimum time to check (HH:MM format, e.g., '09:00') "
    },
    "time_max": {
      "type": "string",
      "description": "Maximum time to check (HH:MM format, e.g., '17:00') "
    }
  },
  "required": [
    "eventID",
    "date",
    "time_min",
    "time_max"
  ]
}
[(1) ]() ## Updated Reschedule Function Parameters:
Copy code
json
{
  "type": "object",
  "properties": {
    "eventID": {
      "type": "string",
      "description": "The Google Calendar event ID to reschedule"
    },
    "new_datetime": {
      "type": "string",
      "description": "New date and time in ISO format (YYYY-MM-DDTHH:MM:SS, e.g., '2025-03-15T14:30:00') "
    }
  },
  "required": [
    "eventID",
    "new_datetime"
  ]
}
## Cancel Meeting Function Parameters (for completeness) :
Copy code
json
{
  "type": "object",
  "properties": {
    "eventID": {
      "type": "string",
      "description": "The Google Calendar event ID to cancel"
    }
  },
  "required": [
    "eventID"
  ]
}
The documentation notes that if you fail to save the custom function, it's likely because the parameters are not valid [(1) ]() [(2) ]() . One common mistake mentioned is not adding
"type": "object",
to the top level of the JSON schema . The schemas above follow the correct format with proper JSON structure and required fields array formatting.
​ To learn more, see the sources I considered: [[1] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) [[2] Integrate any system with custom function](https://docs.retellai.com/build/single-multi-prompt/custom-function) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy my mad the date and time must be combined for the minimum and maximum sectioons on my googgle get busy/free times please fix the function code for the check availability
a
Thanks for the follow-up, @joesturdy. I'll get back to you soon.
### Answer Here's the corrected JSON schema for the check availability function with combined datetime parameters for the minimum and maximum sections [(1) ]() : ## Updated Check Availability Function Parameters:
Copy code
json
{
  "type": "object",
  "properties": {
    "eventID": {
      "type": "string",
      "description": "The original event ID from the reminder"
    },
    "date_time_min": {
      "type": "string",
      "description": "Minimum date and time to check (YYYY-MM-DDTHH:MM:SS format, e.g., '2025-03-15T09:00:00') "
    },
    "date_time_max": {
      "type": "string",
      "description": "Maximum date and time to check (YYYY-MM-DDTHH:MM:SS format, e.g., '2025-03-15T17:00:00') "
    }
  },
  "required": [
    "eventID",
    "date_time_min",
    "date_time_max"
  ]
}
## Updated Make.com Configuration: Route 1 - Check Availability Google Calendar Module: - Calendar ID:
Askar Research
- Time Min:
{{1.args.date_time_min}}+00:00
- Time Max:
{{1.args.date_time_max}}+00:00
- Single Events:
true
## Updated Webhook Response Body:
Copy code
Available slots between {{1.args.date_time_min}} and {{1.args.date_time_max}} in Askar Research calendar: {{join(2.items.summary; ' | ') }}. Total events: {{length(2.items) }}
This structure combines the date and time into single parameters that can be directly used by Google Calendar's get busy/free times module .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
​ To learn more, see the sources I considered: [[1] Integrate any system with custom function](https://docs.retellai.com/build/single-multi-prompt/custom-function) ​
j
@AI Evy do retail AI agents automatically know what the time and date is
a
Thanks for the follow-up, @joesturdy. I'll get back to you soon.
### Answer Yes, Retell AI agents can access current time and date information through dynamic variables. Based on the available sources, you can use the
{{current_time}}
dynamic variable to provide time and date context to your agent [(1) ]() . According to a Discord discussion, the function
{{current_time}}
is an inbuilt feature for the LLM to know the current time and date . You can also specify timezone formats like
{{current_time_America/Bogota}}
for specific timezones . However, there are some considerations: - The
{{current_time}}
variable works well, but sometimes the agent may mention that it's converting the time, which can be addressed through additional prompting - Some users have reported issues with timezone-specific formats not working as expected For your calendar integration functions, the agent will have access to current time context, which helps it understand scheduling requests and make appropriate function calls with proper date/time parameters.
​ To learn more, see the sources I considered: [[1] does not work Current time function](https://discord.com/channels/1186424376300679209/1358861327921320026) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy Does current time varible cover current day aswell? And your sure its all built in i donthave to pass it form any make.com automation
a
Thanks for the follow-up, @joesturdy. I'll get back to you soon.
### Answer ### Answer Yes, the
{{current_time}}
dynamic variable covers both current time and day, and it's completely built-in - you don't need to pass it from any Make.com automation [(1) ]() . According to the official documentation, Retell AI provides several default system dynamic variables that are automatically available : -
{{current_time}}
- current time in America/Los_Angeles timezone with format like "Monday, March 24, 2025 at 02:53:01 PM PDT" [(1) ]() [(2) ]() -
{{current_time_[timezone]}}
- current time in specified timezone, for example:
{{current_time_Australia/Sydney}}
,
{{current_time_America/New_York}}
The documentation also shows there's a
{{current_calendar}}
variable that provides a 14-day calendar view in America/Los_Angeles timezone [(1) ]() , and timezone-specific calendar variables like
{{current_calendar_[timezone]}}
. These are all built-in system variables that Retell AI automatically provides - no external automation required . You can use them directly in your prompts, begin messages, tool descriptions, or any other place where dynamic variables are supported . For your calendar scheduling agent, you can simply reference
{{current_time}}
in your prompt to give the agent context about the current date and time without any additional setup .
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[2] Platform Changelogs | Retell AI](https://www.retellai.com/changelog) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy and will that be uk time? if i signed up to retell in the uk? or do i need to specify
a
Thanks for the follow-up, @joesturdy. I'll get back to you soon.
### Answer ### Answer No, the default
{{current_time}}
variable will not automatically be UK time just because you signed up to Retell AI in the UK. You need to specify the timezone [(1) ]() . According to the documentation, the default
{{current_time}}
variable provides current time in
America/Los_Angeles
timezone . To get UK time, you need to use the timezone-specific format:
{{current_time_Europe/London}}
The documentation shows you can specify any timezone using the format
{{current_time_[timezone]}}
. For example: -
{{current_time_Australia/Sydney}}
-
{{current_time_America/New_York}}
-
{{current_time_Europe/London}}
This will give you the current time in the specified timezone with a format like "Thursday, March 28, 2024 at 11:46:04 PM GMT" . You can use this timezone-specific dynamic variable in your prompts, begin messages, tool descriptions, or any other place where dynamic variables are supported .
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
Thanks for the follow-up, @joesturdy. I'll get back to you soon.
j
@AI Evy for my reschedule fundtion i need an end date varible can we add that in so that i recive that to make.com i donty need the time as it mainly to fix an error that simply want to know end date
a
### Answer Here's the updated reschedule function parameters with an additional end_date variable for your Make.com integration: ## Updated Reschedule Function Parameters:
Copy code
json
{
  "type": "object",
  "properties": {
    "eventID": {
      "type": "string",
      "description": "The Google Calendar event ID to reschedule"
    },
    "new_datetime": {
      "type": "string",
      "description": "New date and time in ISO format (YYYY-MM-DDTHH:MM:SS, e.g., '2025-03-15T14:30:00') "
    },
    "end_date": {
      "type": "string",
      "description": "End date for the rescheduled event (YYYY-MM-DD format, e.g., '2025-03-15') "
    }
  },
  "required": [
    "eventID",
    "new_datetime",
    "end_date"
  ]
}
[(1) ]() , [(2) ]() ## Updated Make.com Configuration for Reschedule: Route 3 - Reschedule Meeting Google Calendar Module: - Calendar ID:
Askar Research
- Event ID:
{{1.args.eventID}}
- Start Date/Time:
{{1.args.new_datetime}}+00:00
- End Date:
{{1.args.end_date}}
## Updated Webhook Response Body:
Copy code
Meeting {{1.args.eventID}} rescheduled to {{1.args.new_datetime}} ending on {{1.args.end_date}} in Askar Research calendar
This structure allows you to receive the end_date parameter in Make.com as
{{1.args.end_date}}
to resolve your error. The function parameters are defined using JSON schema format as documented in the custom function guides [(1) ]() [(2) ]() .
​ To learn more, see the sources I considered: [[1] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) [[2] Integrate any system with custom function](https://docs.retellai.com/build/single-multi-prompt/custom-function) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.