AskYourPDF integration enables dynamic, interactive conversations with PDF documents through an AI-powered API. With Relevance AI, you can elevate your document processing by leveraging intelligent AI Agents to extract insights and engage in meaningful dialogue with your content.



AskYourPDF allows for dynamic interactions with PDF documents, while Relevance AI empowers these interactions with advanced AI Agents that can analyze and respond to queries in real-time.
Instant Document Mastery
Your AI agent gains immediate comprehension of complex documents through advanced semantic analysis and natural language processing.
Cross-Document Intelligence
Enable your agent to synthesize insights across multiple PDFs simultaneously, uncovering hidden connections and patterns.
Precision Information Extraction
Equip your agent with the ability to pull specific data points from documents with 95% accuracy using semantic search capabilities.
Relevance AI seamlessly integrates with AskYourPDF to enhance your document workflows with intelligent insights.
What you’ll need
You don't need to be a developer to set up this integration. Follow this simple guide to get started:
- A Relevance AI account
- An Airtable account with access to the base and table you'd like to use
- Authorization (you'll connect securely using OAuth—no sensitive info stored manually)
Security & Reliability
AskYourPDF integration enables dynamic, interactive conversations with PDF documents through an AI-powered API. This integration allows you to upload documents, extract information, and engage in intelligent conversations with document content. Key benefits include seamless document processing and analysis, interactive Q&A capabilities with PDF content, support for both URL and file-based document uploads, and real-time chat functionality with document context.
To get started, ensure you have an AskYourPDF account with OAuth credentials and a valid API access token. The integration supports PDF file formats and requires HTTPS for API calls. You will need read/write access for document uploads and authentication permissions for API calls.
For authentication setup, use the following code snippet:
const headers = { 'Authorization': 'Bearer YOUR_OAUTH_TOKEN', 'Content-Type': 'application/json' };
Base configuration can be set up as follows:
const baseConfig = { base_url: 'https://api.askyourpdf.com', oauth_account_id: 'YOUR_ACCOUNT_ID' };
To upload a document via URL, use this example request:
const uploadDocumentUrl = { method: 'POST', path: '/v1/document/upload', oauth_account_id: 'YOUR_ACCOUNT_ID', body: { url: 'https://example.com/document.pdf' } };
The expected response will include a document ID and status:
{ response_body: { docId: "doc_123xyz", status: "success" }, status: 200 }
For file uploads, the request looks like this:
const uploadDocumentFile = { oauth_account_id: 'YOUR_ACCOUNT_ID', file: '/tmp/document.pdf' };
And the expected response is similar:
{ response_body: { docId: "doc_123xyz", status: "success" }, status: 200 }
To chat with the document, use the following request format:
const chatRequest = { oauth_account_id: 'YOUR_ACCOUNT_ID', docId: 'doc_123xyz', sender: 'user', message: 'What is the main topic of this document?', stream: false };
The expected response will provide an answer and context:
{ response_body: { answer: "The main topic is...", context: "Based on the document content..." }, status: 200 }
Common issues include authentication errors, document upload failures, API rate limiting, and document processing issues. Solutions involve verifying OAuth token validity, ensuring the document is in PDF format, implementing request throttling, and checking file size limits.
For best practices, implement error handling, manage document IDs for frequent access, and optimize performance through streaming and request queuing.
For more information, refer to the API documentation at https://api.askyourpdf.com/docs and contact support for assistance.
Remember to replace placeholder values (YOUR_ACCOUNT_ID, YOUR_OAUTH_TOKEN) with actual credentials when implementing the integration.
No training on your data
Your data remains private and is never utilized for model training purposes.
Security first
We never store anything we don’t need to. The inputs or outputs of your tools are never stored.

To get the most out of the AskYourPDF + Relevance AI integration without writing code:
- Start with well-structured PDFs: Ensure your documents are clear and organized for optimal information extraction.
- Utilize the chat feature: Engage with the document content interactively to extract insights and clarify information.
- Manage document uploads carefully: Use valid URLs or ensure files are in PDF format and accessible during uploads.
- Test interactions: Experiment with different queries on sample documents to refine your understanding of the API's capabilities.
- Monitor API usage: Be aware of rate limits and implement request throttling to avoid disruptions in service.