Complete guide to enabling, configuring, and referencing Sympana Connector functions in your Retell AI agent — with exact prompt instructions for each function.
Step 1: Connect Sympana to Retell
Before setting up functions, make sure Sympana Connector is connected to your Retell AI account. Follow the Connect Retell guide if you haven’t done this yet.
Need a Retell account?Use this Retell link. Sign up through this link.RetellAI.com
Step 2: Enable functions on your connection
Open the Sympana dashboard inside GoHighLevel
Go to Connections and click on your Retell connection (or create a new one)
Scroll down to the Functions section
Click each function you want to enable — a blue checkmark appears when it’s on
Click Save or Update Connection
All 11 functions are available. You don’t need to enable all of them — only enable the ones your agent actually needs for its use case.
Step 3: Link a GHL calendar (for appointment functions)
If you enabled any appointment functions (Book Appointment, Get Slots, List Appointments, Reschedule, Delete), you must link a GHL calendar:
In the same connection settings, find the Calendar section
Select the GHL calendar you want appointments booked on
Save the connection
If you skip this step, appointment functions will fail with a “No calendar configured” error.
All 11 functions — what they do and how to reference them
Every function below shows the exact name your Retell agent sees, what the function does, what data the agent needs to collect from the caller, and the exact prompt instructions to copy into your agent.
Book Appointment
Retell function name:create_appointment_toolWhat it does: Creates a new appointment on your linked GHL calendar. Finds or creates the contact, checks the slot, and books it.What the agent needs from the caller:
Timezone (from the contact’s GHL record or defaults to Eastern)
Copy this into your Retell agent prompt:
APPOINTMENT BOOKING:When the customer wants to schedule an appointment:1. Ask what day and time works best for them2. ALWAYS use the get_slots_tool FIRST to check availability — never guess3. If the slot is available, use create_appointment_tool to book it4. Tell the customer: "You're all set! I've booked your [title] for [date] at [time]."5. If the slot is taken, read back 2-3 available times and ask which works
Accepted date formats:2026-04-15, April 15, 2026, 4/15/2026Accepted time formats:2:30 PM, 14:30, 2pm, 2:30pmAccepted timezone formats:America/New_York, EST, Eastern, Pacific
Get Slots (Check Availability)
Retell function name:get_slots_toolWhat it does: Returns available appointment times from your GHL calendar. Checks up to 7 days ahead automatically if the requested date has no slots.What the agent needs from the caller:
What date they want to check (optional — defaults to tomorrow)
Copy this into your Retell agent prompt:
CHECKING AVAILABILITY:ALWAYS use get_slots_tool BEFORE offering or confirming any appointment time.Never assume a time is available. When the customer asks "do you have anythingon Thursday?", use get_slots_tool with that date. Read back the nearest 3available times and ask which one works best.
Returns to the agent: A list of available time slots formatted for voice (e.g., “Wednesday Apr 16 at 2:00 PM”), the slot duration, and the next available date if the requested date is fully booked.
Get Appointment
Retell function name:get_appointment_toolWhat it does: Retrieves details of a specific appointment by ID.What the agent needs: The appointment ID (usually from a List Appointments result).Copy this into your Retell agent prompt:
If the customer asks about a specific appointment, use get_appointment_toolto retrieve the details. If you don't have the appointment ID, uselist_appointment_tool first to find it.
List Appointments
Retell function name:list_appointment_toolWhat it does: Shows all upcoming appointments for the contact on the call. Uses the contact’s phone number and name automatically.What the agent needs from the caller: Nothing — it uses baseline variables automatically.Copy this into your Retell agent prompt:
If the customer asks about their appointments or says "when is my appointment",use list_appointment_tool to find all their upcoming bookings. Read back thedate, time, and title of each one.
Reschedule Appointment
Retell function name:reschedule_appointment_toolWhat it does: Moves an existing appointment to a new date and time.What the agent needs from the caller:
Which appointment to reschedule (use List Appointments to find the ID)
New preferred date and time
Copy this into your Retell agent prompt:
RESCHEDULING:If the customer wants to reschedule:1. Use list_appointment_tool to find the appointment2. Ask what new date and time they prefer3. Use get_slots_tool to check the new time is available4. Use reschedule_appointment_tool with the appointment ID and new time5. Confirm: "I've moved your appointment to [new date] at [new time]."
Delete Appointment
Retell function name:delete_appointment_toolWhat it does: Cancels an existing appointment.What the agent needs from the caller:
Confirmation they want to cancel
Which appointment (use List Appointments to find the ID)
Copy this into your Retell agent prompt:
CANCELING:If the customer wants to cancel an appointment:1. Use list_appointment_tool to find the appointment2. Confirm with the customer: "Are you sure you'd like to cancel your [title] on [date]?"3. Only after they confirm, use delete_appointment_tool4. Say: "Your appointment has been canceled."
Get Contact
Retell function name:get_contact_toolWhat it does: Retrieves the full contact profile from GHL — name, email, phone, tags, timezone, custom fields, and more.What the agent needs: Nothing — uses the contact ID from baseline variables. Can also search by phone or email.Copy this into your Retell agent prompt:
If you need to look up the customer's information (email, tags, account details),use get_contact_tool. The contact is identified automatically from the call.
Create Contact
Retell function name:create_contact_toolWhat it does: Creates a new contact in GHL. Useful for inbound calls where the caller is not yet in your CRM.What the agent needs from the caller:
First name (required)
Last name (required)
Phone number (required)
Email (optional)
Copy this into your Retell agent prompt:
If the caller is not in the system (for example, a new inquiry), collect theirfirst name, last name, phone number, and email. Then use create_contact_toolto add them to the system.
Update Contact Data
Retell function name:update_contact_data_toolWhat it does: Updates any field on the contact record in GHL — standard fields (email, name, phone) or custom fields.What the agent needs from the caller:
The information to update
Standard GHL fields you can update:email, firstName, lastName, phone, companyName, address1, city, state, postalCode, country, website, timezoneCustom fields: Use the exact field key from GHL Settings → Custom Fields.Copy this into your Retell agent prompt:
If the customer provides new or updated information (email address, phone number,mailing address, name change), use update_contact_data_tool to save it immediately.After updating, confirm: "I've updated your [field] to [new value]."
Get Opportunity
Retell function name:get_opportunity_toolWhat it does: Retrieves sales pipeline and deal data for the contact — deal stage, value, pipeline name.What the agent needs: Nothing — uses baseline variables automatically.Copy this into your Retell agent prompt:
If you need to reference the customer's account status, deal stage, or pipelineinformation, use get_opportunity_tool.
Timezone Resolver
Retell function name:timezone_resolver_toolWhat it does: Determines the caller’s timezone from their phone number area code, or from city/state information they provide.What the agent needs from the caller: Nothing (uses phone automatically), or city/state if asked.Copy this into your Retell agent prompt:
If you need to know the customer's timezone (for scheduling in the right time zone),use timezone_resolver_tool. It automatically checks their phone number's area code.If that doesn't work, ask for their city and state.
Common results:America/New_York (Eastern), America/Chicago (Central), America/Denver (Mountain), America/Los_Angeles (Pacific)
Step 4: Write your prompt
Your Retell agent prompt must tell the agent when and how to use each function. Copy the relevant prompt sections from above into your Retell agent prompt.
The #1 mistake: Writing “help the customer book an appointment” without mentioning the function name. This makes the agent TALK ABOUT booking instead of ACTUALLY USING the function to book. Always say “use create_appointment_tool” or “use get_slots_tool” explicitly.
Complete prompt example
Here is a full Retell prompt that combines appointment booking and contact management:
You are Sarah, a friendly appointment coordinator at {{company_name}}.## Your personality- Warm, professional, and efficient- Keep responses short and natural — this is a phone call, not an essay- Always confirm important details back to the customer## Available toolsYou have access to the following functions. Use them when the situation calls for it:### Scheduling- ALWAYS use get_slots_tool BEFORE offering any appointment time- Use create_appointment_tool to book after confirming availability- Use list_appointment_tool when a customer asks about existing appointments- Use reschedule_appointment_tool to move an appointment- Use delete_appointment_tool to cancel (always confirm with customer first)### Contact Management- Use get_contact_tool if you need to look up customer details- Use update_contact_data_tool if the customer provides new information- Use create_contact_tool if the caller is new and not in the system## Conversation flow1. Greet the customer: "Hi {{contact_first_name}}, this is Sarah from {{company_name}}."2. Ask how you can help3. If they want to book: ask for preferred day and time, check availability, then book4. If they want to reschedule: find their appointment, ask for new time, check, then move it5. If they want to cancel: find the appointment, confirm, then cancel6. Always end with: "Is there anything else I can help you with?"## Rules- NEVER say a time is available without checking with get_slots_tool first- NEVER cancel without explicit confirmation from the customer- If a function returns an error, apologize and try again or suggest alternatives- Keep the call under 3 minutes when possible
Step 5: Test your functions
Create a test contact in GHL with your own phone number
Trigger a test call from a GHL workflow
During the call, test each function:
Ask “What times do you have available tomorrow?” → get_slots_tool should fire
Say “Book me for 2 PM” → create_appointment_tool should fire
Say “What appointments do I have?” → list_appointment_tool should fire
After the call, verify in GHL that the appointment was created
Test one function at a time. Start with get_contact_tool (simplest) and work up to create_appointment_tool (most complex).
If functions don’t fire, check:
Is the function enabled on your connection? (blue checkmark in Sympana)
Does your prompt mention the function by name?
Is the webhook URL correct on your Retell agent?
Is the calendar linked (for appointment functions)?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/schema/docs.json","name":"Sympana Connector","description":"Connect GoHighLevel with Retell, Vapi, AnyReach, Smallest.ai, SigmaMind, ElevenLabs, Grok, and Bland to run AI calling, messaging workflows, automation, and CRM sync.","colors":{"primary":"#0F172A","light":"#2563EB","dark":"#2563EB"},"logo":{"light":"https://mintcdn.com/sympanallc/8DM9moU7nkRw5vQ2/images/Sympanah.png?fit=max\u0026auto=format\u0026n=8DM9moU7nkRw5vQ2\u0026q=85\u0026s=48059204854e7a2a78d24ca6b7e8ae1d","dark":"https://mintcdn.com/sympanallc/8DM9moU7nkRw5vQ2/images/Sympanah2.png?fit=max\u0026auto=format\u0026n=8DM9moU7nkRw5vQ2\u0026q=85\u0026s=1d4533e1a07c7021d9334aa0d943a82b"},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Install Sympana Connector","icon":"rocket","href":"https://marketplace.gohighlevel.com/integration/6822fb63c32178f1f1b0eacb/versions/6822fb63c32178f1f1b0eacb"},{"anchor":"Pricing","icon":"dollar-sign","href":"https://www.sympana.com/connector#pricing"},{"anchor":"Discord","icon":"discord","href":"https://discord.gg/QXk7ddhmZQ"},{"anchor":"Ask AI","icon":"sparkles","href":"/ask-ai"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"sympanallc","hasAudioNarration":false,"actualSubdomain":"sympanallc","customDomains":["docs.sympana.com"],"gitSource":{"type":"github","owner":"emanueltermure","repo":"ghl_voice_app","deployBranch":"docs/sympana-documentation","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6a98becc331460d7046eb762","clientVersion":"0.0.4177","searchFilterCounts":[{"language":"default","tag":"Documentation","count":19},{"language":"default","tag":"Vapi Setup","count":14},{"language":"default","tag":"Retell Setup","count":13},{"language":"default","tag":"Actions","count":12},{"language":"default","tag":"Connect","count":10},{"language":"default","tag":"Build","count":8},{"language":"default","tag":"Get Started","count":5},{"language":"default","tag":"Support","count":4},{"language":"default","tag":"Messaging","count":3},{"language":"default","tag":"Functions","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"guides/how-to-set-up-functions-in-retell","slug":"/guides/how-to-set-up-functions-in-retell","pageMetadata":{"title":"How to Set Up Functions in Retell","description":"Complete guide to enabling, configuring, and referencing Sympana Connector functions in your Retell AI agent — with exact prompt instructions for each function.","href":"/guides/how-to-set-up-functions-in-retell"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Complete guide to enabling, configuring, and referencing Sympana Connector functions in your Retell AI agent — with exact prompt instructions for each function.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,hr:`hr`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Info,Tip,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`step-1-connect-sympana-to-retell`,children:`Step 1: Connect Sympana to Retell`}),`\n`,_jsxs(_components.p,{children:[`Before setting up functions, make sure Sympana Connector is connected to your Retell AI account. Follow the `,_jsx(_components.a,{href:`https://docs.sympana.com/sympana-connector-retell/how-to-connect-sympana-to-retell-ai`,children:`Connect Retell guide`}),` if you haven’t done this yet.`]}),`\n`,_jsxs(Info,{children:[_jsx(_components.p,{children:`Need a Retell account?`}),_jsx(_components.p,{children:`Use this Retell link. Sign up through this link.`}),_jsx(_components.p,{children:_jsx(_components.a,{href:`https://dashboard.retellai.com/?ref=EmanuelTemplates`,children:`RetellAI.com`})})]}),`\n`,_jsx(Heading,{level:`2`,id:`step-2-enable-functions-on-your-connection`,children:`Step 2: Enable functions on your connection`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`Open the Sympana dashboard inside GoHighLevel`}),`\n`,_jsxs(_components.li,{children:[`Go to `,_jsx(_components.strong,{children:`Connections`}),` and click on your Retell connection (or create a new one)`]}),`\n`,_jsxs(_components.li,{children:[`Scroll down to the `,_jsx(_components.strong,{children:`Functions`}),` section`]}),`\n`,_jsx(_components.li,{children:`Click each function you want to enable — a blue checkmark appears when it’s on`}),`\n`,_jsxs(_components.li,{children:[`Click `,_jsx(_components.strong,{children:`Save`}),` or `,_jsx(_components.strong,{children:`Update Connection`})]}),`\n`]}),`\n`,_jsx(Tip,{children:`All 11 functions are available. You don’t need to enable all of them — only enable the ones your agent actually needs for its use case.`}),`\n`,_jsx(Heading,{level:`2`,id:`step-3-link-a-ghl-calendar-for-appointment-functions`,children:`Step 3: Link a GHL calendar (for appointment functions)`}),`\n`,_jsxs(_components.p,{children:[`If you enabled any appointment functions (Book Appointment, Get Slots, List Appointments, Reschedule, Delete), you `,_jsx(_components.strong,{children:`must`}),` link a GHL calendar:`]}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`In the same connection settings, find the `,_jsx(_components.strong,{children:`Calendar`}),` section`]}),`\n`,_jsx(_components.li,{children:`Select the GHL calendar you want appointments booked on`}),`\n`,_jsx(_components.li,{children:`Save the connection`}),`\n`]}),`\n`,_jsx(Warning,{children:`If you skip this step, appointment functions will fail with a “No calendar configured” error.`}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`all-11-functions-—-what-they-do-and-how-to-reference-them`,children:`All 11 functions — what they do and how to reference them`}),`\n`,_jsxs(_components.p,{children:[`Every function below shows the `,_jsx(_components.strong,{children:`exact name`}),` your Retell agent sees, what the function does, what data the agent needs to collect from the caller, and `,_jsx(_components.strong,{children:`the exact prompt instructions to copy into your agent`}),`.`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`3`,id:`book-appointment`,children:`Book Appointment`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Retell function name:`}),` `,_jsx(_components.code,{children:`create_appointment_tool`})]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`What it does:`}),` Creates a new appointment on your linked GHL calendar. Finds or creates the contact, checks the slot, and books it.`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`What the agent needs from the caller:`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`What the appointment is for (the title)`}),`\n`,_jsx(_components.li,{children:`Preferred date and time`}),`\n`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`What’s auto-filled (agent does NOT need to ask):`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Contact name, phone, email (from baseline variables)`}),`\n`,_jsx(_components.li,{children:`Calendar ID (from your connection config)`}),`\n`,_jsx(_components.li,{children:`Timezone (from the contact’s GHL record or defaults to Eastern)`}),`\n`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Copy this into your Retell agent prompt:`})}),`\n`,_jsx(CodeBlock,{numberOfLines:`8`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`APPOINTMENT BOOKING:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`When the customer wants to schedule an appointment:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`1. Ask what day and time works best for them`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`2. ALWAYS use the get_slots_tool FIRST to check availability — never guess`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`3. If the slot is available, use create_appointment_tool to book it`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`4. Tell the customer: \"You're all set! I've booked your [title] for [date] at [time].\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`5. If the slot is taken, read back 2-3 available times and ask which works`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Accepted date formats:`}),` `,_jsx(_components.code,{children:`2026-04-15`}),`, `,_jsx(_components.code,{children:`April 15, 2026`}),`, `,_jsx(_components.code,{children:`4/15/2026`}),`\n`,_jsx(_components.strong,{children:`Accepted time formats:`}),` `,_jsx(_components.code,{children:`2:30 PM`}),`, `,_jsx(_components.code,{children:`14:30`}),`, `,_jsx(_components.code,{children:`2pm`}),`, `,_jsx(_components.code,{children:`2:30pm`}),`\n`,_jsx(_components.strong,{children:`Accepted timezone formats:`}),` `,_jsx(_components.code,{children:`America/New_York`}),`, `,_jsx(_components.code,{children:`EST`}),`, `,_jsx(_components.code,{children:`Eastern`}),`, `,_jsx(_components.code,{children:`Pacific`})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`3`,id:`get-slots-check-availability`,children:`Get Slots (Check Availability)`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Retell function name:`}),` `,_jsx(_components.code,{children:`get_slots_tool`})]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`What it does:`}),` Returns available appointment times from your GHL calendar. Checks up to 7 days ahead automatically if the requested date has no slots.`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`What the agent needs from the caller:`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`What date they want to check (optional — defaults to tomorrow)`}),`\n`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Copy this into your Retell agent prompt:`})}),`\n`,_jsx(CodeBlock,{numberOfLines:`6`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`CHECKING AVAILABILITY:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`ALWAYS use get_slots_tool BEFORE offering or confirming any appointment time.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Never assume a time is available. When the customer asks \"do you have anything`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`on Thursday?\", use get_slots_tool with that date. Read back the nearest 3`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`available times and ask which one works best.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Returns to the agent:`}),` A list of available time slots formatted for voice (e.g., “Wednesday Apr 16 at 2:00 PM”), the slot duration, and the next available date if the requested date is fully booked.`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`3`,id:`get-appointment`,children:`Get Appointment`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Retell function name:`}),` `,_jsx(_components.code,{children:`get_appointment_tool`})]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`What it does:`}),` Retrieves details of a specific appointment by ID.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`What the agent needs:`}),` The appointment ID (usually from a List Appointments result).`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Copy this into your Retell agent prompt:`})}),`\n`,_jsx(CodeBlock,{numberOfLines:`4`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`If the customer asks about a specific appointment, use get_appointment_tool`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`to retrieve the details. If you don't have the appointment ID, use`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`list_appointment_tool first to find it.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`3`,id:`list-appointments`,children:`List Appointments`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Retell function name:`}),` `,_jsx(_components.code,{children:`list_appointment_tool`})]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`What it does:`}),` Shows all upcoming appointments for the contact on the call. Uses the contact’s phone number and name automatically.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`What the agent needs from the caller:`}),` Nothing — it uses baseline variables automatically.`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Copy this into your Retell agent prompt:`})}),`\n`,_jsx(CodeBlock,{numberOfLines:`4`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`If the customer asks about their appointments or says \"when is my appointment\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`use list_appointment_tool to find all their upcoming bookings. Read back the`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`date, time, and title of each one.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`3`,id:`reschedule-appointment`,children:`Reschedule Appointment`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Retell function name:`}),` `,_jsx(_components.code,{children:`reschedule_appointment_tool`})]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`What it does:`}),` Moves an existing appointment to a new date and time.`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`What the agent needs from the caller:`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Which appointment to reschedule (use List Appointments to find the ID)`}),`\n`,_jsx(_components.li,{children:`New preferred date and time`}),`\n`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Copy this into your Retell agent prompt:`})}),`\n`,_jsx(CodeBlock,{numberOfLines:`8`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`RESCHEDULING:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`If the customer wants to reschedule:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`1. Use list_appointment_tool to find the appointment`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`2. Ask what new date and time they prefer`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`3. Use get_slots_tool to check the new time is available`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`4. Use reschedule_appointment_tool with the appointment ID and new time`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`5. Confirm: \"I've moved your appointment to [new date] at [new time].\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`3`,id:`delete-appointment`,children:`Delete Appointment`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Retell function name:`}),` `,_jsx(_components.code,{children:`delete_appointment_tool`})]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`What it does:`}),` Cancels an existing appointment.`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`What the agent needs from the caller:`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Confirmation they want to cancel`}),`\n`,_jsx(_components.li,{children:`Which appointment (use List Appointments to find the ID)`}),`\n`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Copy this into your Retell agent prompt:`})}),`\n`,_jsx(CodeBlock,{numberOfLines:`8`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`CANCELING:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`If the customer wants to cancel an appointment:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`1. Use list_appointment_tool to find the appointment`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`2. Confirm with the customer: \"Are you sure you'd like to cancel your`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` [title] on [date]?\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`3. Only after they confirm, use delete_appointment_tool`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`4. Say: \"Your appointment has been canceled.\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`3`,id:`get-contact`,children:`Get Contact`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Retell function name:`}),` `,_jsx(_components.code,{children:`get_contact_tool`})]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`What it does:`}),` Retrieves the full contact profile from GHL — name, email, phone, tags, timezone, custom fields, and more.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`What the agent needs:`}),` Nothing — uses the contact ID from baseline variables. Can also search by phone or email.`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Copy this into your Retell agent prompt:`})}),`\n`,_jsx(CodeBlock,{numberOfLines:`3`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`If you need to look up the customer's information (email, tags, account details),`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`use get_contact_tool. The contact is identified automatically from the call.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`3`,id:`create-contact`,children:`Create Contact`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Retell function name:`}),` `,_jsx(_components.code,{children:`create_contact_tool`})]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`What it does:`}),` Creates a new contact in GHL. Useful for inbound calls where the caller is not yet in your CRM.`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`What the agent needs from the caller:`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`First name (required)`}),`\n`,_jsx(_components.li,{children:`Last name (required)`}),`\n`,_jsx(_components.li,{children:`Phone number (required)`}),`\n`,_jsx(_components.li,{children:`Email (optional)`}),`\n`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Copy this into your Retell agent prompt:`})}),`\n`,_jsx(CodeBlock,{numberOfLines:`4`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`If the caller is not in the system (for example, a new inquiry), collect their`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`first name, last name, phone number, and email. Then use create_contact_tool`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`to add them to the system.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`3`,id:`update-contact-data`,children:`Update Contact Data`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Retell function name:`}),` `,_jsx(_components.code,{children:`update_contact_data_tool`})]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`What it does:`}),` Updates any field on the contact record in GHL — standard fields (email, name, phone) or custom fields.`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`What the agent needs from the caller:`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`The information to update`}),`\n`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Standard GHL fields you can update:`}),`\n`,_jsx(_components.code,{children:`email`}),`, `,_jsx(_components.code,{children:`firstName`}),`, `,_jsx(_components.code,{children:`lastName`}),`, `,_jsx(_components.code,{children:`phone`}),`, `,_jsx(_components.code,{children:`companyName`}),`, `,_jsx(_components.code,{children:`address1`}),`, `,_jsx(_components.code,{children:`city`}),`, `,_jsx(_components.code,{children:`state`}),`, `,_jsx(_components.code,{children:`postalCode`}),`, `,_jsx(_components.code,{children:`country`}),`, `,_jsx(_components.code,{children:`website`}),`, `,_jsx(_components.code,{children:`timezone`})]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Custom fields:`}),` Use the exact field key from GHL Settings → Custom Fields.`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Copy this into your Retell agent prompt:`})}),`\n`,_jsx(CodeBlock,{numberOfLines:`4`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`If the customer provides new or updated information (email address, phone number,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`mailing address, name change), use update_contact_data_tool to save it immediately.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`After updating, confirm: \"I've updated your [field] to [new value].\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`3`,id:`get-opportunity`,children:`Get Opportunity`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Retell function name:`}),` `,_jsx(_components.code,{children:`get_opportunity_tool`})]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`What it does:`}),` Retrieves sales pipeline and deal data for the contact — deal stage, value, pipeline name.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`What the agent needs:`}),` Nothing — uses baseline variables automatically.`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Copy this into your Retell agent prompt:`})}),`\n`,_jsx(CodeBlock,{numberOfLines:`3`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`If you need to reference the customer's account status, deal stage, or pipeline`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`information, use get_opportunity_tool.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`3`,id:`timezone-resolver`,children:`Timezone Resolver`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Retell function name:`}),` `,_jsx(_components.code,{children:`timezone_resolver_tool`})]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`What it does:`}),` Determines the caller’s timezone from their phone number area code, or from city/state information they provide.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`What the agent needs from the caller:`}),` Nothing (uses phone automatically), or city/state if asked.`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Copy this into your Retell agent prompt:`})}),`\n`,_jsx(CodeBlock,{numberOfLines:`4`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`If you need to know the customer's timezone (for scheduling in the right time zone),`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`use timezone_resolver_tool. It automatically checks their phone number's area code.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`If that doesn't work, ask for their city and state.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Common results:`}),` `,_jsx(_components.code,{children:`America/New_York`}),` (Eastern), `,_jsx(_components.code,{children:`America/Chicago`}),` (Central), `,_jsx(_components.code,{children:`America/Denver`}),` (Mountain), `,_jsx(_components.code,{children:`America/Los_Angeles`}),` (Pacific)`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`step-4-write-your-prompt`,children:`Step 4: Write your prompt`}),`\n`,_jsxs(_components.p,{children:[`Your Retell agent prompt must tell the agent `,_jsx(_components.strong,{children:`when`}),` and `,_jsx(_components.strong,{children:`how`}),` to use each function. Copy the relevant prompt sections from above into your Retell agent prompt.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`The #1 mistake:`}),` Writing “help the customer book an appointment” without mentioning the function name. This makes the agent TALK ABOUT booking instead of ACTUALLY USING the function to book. Always say “use create_appointment_tool” or “use get_slots_tool” explicitly.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`complete-prompt-example`,children:`Complete prompt example`}),`\n`,_jsx(_components.p,{children:`Here is a full Retell prompt that combines appointment booking and contact management:`}),`\n`,_jsx(CodeBlock,{numberOfLines:`36`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`36`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`You are Sarah, a friendly appointment coordinator at {{company_name}}.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`## Your personality`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- Warm, professional, and efficient`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- Keep responses short and natural — this is a phone call, not an essay`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- Always confirm important details back to the customer`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`## Available tools`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`You have access to the following functions. Use them when the situation calls for it:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`### Scheduling`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- ALWAYS use get_slots_tool BEFORE offering any appointment time`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- Use create_appointment_tool to book after confirming availability`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- Use list_appointment_tool when a customer asks about existing appointments`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- Use reschedule_appointment_tool to move an appointment`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- Use delete_appointment_tool to cancel (always confirm with customer first)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`### Contact Management`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- Use get_contact_tool if you need to look up customer details`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- Use update_contact_data_tool if the customer provides new information`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- Use create_contact_tool if the caller is new and not in the system`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`## Conversation flow`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`1. Greet the customer: \"Hi {{contact_first_name}}, this is Sarah from {{company_name}}.\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`2. Ask how you can help`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`3. If they want to book: ask for preferred day and time, check availability, then book`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`4. If they want to reschedule: find their appointment, ask for new time, check, then move it`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`5. If they want to cancel: find the appointment, confirm, then cancel`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`6. Always end with: \"Is there anything else I can help you with?\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`## Rules`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- NEVER say a time is available without checking with get_slots_tool first`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- NEVER cancel without explicit confirmation from the customer`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- If a function returns an error, apologize and try again or suggest alternatives`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`- Keep the call under 3 minutes when possible`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`step-5-test-your-functions`,children:`Step 5: Test your functions`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`Create a test contact in GHL with your own phone number`}),`\n`,_jsx(_components.li,{children:`Trigger a test call from a GHL workflow`}),`\n`,_jsxs(_components.li,{children:[`During the call, test each function:`,`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Ask “What times do you have available tomorrow?” → get_slots_tool should fire`}),`\n`,_jsx(_components.li,{children:`Say “Book me for 2 PM” → create_appointment_tool should fire`}),`\n`,_jsx(_components.li,{children:`Say “What appointments do I have?” → list_appointment_tool should fire`}),`\n`]}),`\n`]}),`\n`,_jsx(_components.li,{children:`After the call, verify in GHL that the appointment was created`}),`\n`]}),`\n`,_jsx(Tip,{children:`Test one function at a time. Start with get_contact_tool (simplest) and work up to create_appointment_tool (most complex).`}),`\n`,_jsx(_components.p,{children:`If functions don’t fire, check:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`Is the function enabled on your connection? (blue checkmark in Sympana)`}),`\n`,_jsx(_components.li,{children:`Does your prompt mention the function by name?`}),`\n`,_jsx(_components.li,{children:`Is the webhook URL correct on your Retell agent?`}),`\n`,_jsx(_components.li,{children:`Is the calendar linked (for appointment functions)?`}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Still stuck? Join the `,_jsx(_components.a,{href:`https://discord.gg/QXk7ddhmZQ`,children:`Sympana Discord server`}),` for help.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"How to Set Up Functions in Retell","description":"Complete guide to enabling, configuring, and referencing Sympana Connector functions in your Retell AI agent — with exact prompt instructions for each function.","href":"/guides/how-to-set-up-functions-in-retell"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Step 1: Connect Sympana to Retell","slug":"step-1-connect-sympana-to-retell","depth":2,"children":[]},{"title":"Step 2: Enable functions on your connection","slug":"step-2-enable-functions-on-your-connection","depth":2,"children":[]},{"title":"Step 3: Link a GHL calendar (for appointment functions)","slug":"step-3-link-a-ghl-calendar-for-appointment-functions","depth":2,"children":[]},{"title":"All 11 functions — what they do and how to reference them","slug":"all-11-functions-—-what-they-do-and-how-to-reference-them","depth":2,"children":[{"title":"Book Appointment","slug":"book-appointment","depth":3,"children":[]},{"title":"Get Slots (Check Availability)","slug":"get-slots-check-availability","depth":3,"children":[]},{"title":"Get Appointment","slug":"get-appointment","depth":3,"children":[]},{"title":"List Appointments","slug":"list-appointments","depth":3,"children":[]},{"title":"Reschedule Appointment","slug":"reschedule-appointment","depth":3,"children":[]},{"title":"Delete Appointment","slug":"delete-appointment","depth":3,"children":[]},{"title":"Get Contact","slug":"get-contact","depth":3,"children":[]},{"title":"Create Contact","slug":"create-contact","depth":3,"children":[]},{"title":"Update Contact Data","slug":"update-contact-data","depth":3,"children":[]},{"title":"Get Opportunity","slug":"get-opportunity","depth":3,"children":[]},{"title":"Timezone Resolver","slug":"timezone-resolver","depth":3,"children":[]}]},{"title":"Step 4: Write your prompt","slug":"step-4-write-your-prompt","depth":2,"children":[{"title":"Complete prompt example","slug":"complete-prompt-example","depth":3,"children":[]}]},{"title":"Step 5: Test your functions","slug":"step-5-test-your-functions","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"sympanallc","siteName":"Sympana Connector","title":"How to Set Up Functions in Retell - Sympana Connector","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-07-09T08:33:32.229Z","originalFileLocation":"guides/how-to-set-up-functions-in-retell.md"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Complete guide to enabling, configuring, and referencing Sympana Connector functions in your Retell AI agent — with exact prompt instructions for each function.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Sympana Connector\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/sympanallc/_generated/favicon/apple-touch-icon.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/sympanallc/_generated/favicon/favicon-32x32.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/sympanallc/_generated/favicon/favicon-16x16.png?v=3\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/sympanallc/_generated/favicon/favicon.ico?v=3\">\u003cmeta data-mint-head property=\"og:title\" content=\"How to Set Up Functions in Retell - Sympana Connector\">\u003cmeta data-mint-head property=\"og:description\" content=\"Complete guide to enabling, configuring, and referencing Sympana Connector functions in your Retell AI agent — with exact prompt instructions for each function.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Sympana Connector\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.sympana.com/guides/how-to-set-up-functions-in-retell\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://sympanallc.mintlify.site/_mintlify/api/og/v2?division=Functions\u0026amp;title=How+to+Set+Up+Functions+in+Retell\u0026amp;description=Complete+guide+to+enabling%2C+configuring%2C+and+referencing+Sympana+Connector+functions+in+your+Retell+AI+agent+%E2%80%94+with+exact+prompt+instructions+for+each+function.\u0026amp;theme=dcaf4c0248a200eb1cee74eb\u0026amp;signature=35b5a99cffdf7a3b3e1efbed63a942a31b957533588d9d0730ca9b5e5e710851\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"How to Set Up Functions in Retell - Sympana Connector\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Complete guide to enabling, configuring, and referencing Sympana Connector functions in your Retell AI agent — with exact prompt instructions for each function.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://sympanallc.mintlify.site/_mintlify/api/og/v2?division=Functions\u0026amp;title=How+to+Set+Up+Functions+in+Retell\u0026amp;description=Complete+guide+to+enabling%2C+configuring%2C+and+referencing+Sympana+Connector+functions+in+your+Retell+AI+agent+%E2%80%94+with+exact+prompt+instructions+for+each+function.\u0026amp;theme=dcaf4c0248a200eb1cee74eb\u0026amp;signature=35b5a99cffdf7a3b3e1efbed63a942a31b957533588d9d0730ca9b5e5e710851\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"https://mintlify.s3.us-west-1.amazonaws.com/sympanallc/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Sympana Connector\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0F172A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.sympana.com/guides/how-to-set-up-functions-in-retell\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/guides/how-to-set-up-functions-in-retell.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.sympana.com/#organization\",\"name\":\"Sympana Connector\",\"url\":\"https://docs.sympana.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/sympanallc/8DM9moU7nkRw5vQ2/images/Sympanah.png?fit=max\u0026auto=format\u0026n=8DM9moU7nkRw5vQ2\u0026q=85\u0026s=48059204854e7a2a78d24ca6b7e8ae1d\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.sympana.com#website\",\"name\":\"Sympana Connector\",\"url\":\"https://docs.sympana.com\",\"publisher\":{\"@id\":\"https://docs.sympana.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.sympana.com/guides/how-to-set-up-functions-in-retell#webpage\",\"url\":\"https://docs.sympana.com/guides/how-to-set-up-functions-in-retell\",\"name\":\"How to Set Up Functions in Retell\",\"description\":\"Complete guide to enabling, configuring, and referencing Sympana Connector functions in your Retell AI agent — with exact prompt instructions for each function.\",\"dateModified\":\"2026-07-09T08:33:32.229Z\",\"isPartOf\":{\"@id\":\"https://docs.sympana.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.sympana.com/guides/how-to-set-up-functions-in-retell#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.sympana.com/guides/how-to-set-up-functions-in-retell#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Sympana Connector\",\"item\":\"https://docs.sympana.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Set Up Functions in Retell\",\"item\":\"https://docs.sympana.com/guides/how-to-set-up-functions-in-retell\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.sympana.com/guides/how-to-set-up-functions-in-retell#article\",\"headline\":\"How to Set Up Functions in Retell\",\"name\":\"How to Set Up Functions in Retell\",\"description\":\"Complete guide to enabling, configuring, and referencing Sympana Connector functions in your Retell AI agent — with exact prompt instructions for each function.\",\"url\":\"https://docs.sympana.com/guides/how-to-set-up-functions-in-retell\",\"mainEntityOfPage\":{\"@id\":\"https://docs.sympana.com/guides/how-to-set-up-functions-in-retell#webpage\"},\"dateModified\":\"2026-07-09T08:33:32.229Z\",\"publisher\":{\"@id\":\"https://docs.sympana.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.sympana.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Sympana Connector\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Sympana Connector\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/guides/how-to-set-up-functions-in-retell.md","siteName":"Sympana Connector","nav":{"global":{"anchors":[{"anchor":"Install Sympana Connector","icon":"rocket","href":"https://marketplace.gohighlevel.com/integration/6822fb63c32178f1f1b0eacb/versions/6822fb63c32178f1f1b0eacb"},{"anchor":"Pricing","icon":"dollar-sign","href":"https://www.sympana.com/connector#pricing"},{"anchor":"Discord","icon":"discord","href":"https://discord.gg/QXk7ddhmZQ"},{"anchor":"Ask AI","icon":"sparkles","href":"/ask-ai"}]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"Retell Setup","groups":[{"group":"Connect","pages":[{"title":"How to Connect Sympana to Retell AI (Retell)","href":"/sympana-connector-retell/how-to-connect-sympana-to-retell-ai"},{"title":"Sympana App Function Tools (Retell)","href":"/sympana-connector-retell/sympana-app-function-tools-retell"},{"title":"Dynamic Variables (Retell)","href":"/sympana-connector-retell/dynamic-variables-retell"},{"title":"Webhook Get Call (Retell)","href":"/sympana-connector-retell/webhook-get-call"},{"title":"Example Scripts and Prompts (Retell)","href":"/sympana-connector-retell/example-scripts-prompts-retell"}]},{"group":"Actions","pages":[{"title":"Place Call (Retell)","href":"/automation-triggers-actions/place-call"},{"title":"Place Call Smart Selection (Retell)","href":"/automation-triggers-actions/place-call-smart-selection"},{"title":"Call Completed (Retell)","href":"/automation-triggers-actions/call-completed"},{"title":"Fetch Call Analysis (Retell)","href":"/automation-triggers-actions/fetch-call-analysis"},{"title":"Update Lead Timezone (Retell)","href":"/automation-triggers-actions/update-lead-timezone"},{"title":"Wait Until Calling Window (Retell)","description":"Use Wait Until Calling Window to delay calls until the lead can be contacted at the right local time.","href":"/automation-triggers-actions/wait-until-calling-window"}]},{"group":"Functions","pages":[{"title":"How to Set Up Functions in Retell","href":"/guides/how-to-set-up-functions-in-retell"}]},{"group":"Messaging","pages":[{"title":"Messaging Setup (Retell)","description":"Set up a Retell messaging connection in Sympana Connector to let your AI agent respond to inbound SMS, WhatsApp, Instagram, and other messages.","href":"/sympana-connector-retell/messaging-setup-retell"},{"title":"Messaging Connection Setup","href":"/guides/messaging-connection-setup"}]}]},{"tab":"Vapi Setup","pages":[{"title":"Vapi Setup","href":"/sympana-connector-vapi/how-to-connect-sympana-to-vapi"}]},{"tab":"Video Tutorials","pages":[{"title":"Video Tutorials","href":"/video-tutorials"}]}]},"basePath":"","title":"How to Set Up Functions in Retell - Sympana Connector","deploymentId":"dpl_HhUetB7eHHDAmK9T1Teip38TgFx9","buildId":"dpl_HhUetB7eHHDAmK9T1Teip38TgFx9","dynamics":[],"chunks":[]}