Workflow UI Knowledge Base
Introduction
The Workflow UI (also called "Custom UI") is a powerful feature of Sheet Workflows that allows you to transform cell notes into an interactive, step-by-step guided interface. This enables end users to interact with complex spreadsheet operations without needing to understand the underlying formulas, APIs, or automation.
This knowledge base article provides comprehensive information on creating, configuring, and optimizing custom UIs for your spreadsheets.
Table of Contents
- What is Custom UI?
- Getting Started
- Creating a Custom UI
- Cell Note Format
- Step Types and Operations
- UI Navigation and Flow
- API Configuration
- Row Selection Operations
- Best Practices
- Internationalization
- Splash Pages
- Troubleshooting
- Advanced Techniques
What is Custom UI?
The Custom UI is a sidebar-based interface that guides users through a sequence of operations in Google Sheets. It translates specially formatted cell notes into interactive steps with instructions and action buttons.
Key characteristics:
- Step-by-step wizard interface
- Instructions and action buttons for each step
- Support for operations on cells, rows, files, and API configurations
- Automatic handling of cell navigation and selection
- Rate limiting for batch operations
- Support for multiple languages and Right-to-Left layouts
Getting Started
Accessing the Custom UI
To access the Custom UI feature:
- Open your Google Sheet
- Click Extensions > Sheet Workflows > Workflow UI in the menu
- The sidebar will appear with all configured steps
Basic Workflow
A typical Custom UI workflow consists of:
- Adding specially formatted notes to cells in your spreadsheet using the sticky note icon
- Accessing the Workflow UI from the menu
- Users following the sequential steps in the sidebar
- Each step can navigate to specific cells, run operations, or configure settings
Creating a Custom UI
Basic Structure
The Custom UI is built from cell notes placed strategically in your spreadsheet. The system scans the active sheet for specially formatted notes and converts them into interactive steps.
Each step typically consists of:
- Instructional text
- An optional action button
- Automatic navigation to the relevant cell
Planning Your UI
Before adding notes, plan your workflow:
- Determine the steps: List all operations users need to perform
- Choose cell locations: Decide where each step should be anchored
- Organize sequentially: Arrange steps in a logical order
- Define operations: Determine what each step should do (navigate, run tasks, etc.)
Creating Cell Notes
To create the custom UI steps:
- Select the cell where you want to add a step
- Click the sticky note icon (📝) in the Sheet Workflows sidebar
- A dialog will appear allowing you to add or edit the cell note
- Enter your formatted note with the appropriate keys (Info, Button, Type, etc.)
- Click "Save Note"
Simple Example
Let's say you want to create a two-step workflow:
- Navigate to cell A2 and enter a value
- Run a task in column B using that value
You would:
- Select cell A2 → Click the sticky note icon → Add
Info: Enter your input data here → Save Note
- Select cell B1 → Click the sticky note icon → Add:
Info: Click to process your data
Button: Run Processing
Type: tasks
→ Save Note
Cell notes are written in a simple Key: Value format, with each key-value pair on a new line.
Recognized Keys
| Key |
Description |
Example |
Info |
Instructional text shown in the step |
Info: Enter your API key here |
Button |
Text displayed on the action button |
Button: Run Analysis |
Type |
Operation type (tasks, files, download, api_config) |
Type: tasks |
RPM |
Rate limit for task execution (tasks per minute) |
RPM: 10 |
Label |
Optional display label |
Label: Configuration |
Field |
Defines an input field (advanced) |
Field: apiKey |
Files |
Enables file operations |
Files: true |
Download |
Enables download operations |
Download: true |
Note Placement
The position of the note in the spreadsheet determines its behavior:
- Row 1 cells: Notes in the first row are treated as column operations
- Other cells: Notes elsewhere specify exact cell operations
Example Cell Notes
Info: Enter your API key
Button: Save Configuration
Type: api_config
Info: Run the analysis on selected rows
Button: Process Data
Type: tasks
RPM: 5
Info: Download the results
Button: Download File
Type: download
Step Types and Operations
The Type parameter determines what operation a step performs when its button is clicked.
tasks
The most common type, tasks runs Sheet Workflows operations on cells or rows.
Info: Generate summaries for selected rows
Button: Generate Summaries
Type: tasks
RPM: 10
- With Column: Runs the operation on selected rows in that column
- With Cell: Runs the operation on a specific cell
- With RPM: Limits execution rate to prevent API throttling
files
Allows inserting files from Google Drive into the current cell.
Info: Insert reference files here
Button: Choose Files
Type: files
When clicked, opens the Google Picker dialog to select files from Drive.
download
Creates a download link for a Google Drive file referenced in the cell.
Info: Get the latest report
Button: Download Report
Type: download
The cell should contain a hyperlink to a Google Drive file.
api_config
Creates a configuration form for API settings.
Info: Configure OpenAI API
Type: api_config
This type is typically managed through the Share APIs feature in the Sheet Workflows sidebar rather than direct cell notes.
Default (no type specified)
If no type is specified, the step simply navigates to the cell location.
Info: Enter your data here
UI Navigation and Flow
Navigation Controls
The Custom UI provides navigation buttons at the bottom of the sidebar:
- Previous step (left arrow)
- Next step (right arrow)
Step Execution
When a user clicks an action button on a step:
- The button shows a loading state
- The operation executes (tasks run, files opened, etc.)
- The UI automatically advances to the next step if appropriate
Sequential Operations
Steps can be chained together to run in sequence:
- If a step has a button, clicking it executes that step's operation
- If the next step doesn't have a button (info-only), it's automatically included in the sequence
- This continues until reaching a step that does have a button
This enables creating multi-step operations that execute with a single click.
API Configuration
The Custom UI can be used to collect and save API configurations through the UI. This allows you to create guided workflows that prompt users to enter their API credentials without them having to manually edit configuration files.
Setting Up Shared API Configurations
To set up shared API configurations for your workflow:
-
In the Sheet Workflows sidebar, click on the gear icon (⚙️) to open the "Manage APIs" interface
-
From the dropdown menu, select an API that you want to share with your workflow users
-
Click the Share button (with the share icon 🔗)
-
In the dialog that appears:
- Enter the Info Text that will be displayed to users in the workflow UI
- Optionally provide a Link to where users can obtain their API key
- Click "Save"
The system automatically handles the creation of all necessary backend structures. You don't need to manually create any hidden sheets or set up columns - this is all done for you behind the scenes.
When a user runs your workflow with a shared API configuration:
-
The Workflow UI automatically detects if any API configurations are missing
-
It presents the user with a configuration form containing:
- The info text you provided when sharing the API
- Input fields for all required API credentials (with appropriate security for sensitive fields)
- A link to where they can get their API key (if you provided one)
- A "Save" button
-
After the user enters their API information and clicks Save:
- The configuration is securely stored in their user properties
- A success message appears
- The step is automatically removed from the workflow
- The workflow continues to the next step
This seamless experience allows workflow creators to incorporate API-powered functionality without requiring users to understand the technical details of API configuration.
Row Selection Operations
A powerful feature of the Custom UI is the ability to run operations on selected rows within a column.
Setting Up a Row Operation
- Select a cell in row 1 of your target column
- Click the sticky note icon in the Sheet Workflows sidebar
- Enter a note with the following format:
Info: Process selected customers
Button: Generate Reports
Type: tasks
RPM: 5
- Click "Save Note"
When users click the button in the Workflow UI:
- If rows are selected: The operation runs on just those rows
- If no rows are selected: The UI prompts users to select rows first
Row Selection Management
The UI helps users track which rows are selected:
- Displays the selection range (e.g., "12,21:22")
- Provides a refresh button to update the selection count
- Shows a note explaining that the operation will run on selected rows
Best Practices
Designing an Effective UI
- Clear Instructions: Write concise, action-oriented step information
- Logical Flow: Arrange steps in a natural sequence
- Consistent Terminology: Use the same terms throughout your UI
- Visual Organization: Group related steps in the same column
- Feedback: Include steps that confirm successful operations
- Use RPM Limits: For operations that call external APIs, set appropriate rate limits
- Split Large Operations: Break down large tasks into smaller chunks
- Pre-validate Data: Include steps that check data quality before processing
User Experience
- Onboarding Step: Start with an introduction step explaining the workflow
- Clear Success States: Include confirmation steps after complex operations
- Error Handling: Add steps for common error scenarios
- Progress Indicators: Use step numbering to show progress
Internationalization
The Custom UI supports multiple languages and right-to-left (RTL) layouts.
Supported Languages
The UI automatically displays in the user's selected language. Currently supported:
- English (en)
- Hebrew (he - RTL)
- Spanish (es)
- French (fr)
- German (de)
RTL Support
For RTL languages like Hebrew:
- The UI automatically adjusts layout direction
- Navigation buttons are reversed
- Content alignment is adjusted
Splash Pages
For easy distribution of your workflows, you can create a splash page with installation instructions.
Creating a Splash Page
To create a splash page:
- In the Sheet Workflows sidebar, click on the cloud download icon (☁️⬇️)
- This automatically creates a new sheet named "START HERE" at the beginning of your spreadsheet
- The splash page includes:
- A link to copy the spreadsheet
- Instructions to install Sheet Workflows
- Guidance on accessing the Workflow UI
This is particularly useful when sharing workflows with new users, as it provides clear instructions for getting started.
Troubleshooting
Common Issues
-
Steps not appearing:
- Check that cell notes follow the exact Key: Value format
- Verify you're on the correct sheet
- Try refreshing the UI using the refresh button
-
Buttons not working:
- Check if the operation type is correct
- Verify that referenced cells or columns exist
- Check for permissions issues (for files/downloads)
-
Row operations not running:
- Ensure rows are properly selected
- Verify the column letter is correct
- Check if the RPM setting is too restrictive
Use these techniques to troubleshoot Custom UI issues:
- Browser console logs provide details about step processing
- Test individual operations separately before combining in the UI
- If using shared APIs, check the API configuration in the Manage APIs interface
Advanced Techniques
Combining with Other Sheet Workflows Features
The Custom UI can trigger various Sheet Workflows operations:
- Language model completions (LM function)
- Formula generation
- Sheet formatting
- API calls
- File operations
Dynamic Step Generation
For advanced scenarios, you can use the Sheet Workflows sidebar to add multiple notes in a pattern:
- Design your workflow steps in a spreadsheet
- Use the sticky note icon to add each note systematically
- Test the complete workflow before sharing
Custom API Integration
The Custom UI can be extended to support custom API integrations:
- Use the Manage APIs interface to define API configurations
- Share the APIs with users via the Share API option
- Create workflow steps that use these APIs
By leveraging the Custom UI / Workflow UI feature, you can transform complex spreadsheet operations into guided, user-friendly experiences that require no technical knowledge to use. This empowers teams to implement sophisticated data workflows while maintaining accessibility for all users.