Creating a processor

Before you can send documents to be processed you must first create a processor. The type of processor you create affects the response fields you get back from a document.

Create a processor

Use the following sample to create a processor and custom endpoint to send requests to.

Console

  1. In the Google Cloud Console, in the Document AI section, go to the Processors page.

    Go to the Processors page

  2. Select Create processor.

  3. Click on the processor type from the list you want to create.

  4. In the side Create processor window specify a processor name.

  5. Select your Region from the list.

  6. Click Create to create your processor.

Use your processor endpoint

After you create your processor you can get the custom endpoint that is generated from the process.

Console

  1. In the Google Cloud Console, in the Document AI section, go to the Processors page.

    Go to the Processors page

  2. Select the processor you want to get information about.

On the processor details page you can see the custom endpoint. It follows the format:

  • https://LOCATION-documentai.googleapis.com/API_VERSION/projects/PROJECT_ID/locations/LOCATION/processors/PROCESSOR_ID

Use this endpoint or the information it contains (PROCESSOR_ID) to send requests.