FlowRunner
Features Pricing
Theme
Start Free

Finished tasks retire their Cloudbrowser browsers

Set a task to Done in Airtable and this flow pauses its Cloudbrowser browser, then asks the task owner in Slack to delete it or keep it paused. Deleting cannot be undone, so a person decides.

The prompt

When a task in our Tasks table in Airtable is set to Done and has a browser ID, pause that browser in Cloudbrowser if it is still running. Look up its links, then ask the task owner in Slack: the task, the browser's name, what it was forked from and when, how many CDP and Live View links it has, and that deleting removes the saved profile and revokes the links for good. Give them Delete the browser and Keep it paused buttons and wait. On delete, delete the browser, wait for it to finish and mark the browser deleted on the task. On keep, mark it paused on the task.

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

The flow

Yes Yes No Yes No Action Delete thebrowser Condition Done, with a browserto retire? Action Check thebrowser Asks a person Wait for the owner'sanswer Condition Still running? Condition Delete it? Action Mark the browserpaused on the task Action Pause thebrowser Action Mark the browserdeleted on the task Starts the flow Task changed inAirtable Action List its links Code Read the task Code Write the question forthe owner Asks a person Ask the taskowner

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. Task changed in Airtable Checks the Tasks table in Airtable every 5 minutes for a task whose status changed. Only a task set to Done that has a browser ID goes on.
  2. Check the browser Reads the browser's status in Cloudbrowser. A browser that is still running is paused, which closes Chrome and keeps the saved profile. One that already paused itself is left as it is.
  3. List its links Lists the browser's active CDP and Live View links as metadata, never the URLs, so the owner knows what deleting would revoke.
  4. Ask the task owner Posts to the owner in Slack: the task, the browser, what it was forked from and when, how many links it has, and that deleting cannot be undone, with two buttons, Delete the browser and Keep it paused.
  5. Wait for the owner's answer The run waits for the click.
  6. Delete the browser On Delete, removes the browser and its saved profile, revokes all its links and waits for the operation to succeed, then sets the task's Browser status to Deleted. On Keep, the browser stays paused and ready to resume, and the task says Paused.

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.
  • The flow reads the Tasks table that the flow A signed-in Cloudbrowser browser for each new task writes: Task, Status, Owner, Browser ID, Browser name, Forked from, Forked on and Browser status. Give Status a Done option and add a Last modified time field named Status changed that watches only Status.
  • Pick your base in Task changed 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, and pick your Slack channel in Ask the task owner.
  • Delete Browser cannot be undone. The flow deletes only after the owner clicks Delete the browser.