FlowRunner
Features Pricing
Theme
Start Free

A signed-in Cloudbrowser browser for each new task

Add a task in Airtable and this flow forks your paused signed-in template browser in Cloudbrowser for it, limits it to the task's sites and puts a View Only Live View link on the task.

The prompt

When a task is added to our Tasks table in Airtable, fork our paused template browser in Cloudbrowser for it, named after the task, so it starts with the template's sign-in. If the template is running, pause it first. Limit the new browser to the domains listed on the task, create a view-only Live View link, and write the browser ID, its name, what it was forked from and when, and the link back to the task. If the task asks for Control, ask me in Slack first with Issue a Control link and Keep it view only buttons, wait for the answer, and only then create the Control link and add it to the task.

FlowRunner Prompt to Flow built this flow from that request. Here it is as it opens in the editor.

The flow

No Yes Yes No Yes Starts the flow New task inAirtable Action Limit it to thetask's sites Action List the browsers Action Write the browserto the task Action Pause thetemplate Code Find the task'sbrowser Code Prepare the Controllink update Action Check thetemplate Action Confirm it staysview only Code Write the question forthe owner Action Create a Controllink Action Create a view-onlyLive View link Condition Control approved? Action Write the Controllink to the task Code Read the task Action Fork the templatefor the task Condition Template paused? Condition Control requested? Asks a person Wait for the owner'sanswer Asks a person Ask the workspaceowner Code Prepare the taskupdate

Download the file, then in FlowRunner click + beside Flows, pick it under Import a Flow Version and click Create. How importing works

What each step does

  1. New task in Airtable Checks the Tasks table in Airtable every 5 minutes for a new task: its name, the sites it needs and whether it asks for View only or Control.
  2. Check the template Reads the template browser in Cloudbrowser. Fork Browser needs a paused source, so a template that is still running is paused first.
  3. Fork the template for the task Creates the task's own browser from the template's saved profile, named after the task, with the template's cookies and site storage, and waits for the fork to finish. The run then finds the new browser in the browser list by that name.
  4. Limit it to the task's sites Puts the browser on an Allow List of the domains written on the task and waits until Cloudbrowser confirms the policy is in effect. A task with no domains listed keeps Allow All.
  5. Create a view-only Live View link Issues a View Only Live View link to the browser. Whoever opens it signs in to Cloudbrowser and can watch, not click.
  6. Write the browser to the task Writes the browser ID and name, the template it was forked from, the date and the Live View link to the task record.
  7. Ask the workspace owner A task that asks for Control goes to the owner in Slack: the task, the browser, the template, the sites allowed, and two buttons, Issue a Control link and Keep it view only.
  8. Wait for the owner's answer The run waits for the click. Issue a Control link creates a Control link and writes it to the task. Keep it view only says so in the Slack thread, and nothing more is issued.

Before you turn it on

  • Create a personal API token on the API Tokens page of the Cloudbrowser Console with the scopes rest:read, rest:manage and rest:links, and enter it in the Cloudbrowser settings. Connect your Airtable and Slack accounts.
  • Sign in to your portal once in a template browser in Cloudbrowser, pause it, and put its ID, which starts with br_, in the flow setting Template browser ID.
  • In Airtable, set up a table named Tasks with these fields: Task, Allowed domains (the hostnames the task may reach, separated by commas), Access (single select with View only and Control), Owner, Browser ID, Browser name, Forked from, Forked on (date), Live View link (URL), Control link (URL), Access granted and Browser status. The table needs a Created time field.
  • Pick your base in New task in Airtable and put its ID, which starts with app, in the flow setting Airtable base ID.
  • Copy the URL of the block Wait for the owner's answer into the flow setting Answer link. Pick your Slack channel in Ask the workspace owner and Confirm it stays view only.
  • The flow issues Live View links only. A CDP link's URL controls the browser, so it is never written to the task; the agent that works in the browser gets its CDP link from the browser's owner.