https://retellai.com/?utm_source=discord&utm_medium=seo logo
is there a way to look into the booking engine for...
# ❓・ai-evy-support
k
@AI Evy is there a way to look into the booking engine for live prices and tell it on the call from the agent?
a
Thanks for tagging me @kpriyadarshan. I'll look through relevant sources and get back to you shortly.
### Answer Based on the available sources, I don't have specific documentation about fetching live prices from a booking engine during a call. However, the general approach in Retell AI for retrieving external data (like live prices) during a call is to use custom functions. The appointment booking documentation mentions that you can "write a custom function to connect" to external services beyond the native Cal.com integration. [(1) ]() This means you could: 1. Create a custom function that calls your booking engine's API to retrieve live pricing 2. Add that function to your agent's tools 3. Include logic in your prompts to trigger the function and relay the pricing information to the caller Check out these potentially useful sources: - [AI Appointment Scheduling with Voice AI Booking Assistant]() - [Create Retell LLM]() Would you like me to provide a general answer about implementing custom functions for external API calls?
​ To learn more, see the sources I considered: [[1] AI Appointment Scheduling with Voice AI Booking Assistant](https://www.retellai.com/features/book-appointments) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
k
do you take knowledge base from a google sheet if i put pricing info there?
a
Thanks for the follow-up, @kpriyadarshan. I'll get back to you soon.
k
@AI Evy do you take knowledge base from a google sheet if i put pricing info there?
a
### Answer Based on the available sources, Google Sheets is not directly supported as a knowledge base source. [(1) ]() The supported sources for knowledge base are: - Website content (via URLs) - Documents (supported formats include:
.csv
,
.xls
,
.xlsx
, among others) - Custom text snippets Workaround for your pricing data: You could export your Google Sheet as a CSV or XLSX file and upload that to the knowledge base. However, for tabular pricing data like this, there's an important consideration: retrieval from knowledge base may not always return accurate results for structured/tabular data. A community suggestion is to consider building a custom function/tool to look up pricing answers instead of relying on free-text search for tabular data. [(2) ]() Also note for CSV/XLSX files: the row limit is 1000 rows and the column limit is 50 columns. [(1) ]()
​ To learn more, see the sources I considered: [[1] Knowledge Base](https://docs.retellai.com/build/knowledge-base) [[2] Using knowledge base not how I wanted](https://discord.com/channels/1186424376300679209/1357009953247727808) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
k
@AI Evy but google sheet also has a url share which can be input right? with full acess
a
Thanks for the follow-up, @kpriyadarshan. I'll get back to you soon.
### Answer ### Answer While the knowledge base does support importing content via URLs, the URL source is designed to import website content from web pages. [(1) ]() A Google Sheet share URL would not work the same way as a standard webpage URL—the knowledge base URL feature is built to crawl and parse web page content, not access data from a Google Sheets document directly. Your best options for pricing data: 1. Export to CSV/XLSX – Download your Google Sheet as a
.csv
or
.xlsx
file and upload it directly to the knowledge base. - Note: CSV/XLSX files have a limit of 1000 rows and 50 columns. 2. Custom function – For live/dynamic pricing that changes frequently, a custom function that calls your Google Sheets API would give you real-time data during calls rather than relying on a static knowledge base upload.
​ To learn more, see the sources I considered: [[1] Knowledge Base](https://docs.retellai.com/build/knowledge-base) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
k
how can i do the custom function call with google sheets api?
@AI Evy how can i do the custom function call with google sheets api?
a
Thanks for the follow-up, @kpriyadarshan. I'll get back to you soon.
### Answer ### Answer To connect Retell AI with Google Sheets via a custom function, you'll need to set up a webhook endpoint that Retell calls, which then interacts with the Google Sheets API. [(1) ]() High-level steps: 1. Create a custom function in Retell – In your agent's "Functions" section, click "+ Add" and select "Custom Function". 2. Set up your endpoint URL – This is a server you control (or a no-code tool like Make.com or N8N) that receives Retell's request and calls the Google Sheets API. [(1) ]() [(2) ](

▾

) 3. Configure the HTTP method – Choose GET, POST, PATCH, PUT, or DELETE depending on whether you're reading or writing data. [(1) ]() 4. Define parameters – Specify what data Retell should send to your endpoint (e.g., customer name, pricing lookup key) . 5. Set up Google Sheets API credentials – In Google Cloud Console, enable the Google Sheets API and create OAuth credentials. Add your email as a test user. [(2) ](

▾

) 6. Connect your middleware to Google Sheets – Your endpoint receives Retell's request, queries Google Sheets, and returns the result. Request format Retell sends to your endpoint: [(1) ]() - Header:
X-Retell-Signature
for verification - Body (for POST/PUT/PATCH) : includes
name
,
call
object, and
args
Response requirements: - Status code 200-299 for success - Can return string, JSON object, buffer, or blob (capped at 15,000 characters) Verification example (TypeScript) :
Copy code
typescript
import { Retell } from "retell-sdk";
this.app.post("/check-weather", async (req: Request, res: Response) => {
  if (
    !Retell.verify(
      JSON.stringify(req.body) ,
      process.env.RETELL_API_KEY,
      req.headers["x-retell-signature"] as string,
    )
  ) {
    console.error("Invalid signature") ;
    return;
  }
  const content = req.body;
  // Your Google Sheets logic here
}) ;
For a step-by-step walkthrough using N8N with Google Sheets, there's a community workshop video: [Personalization with Google Sheets](

▾

) [(2) ](

▾

)
​ 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] Personalization with Google Sheets](

https://www.youtube.com/watch?v=A9H3a33gM2M▾

) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.