# OpenAI Dots

Use Felo Data API search results in OpenAI Dots. The agent keeps its own model; Felo supplies data for its tasks.

Use Felo Data API search results in OpenAI Dots. The agent keeps its own model; Felo supplies data for its tasks.

## Before you start

Get an API key and check your available credits. This example uses the Tavily search endpoint; other Data APIs have their own parameters and prices.

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

## Set up the application

**Profile → Computers → Your computer → Allow access → local Codex task**

## Connect the data tool

Download the Python helper into the agent’s execution environment. Run configure there yourself, then let the agent run search. The machine must have Python 3.9+ and network access; a key configured on a different computer is not available here.

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

```bash
python3 felo-data-search.py configure
python3 felo-data-search.py search "Felo API Platform documentation"
```

| Tool | Value |
| --- | --- |
| Name | `felo_data_search` |
| Command | `python3 /ABSOLUTE/PATH/felo-data-search.py search "QUERY"` |
| Output | `results[].title`, `results[].url`, `results[].content` |

## Data API request

| 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
}'
```

## Verify the integration

Run one search and check for a real results array containing title, url and content. Ask the agent to summarize those results and cite the returned URLs. An empty array is a valid result, not proof of failure. Review the API usage record to confirm the request went through Felo.

## Troubleshooting

401: check the key and Authorization header. 402: check credits. 400: check the JSON body and query field. 429 or 5xx: retry with backoff. Save the request_id for support. For Workspace, check script authorization and document sharing; for computer tools, check the key in that execution environment.

## Related Felo documentation

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

## Official application documentation

- [OpenAI Dots](https://learn.chatgpt.com/docs/dots/computers-and-apps)
