Skip to main content

Tutorial: File Analysis Agent

This agent is designed to manage document file uploads in .txt or .pdf formats.

PDFCrowd API Key

  1. Go to https://pdfcrowd.com/ and create an account if you don’t have one yet.
  2. Navigate to the left side bar and click “API v2 License”. Copy your API Key and store in a secure location, or you can add them to your SmythOS vault. Click here to learn more about adding your keys to the vault.
alt text

Base64 Conversion

  1. Go to https://www.base64encode.org/
  2. Enter your PDFCrowd username and API key in the following format: username:apikey
alt text
  1. Next, click Encode, then copy the converted code and store it in a secure location.
alt text

Agent Setup

  1. In SmythOS, navigate to the templates tab.
alt text
  1. You can scroll down to find the File Analysis Agent agent or simply search for it in the Search tab, then click the Remix button.
alt text
  1. Allow the template to initialize and configure.

PDF to Text Component Setup

  1. In the builder, find the PDF to Text component. Click the gear icon to open the settings, then click the key icon.
alt text
  1. Scroll down to the bottom and click Add Key.
alt text
  1. Name your API key for easy identification, enter the Base64 key of your PDFCrowd credentials, and click Save to continue.
alt text

Click here to learn more about adding your keys to the vault.

  1. Remember to click the check icon to save your configuration.
alt text
  1. You’re all set!

Agent Test

  1. In the builder, enable debug mode.
alt text
  1. Navigate to the APIEndpoint component and click the bug icon.
alt text
  1. Click Choose File to upload the file you want to analyze, then click Step.
alt text
  1. The module will turn green when completed. Click Step in the top right corner of the builder for a step-by-step process of the modules, or click Run to execute the entire process.
alt text
  1. Hover over reply on the LLM component to view the outputs.
alt text