https://retellai.com/?utm_source=discord&utm_medium=seo logo
is it possible to run a webook function before tri...
# ❓・ai-evy-support
y
@AI Evy is it possible to run a webook function before triggering a batch outbound call if I scheduled the batch call?
a
Thanks for tagging me @yoavbg. I'll look through relevant sources and get back to you shortly.
### Answer Based on the available documentation, there is no built-in webhook that fires before a scheduled batch call is triggered. [(1) ]() [(2) ]() The inbound webhook feature exists specifically for inbound calls/SMS—it notifies you when an inbound call is received so you can override agent settings, set dynamic variables, or reject the call. [(3) ]() This does not apply to outbound batch calls. For batch calls, you can: - Provide dynamic variables directly in your CSV when uploading the batch [(2) ]() - Use
trigger_timestamp
to schedule when the batch should start [(1) ]() - Configure a
call_time_window
to restrict when calls are allowed to run [(1) ]() [(4) ]() Workaround options: 1. Run your webhook/function logic before creating the batch call via API, then include the results as dynamic variables in your tasks [(1) ]() 2. Use the agent-level webhook (
webhook_url
) which fires during the call itself for real-time data fetching [(3) ]() If you need a pre-call webhook specifically for batch outbound calls, I'd suggest reaching out to Retell support on [Discord]() to request this feature or discuss potential workarounds for your use case.
​ To learn more, see the sources I considered: [[1] Create Batch Call](https://docs.retellai.com/api-references/create-batch-call) [[2] Create Batch calls](https://docs.retellai.com/deploy/make-batch-call) [[3] Inbound webhook](https://docs.retellai.com/features/inbound-call-webhook) [[4] Node KB, Role-Based Access, Outbound SMS API & More](https://www.retellai.com/changelog/node-kb-role-based-access-outbound-sms-api-more) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
y
@AI Evy Can I cancel a batch call using apis for scheduled batch calls?
a
Thanks for the follow-up, @yoavbg. I'll get back to you soon.
### Answer Based on the available sources, I don't have documentation showing a specific API endpoint to cancel a scheduled batch call. The documentation covers creating batch calls via the API and mentions that scheduled ("Planned") batch calls "cannot be edited once scheduled." [(1) ]() Check out these potentially useful sources: - [Create Batch Call]() - [Create Batch calls]() - [Scale Outreach with Efficient Batch Calling]() Would you like me to try to answer generally based on my knowledge, or would you prefer to reach out to Retell support for confirmation on batch call cancellation capabilities?
​ To learn more, see the sources I considered: [[1] Create Batch calls](https://docs.retellai.com/deploy/make-batch-call) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.