# Claude Duet

Claude Duet में Felo Data API के खोज परिणाम उपयोग करें। एजेंट अपना मूल मॉडल बनाए रखता है।

Claude Duet में Felo Data API के खोज परिणाम उपयोग करें। एजेंट अपना मूल मॉडल बनाए रखता है।

## शुरू करने से पहले

API key बनाएँ और शेष क्रेडिट जाँचें। उदाहरण Tavily Search का है; अन्य API के पैरामीटर और मूल्य अलग हैं।

- [API Keys](https://openapi.felo.ai/console/api-keys)
- [Data APIs](https://openapi.felo.ai/hi/apis)
- [Tavily](https://openapi.felo.ai/hi/apis/tavily)

## ऐप सेटअप

**Google Sheets → Extensions → Apps Script → Google Docs → Claude Google Drive connector → Duet**

## खोज टूल जोड़ें

Google Workspace के माध्यम से: Apps Script Felo Data API बुलाकर परिणाम शीट और Google दस्तावेज़ में लिखता है, जिन्हें एजेंट पढ़ता है।

[felo-data-sheets.gs](https://openapi.felo.ai/docs-assets/integrations/felo-data-sheets.gs)

1. Google शीट में Extensions → Apps Script खोलें। डाउनलोड किया कोड सहेजें, setupFeloDataSheet चलाएँ और अनुमति दें।
2. Queries!A2 भरें। Project Settings → Script Properties में FELO_API_KEY जोड़ें; सेल या चैट में नहीं।
3. refreshFeloData चलाएँ। Results में डेटा, Config!B1 में दस्तावेज़ लिंक मिलेगा। दोबारा चलाने पर वही दस्तावेज़ अपडेट होगा।
4. एजेंट में वही Google खाता जोड़ें, पढ़ने की अनुमति दें और स्रोतों सहित सारांश के लिए लिंक दें।

```text
setupFeloDataSheet()
refreshFeloData()
```

## Data API अनुरोध

| Field | Value |
| --- | --- |
| Method | `POST` |
| URL | `https://openapi.felo.ai/v1/beta/tavily/search` |
| Authorization | `Bearer YOUR_FELO_API_KEY` |
| OpenAPI credential | `X-API-Key: YOUR_FELO_API_KEY` |
| Content-Type | `application/json` |
| query | `Felo API Platform documentation` |
| max_results | `3` |
| Output | `results[].title`, `results[].url`, `results[].content` |

```json
{
  "query": "Felo API Platform documentation",
  "max_results": 3
}
```

```bash
export FELO_API_KEY='YOUR_FELO_API_KEY'
curl 'https://openapi.felo.ai/v1/beta/tavily/search' \
  -H "Authorization: Bearer $FELO_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "query": "Felo API Platform documentation",
  "max_results": 3
}'
```

## जाँच करें

results में title, url, content जाँचें। स्रोत URL के साथ सारांश माँगें और कंसोल में Felo उपयोग देखें। खाली ऐरे भी मान्य है।

## समस्या समाधान

401: key और Authorization; 402: बैलेंस; 400: JSON और query। 429/5xx पर बढ़ते अंतराल से दोहराएँ। request_id रखें। Workspace अनुमति या निष्पादन वातावरण की key भी जाँचें।

## संबंधित Felo दस्तावेज़

- [Data API](https://openapi.felo.ai/hi/docs/guides/data-api.md)
- [API Reference](https://openapi.felo.ai/hi/docs/data-api)
- [Authentication](https://openapi.felo.ai/hi/docs/authentication.md)
- [Apps & Agents](https://openapi.felo.ai/hi/apps)

## ऐप के आधिकारिक दस्तावेज़

- [Claude Duet](https://support.claude.com/en/articles/17631495-get-started-with-claude-duet)

- [Google Apps Script: UrlFetchApp](https://developers.google.com/apps-script/reference/url-fetch/url-fetch-app)
- [Google Apps Script: PropertiesService](https://developers.google.com/apps-script/reference/properties/properties-service)
