You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

求助:如何在Twilio Studio的IVR流程中录制完整呼入电话?

How to Record Inbound Calls in Twilio Studio IVR

Hey there, I’ve built several Twilio Studio IVRs and run into this exact issue before—outbound recording works easily, but inbound can feel hidden at first. Let me break down two straightforward ways to get this working for you:

1. Auto-Record All Inbound Calls via the Flow Trigger

This is the simplest method if you want every call entering your IVR to be recorded from start to finish:

  • Open your Twilio Studio Flow and locate the Trigger component (the first element in your flow, marked with a phone icon).
  • Click into its configuration panel, then scroll down to the Recording section.
  • Check the box labeled Record call. From here you can tweak settings like:
    • Recording direction: Choose to record both parties, just the caller, or just the IVR.
    • Play beep: Toggle whether a tone plays when recording starts (required by law in some regions).
    • Recording status callback: Enter a URL if you want to receive a webhook with details about the recording once it’s complete.
  • Save your changes and Publish the flow. Any inbound call routed to this flow will now automatically record.

2. Conditional/On-Demand Recording (For Specific Flow Nodes)

If you only want to record parts of the call (e.g., after the caller selects a menu option), use a Twilio Function or HTTP request to start recording mid-flow:

  • First, create a Twilio Function (in your Twilio Console > Functions > Services) with code like this to trigger recording:
    exports.handler = function(context, event, callback) {
      const client = require('twilio')(context.ACCOUNT_SID, context.AUTH_TOKEN);
      client.calls(event.CallSid)
            .recordings
            .create({
              recordingStatusCallback: 'https://your-endpoint.com/handle-recording',
              direction: 'both'
            })
            .then(recording => callback(null, { success: true }))
            .catch(err => callback(err));
    };
    
  • In your Studio Flow, add a Run Function component at the point where you want recording to start.
  • Configure the component to use your new Function, and pass the CallSid as a parameter using the Studio variable {{trigger.CallSid}}.
  • To stop recording later in the flow, create a similar Function that calls the stop endpoint for the recording, and add another Run Function component to trigger it.

Quick Notes to Avoid Headaches

  • Double-check that your Twilio phone number is linked to the correct Studio Flow (Console > Phone Numbers > Manage > Active Numbers > select your number > Voice & Fax > Configure with Studio Flow).
  • Recordings are stored in your Twilio Console under Voice > Recordings—you can download them or access their URLs there.
  • Remember that Twilio charges per minute for call recordings, so keep an eye on usage if you’re recording high volumes.

内容的提问来源于stack exchange,提问作者muhammad imran

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.25 04:14:30