- They run before dialling, so they never interact with the customer.
- They inject information dynamically into the agent’s system prompt.
- They can call APIs.
- They are used for gathering data and personalising the call.
- They can even decide whether a call should be triggered or skipped. Example: a call meant to remind a customer to finish their KYC can be skipped if the customer has already done it.
Basic vs Advanced Pre-Call
Use a Basic Pre-Call function when all the data fetched by an API is to be injected into the prompt as raw data. Use an Advanced Pre-Call function when the data needs further refinement before injection, or when some custom logic must be applied first — like turning an ISO date-time slot into a human-readable format. There are two types of Advanced Pre-Call functions:- Advanced A: has access to the whole call data — the call type (inbound, outbound, scheduled, test), the customer’s phone number, the call metadata, and so on. It can fetch data using APIs or modify the metadata. To use this type, turn the “Update Call Data” toggle ON.
- Advanced B: has access to only the system prompt and the metadata. It can modify or dynamically write into the system prompt — based on the metadata, or on data it fetches about the customer. It must always return the final prompt.