> ## Documentation Index
> Fetch the complete documentation index at: https://docs.raydocs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Integrate Raydocs with AI ✨

> Give your AI assistant full Raydocs documentation context

Build with Raydocs faster using AI assistants that understand our APIs, SDKs, and integration patterns. This guide shows you how to provide complete context so your assistant can answer questions and generate accurate code.

## Quick Start: URL Context

Provide this URL directly to your AI assistant:

```
https://docs.raydocs.com/llms-full.txt
```

Start your chat with:

```
Retrieved and processed the Raydocs documentation from this provided URL:
https://docs.raydocs.com/llms-full.txt.
Use it as context in this chat to answer my questions.
```

## Method 2: Direct Content Injection

If your AI tool does not support URL fetching:

<Steps>
  <Step title="Download the documentation">
    Open `https://docs.raydocs.com/llms-full.txt` in your browser.
  </Step>

  <Step title="Copy the full content">
    Select all content and copy it to your clipboard.
  </Step>

  <Step title="Paste into your AI tool">
    Paste the documentation before your first question.
  </Step>
</Steps>

<Tip>
  If you hit token limits, paste only the sections related to your task first, then expand context as needed.
</Tip>

## Example Prompts

### Basic Integration

```
Using the Raydocs docs, show me how to create a workspace and template with the API.
```

### End-to-End Extraction

```
Create a complete workflow that uploads documents, runs an extraction, and fetches results.
```

### Auth and Security

```
How do I authenticate Raydocs API requests and rotate access tokens safely?
```

## Best Practices

* Mention what you're building (web app, backend service, automation job) for more precise guidance.
* Ask for complete, runnable examples including error handling and edge cases.
* Validate endpoint paths and required scopes against the API reference.
* Build and test incrementally rather than implementing everything at once.

## Troubleshooting

<AccordionGroup>
  <Accordion title="AI doesn’t fetch URL content">
    Use the direct content injection method and paste the relevant sections.
  </Accordion>

  <Accordion title="Token limit exceeded">
    Paste only the sections you need (for example, API keys, workspaces, and sessions), then expand if needed.
  </Accordion>
</AccordionGroup>

## Next Steps

<CardGroup cols={2}>
  <Card title="API Keys" icon="key" href="/api-reference/api-keys">
    Create and manage access tokens for API authentication.
  </Card>

  <Card title="Full Workflow" icon="sparkles" href="/api-reference/cookbook/full-workflow">
    Complete end-to-end extraction example using the API.
  </Card>

  <Card title="Extraction Schema" icon="code" href="/guides/extraction-schema">
    Define the JSON schema for your extraction template.
  </Card>
</CardGroup>
