Review book language tags with Eden AI and Grist

Compare an approved OCR page with its volume’s catalog languages and flag confident discrepancies for a librarian in Grist.

26 stepsOperationsProductivity

Free to start, no card required.

How it works

  1. When this happens

    Receive a catalog page review

    Grist

  2. Step 1 · Code

    Set the collection and table

  3. Step 2

    Check the source record

    Follows the first path that matches

    • Complete record

      1. Step 3 · Grist

        Read the current catalog page

      2. Step 4 · Code

        Read the volume’s language codes

      3. Step 5

        Check the source record

        Follows the first path that matches

        • Complete record

          1. Step 6 · Storage

            Read the saved page assessment

          2. Step 7 · Code

            Check the language review receipt

          3. Step 8

            Check the source record

            Follows the first path that matches

            • Complete record

              1. Step 9

                Check for a saved language result

                Follows the first path that matches

                • First language check

                  1. Step 10 · Google Cloud Storage

                    Locate the published OCR page

                  2. Step 11 · Code

                    Verify the OCR object generation

                  3. Step 12 · HTTP

                    Read the public OCR page

                  4. Step 13 · Code

                    Validate and sample the page text

                  5. Step 14 · Storage

                    Reserve the page analysis

                  6. Step 15 · Eden AI

                    Detect the OCR page language

                  7. Step 16 · Code

                    Compare the page and catalog languages

                  8. Step 17 · Storage

                    Save the language and confidence

                • Otherwise

                  Nothing happens

              2. Step 18 · Storage

                Recover the catalog assessment

              3. Step 19 · Grist

                Recheck the page review permission

              4. Step 20 · Code

                Check the catalog revision again

              5. Step 21 · Code

                Prepare review-only columns

              6. Step 22

                Check the source record

                Follows the first path that matches

                • Complete record

                  1. Step 23 · Grist

                    Write the page-level review result

                  2. Step 24 · Code

                    Confirm the catalog review row

                  3. Step 25 · Storage

                    Record the completed page check

                • Otherwise

                  Nothing happens

            • Otherwise

              Nothing happens

        • Otherwise

          Nothing happens

    • Otherwise

      Nothing happens

Before you start

Connect the same Grist page table to the trigger and scope, with Volume_ID, Page_Number, Catalog_Languages, OCR_Generation as text, OCR_SHA256, Public_OCR and Review_State. Set the Google project, public bucket and prefix containing volume/000001.txt, and add Observed_Language, Confidence and Checked_SHA256 to the table. Mark a cleared public page CHECK_LANGUAGE and review discrepancies against its scan before editing any catalog metadata.

Accounts to connect

See all 419 in Operations

Your first automationstarts with one sentence.

Start free with 1,000 credits, no card needed. Rather have it done for you? Our team builds it.

Use template