AI Playground
The AI Playground in CloudFiles allows users to interact with documents using natural language queries. Users can upload files, test different queries, and evaluate their effectiveness in extracting, classifying, or executing the input prompt based on the contents of the uploaded file. It provides a space to experiment with various document processing capabilities.

Users can upload a single file at a time. Once uploaded, the file is automatically stored as a Content Document within Salesforce for secure management and processing.
The file types supported in the AI playground include:
- PDFs .pdf
- Image(JPEG, PNG etc) .jpeg .png

The Document Viewer allows users to preview, zoom in, scroll, and download the uploaded document for easy reference.
The Query Panel enables users to test the effectiveness of queries by inputting relevant prompts and viewing results with uploaded documents. Using Natural Language Processing (NLP), it extracts specific information from both printed and handwritten text, including text from images.
Users can enter queries in any language, and the system processes them based on different prompt types:
- Classification Prompts – Categorize documents (e.g., "Is this a Passport, Driving License, or neither?").
- Extraction Prompts – Retrieve specific details (e.g., "Extract the passport number.").
- Validation Prompts – Verify extracted data (e.g., "Does this document contain a valid ID number?").
- Decision-Making Prompts – Automate workflow actions (e.g., "Should this document be marked as verified?").
- Summary Prompts – Generate concise summaries (e.g., "Summarize the key details of this contract.").
- Complex Calculation Prompts – Extract data and perform calculations on it (e.g., "Find the invoice date and add 30 days to determine the due date.").
Extracted results are always text-based and must be relevant to the document. If the system is 99% or more confident, it returns the extracted result. Otherwise, for low-confidence or out-of-context queries, it displays NA to ensure accuracy.
The Query History section stores and displays previously asked queries along with their extracted answers for quick reference.
This iterative process of querying with different prompts helps you fine-tune your queries for optimal results before implementing them in your workflows.
