> This is a page from the ElevenLabs documentation. For a complete page index, fetch https://elevenlabs.io/docs/llms.txt. For the full documentation in a single file, fetch https://elevenlabs.io/docs/llms-full.txt.

# वॉइसमेल डिटेक्शन

## खास जानकारी

**Voicemail Detection** टूल आपके ElevenLabs एजेंट को यह अपने-आप पहचानने देता है कि कॉल का जवाब किसी इंसान ने नहीं, बल्कि वॉइसमेल सिस्टम ने दिया है। यह सिस्टम टूल एजेंट्स को ऑटोमेटेड वॉइसमेल स्थितियां आसानी से संभालने देता है: वे पहले से कॉन्फ़िगर किया गया मैसेज छोड़ सकते हैं या तुरंत कॉल खत्म कर सकते हैं।

## सुविधाएं

* **ऑटोमैटिक डिटेक्शन**: LLM ऑटोमेटेड ग्रीटिंग और प्रॉम्प्ट के आधार पर वॉइसमेल सिस्टम पहचानने के लिए बातचीत के पैटर्न का विश्लेषण करता है
* **कॉन्फ़िगर करने योग्य रिस्पॉन्स**: वॉइसमेल मिलने पर कस्टम वॉइसमेल मैसेज छोड़ें या कॉल तुरंत खत्म करें
* **कॉल टर्मिनेशन**: डिटेक्शन और वैकल्पिक मैसेज डिलीवरी के बाद, कॉल अपने-आप खत्म हो जाती है
* **स्टेटस ट्रैकिंग**: वॉइसमेल डिटेक्शन इवेंट लॉग किए जाते हैं और इन्हें बातचीत के इतिहास और बैच कॉल के नतीजों में देखा जा सकता है

**Parameters**:

* `reason` (string, आवश्यक): voicemail detect होने का कारण (जैसे, "automated greeting detected", "no human response")

**Function call format**:

```json
{
  "type": "function",
  "function": {
    "name": "voicemail_detection",
    "arguments": "{\"reason\": \"Automated greeting detected with request to leave message\"}"
  }
}
```

## कॉन्फ़िगरेशन विकल्प

वॉइसमेल डिटेक्शन टूल को इन विकल्पों के साथ कॉन्फ़िगर किया जा सकता है:

![वॉइसमेल डिटेक्शन कॉन्फ़िगरेशन
इंटरफ़ेस](/docs/_fern-img/f2f9a87e27ce0d5f631d2d294163e8df39e6dee5b3a98aaba692589c66364550.webp)

* **वॉइसमेल मैसेज**: वॉइसमेल डिटेक्ट होने पर चलाने के लिए आप वैकल्पिक कस्टम मैसेज कॉन्फ़िगर कर सकते हैं। यह मैसेज [डायनामिक वेरिएबल](/docs/hi/eleven-agents/customization/personalization/dynamic-variables) सपोर्ट करता है, जिससे आप `{{user_name}}` या `{{appointment_time}}` जैसी रनटाइम वैल्यू के साथ वॉइसमेल मैसेज को पर्सनलाइज़ कर सकते हैं

## API इम्प्लीमेंटेशन

API के ज़रिए एजेंट बनाते समय, आप अपने एजेंट कॉन्फ़िगरेशन में Voicemail Detection टूल जोड़ सकते हैं। इसे सिस्टम टूल के रूप में तय किया जाना चाहिए:

```python
from elevenlabs import AgentConfig, ConversationalConfig, ElevenLabs

elevenlabs = ElevenLabs(api_key="YOUR_API_KEY")

response = elevenlabs.conversational_ai.agents.create(
    conversation_config=ConversationalConfig(
        agent=AgentConfig(
            prompt={
                "built_in_tools": {
                    "voicemail_detection": {
                        "type": "system",
                        "name": "voicemail_detection",
                        # Optional: customize when the tool should be triggered
                        "description": "",
                        "params": {
                            "system_tool_type": "voicemail_detection",
                            # Optional: message left when voicemail is detected
                            "voicemail_message": "Sorry I missed you. I'll call back later.",
                        },
                    }
                }
            },
        ),
    ),
)
```

```javascript
import { ElevenLabsClient } from "@elevenlabs/elevenlabs-js";

const elevenlabs = new ElevenLabsClient({
  apiKey: "YOUR_API_KEY",
});

await elevenlabs.conversationalAi.agents.create({
  conversationConfig: {
    agent: {
      prompt: {
        builtInTools: {
          voicemailDetection: {
            type: "system",
            name: "voicemail_detection",
            description: "", // Optional: Customize when the tool should be triggered
            params: {
              systemToolType: "voicemail_detection",
              // Optional: message left when voicemail is detected
              voicemailMessage: "Sorry I missed you. I'll call back later.",
            },
          },
        },
      },
    },
  },
});
```