Trillo Workbench Lessons
  • Introduction
    • Sample Application
  • Introduction to Lessons
    • IDE Lessons
    • Annotated Directory Structure
  • New classes using workbench UI
  • Save many records into tables using the workbench UI
  • New function using Workbench UI
  • Introduction to Code Lessons
    • Anatomy of Trillo Function
  • Begin Code Lessons
    • Paginated list
    • Pagination using SQL Query
    • DataIterator
    • Read file from cloud storage bucket
    • Generating signed URL for a file download
    • Import a CSV file from bucket into BigQuery
    • Query a dataset of BigQuery
    • Using an Document AI Processor
    • Chat using GenAI
    • Function calling another function
    • Accessing Runtime Context
    • Write a workflow (pipeline for data processing)
  • Appendixes
    • ServerlessFunction
    • Map, List and Tree
    • Logs and Audit Logs
    • DataRequest Class
    • DataResponse Class
    • DataIterator Class
    • Result
Powered by GitBook
On this page

Introduction to Lessons

The following lessons when performed in the listed order can jump start development of a large application using Trillo Workbench.

Lesson

Description

How to exercise

New class using the workbench UI

Create a few entity classes using Trillo Workbench UI (WB UI). Trillo Workbench creates tables for them. These tables are used in the following exercise.

WB UI

Save many records into a table using the workbench UI

Guides you to populate tables created above. The JSON files for the parameters are provided.

WB UI

Simple function using the workbench UI

This walks you through how to create functions using Trillo Workbench. Learning these simple steps will be helpful in deploying a function on the cloud.

WB UI

Paginated List

Shows how to read data from a large table using pagination.

IDE

Pagination using SQL Query

Show how to read a page of large result set created using multiple tables (using join)

IDE

DataIterator

While iterating through a large list for processing each record, you can hide pagination within a higher level abstraction. This class lets you achieve that.

IDE

Read file from cloud storage bucket

You will come across several use cases when a file has to be read from a cloud storage bucket (for example for uploading into BigQuery, processing using cloud services such as Document AI. This lesson walks you through steps to achieve it using Trillo Workbench APIs.

IDE

Generating signed URL for an upload and download

In order to provide secure access to a file on a cloud storage bucket to a client, a signed URL is used. This lesson shows how to create a signed URL to a file using Trillo Workbench APIs.

IDE

Import a CSV file from bucket into BigQuery

This is a very common use case, You receive several CSV (or ndjson or parquet) files. Thes indeed to be imported in the BigQuery. This lesson shows how easy it is to do it using Trillo Workbench APIs.

IDE

Query a dataset of BigQuery

Accessing data from multiple BigQuery tables using a query for further analysis is a common use case. This lesson demonstrates it.

IDE

Using a Document AI Processor

This lesson teaches how to use Trillo Workbench APIs to process an invoice and extract entities out of it.

IDE

Chat using Gen Ai

This example shows how to implement generative AI use cases using GCP GenAI apis.

IDE

Function calling another function

This example shows how a function calls another function. This is useful to write modular and reusable code.

IDE

Accessing Runtime Context

This example shows how to access runtime context of the function such as user id, email, taskId, etc.

IDE

Write a workflow (pipeline for data processing)

PreviousSample ApplicationNextIDE Lessons

Last updated 1 year ago