> ## Documentation Index
> Fetch the complete documentation index at: https://invoca-5bd45748-mintlify-8d5425ca.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Automated Speech Recognition

> Enable and configure automated speech recognition (ASR) on Invoca campaigns to transcribe recorded calls for signals, via the Network Integration API.

# Automated Speech Recognition

For full details on creating and updating campaigns via the API, see [Advertiser Campaigns](/en/latest/api_documentation/network_integration/advertiser_campaigns).

## Manage speech recognition for campaigns

Speech recognition can be set for a campaign to determine whether or not the caller may respond verbally to prompts in the IVR. When set to true, the caller can respond both verbally and with keypresses.

### Set Speech Recognition

To enable speech recognition for a campaign, set `"asr_enabled"` to true.

POST

`https://invoca.net/api/@@CAMPAIGN_FEATURES_API_VERSION/<network_id>/advertisers/<advertiser_id_from_network>/advertiser_campaigns/<advertiser_campaign_id_from_network>.json`

Example Request Body

```json theme={null}
{
  "ivr_tree": {
    "asr_enabled": true,
    "root": {
      "node_type": "YesOrNo",
      "prompt": "Are you having a good day?",
      "children": [
        {
          "node_type": "Connect",
          "destination_phone_number": "8007381560",
          "destination_country_code": "1"
        },
        {
          "node_type": "Connect",
          "destination_phone_number": "8007381560",
          "destination_country_code": "1"
        }
      ]
    }
  }
}
```
