Skip to main content

Draft with Flow Chat

Flow Chat in Unstract Flow writes a spec with you in conversation. Use it to turn a process you can describe into a spec, or to change a spec by asking. You describe what the workflow should do, and Flow Chat proposes the spec, or changes to it, for you to apply. It decides details such as file names itself. By default it asks only about a decision that changes what the workflow does, when your messages and the spec leave it open.

Flow Chat in the editor​

Flow Chat is always on screen in the editor, on the left, and can't be hidden. A workflow with no spec yet opens on Flow Chat alone; one that has a spec opens with main.md beside it. The chat starts with "Hi! What workflow would you like to build?"

Two icons on the rail at the right edge open the rest of the editor beside the chat:

  • Workflow.md opens the spec under the Workflow tab, with the Diagram tab next to it.
  • Tools and configuration opens the tabs Files, Tools, Prepare, Run, Settings and the rest. While connector instances show Setup on the Tools tab, a number on the icon counts them.

Selecting an icon again closes its panel. Each panel stays open until you close it, so you can have the spec and the tools side by side; the chat shares the width with whichever are open. A panel reopens on the tab you left it on. The first time in a workflow, Workflow.md opens the spec, and Tools and configuration opens on Settings, or on Tools while the icon shows a number. Applying a proposal opens main.md to show the change, Prepare and Run open Tools and configuration on their own tabs, and choosing a tab anywhere in the editor opens the panel that holds it. Drag the line between the chat and a panel to resize them.

Get a proposed spec​

Describe the process in your own words. A request that leaves no such decision open gets a proposal in the first reply. With Ask me, the default, a request that leaves one open can get up to three multiple-choice questions first, shown one at a time; see Choose when Flow Chat asks. Flow Chat marks the option it would pick Recommended, with a line saying why. For each question, pick an option, or choose Something else and explain under Tell me more:, then select Submit. You can't change an answer after you submit it. Flow Chat replies once you've answered the last of them.

While Flow Chat writes, a line under its reply says what it's doing, such as "Reading your spec (v12) and thinking…", "Thinking…", "Writing the proposed changes… 2 so far" or "Writing the spec proposal… 40 lines so far". A reply that says it is finalizing the spec is followed by a second reply that carries the card.

When main.md has text, Flow Chat proposes a change as a card of changes. It proposes a whole spec when main.md is empty or holds only the short draft an exploration started from, when you ask for a rewrite, or when a change would need more than 40 edits.

A proposal describes one run of the workflow. When you ask for a schedule, such as every weekday at 9, Flow Chat leaves it out of the spec and tells you to set it on a deployment; see Scheduled deployments. If you ask for the timing in the spec anyway, Flow Chat writes it and says that only a deployment schedules the workflow. It names one connector for each job, and none of the connectors marked Not built yet. To process only new items, it picks how a new one is recognized, such as a status column the workflow fills in, and says which in its reply, because nothing carries over from one run to the next on its own.

A proposed spec states what preparing checks for: the path and file name of each file the workflow saves, and whether it replaces one already there; the exact columns or fields of each output; what is written when there are no items; and, for a review, what the reviewer sees and may change. For any of these you haven't given, Flow Chat writes the usual answer: it replaces a file already there, writes only the header row (CSV) or an empty list (JSON) when there are no items, names columns after the source's fields, and lets a reviewer change every value the workflow uses afterwards, with a reject stopping the run before anything is written. Preparing then has nothing to fill in for them; see Prepare a workflow. Flow Chat can ask what a review is for when your messages don't say.

If a proposal still has a problem that would stop the workflow from preparing or running, such as a connector Flow doesn't have or an ## Inputs section, the reply ends with Before you apply this and lists the problem. Fix it with Edit before applying, or in the spec after you apply the proposal. Flow Chat doesn't see the project's reference tables, so check the name after each @table:; Prepare warns about one the project lacks.

A card of changes​

The card lists each change with a checkbox: the lines it removes in red and the lines it adds in green. Its header says how many changes there are and the version Flow Chat wrote them from. When a card changes a file other than main.md, each change sits under its file's name. The changes not applied yet start checked.

  • The button applies the checked changes: Apply change on a card with one, Apply 3 changes, or Apply 2 of 3 changes when you uncheck one. Flow places them on the spec as it is now and saves the result as a new version, and a notification confirms it, for example "Applied 2 changes (v12)". A change that's already in the spec is skipped, and the notification says so. An applied change is unchecked and, on a card with more than one change, marked Applied. The card then says when, for example "Applied 2 minutes ago". To apply a change a second time, for example after restoring an earlier version, check it again.
  • Edit before applying opens main.md as it was when Flow Chat wrote the proposal, with the checked changes and without comments. Apply (Re-apply once the card has been applied) places those changes on the spec as it is now, like the card's button. If you edit the text first, Flow applies it like a whole spec. Checked changes to other files apply either way. The card doesn't offer Edit before applying when the changes are only to other files.

A whole spec​

The card shows the proposal's title, its summary, how many numbered steps it has and the first six, and the version it was written from, such as "from v12". When main.md had text, Show changes to main.md shows what the proposal changes, with removed lines in red and added lines in green.

  • Edit before applying opens the proposal in an editor in a dialog. Change what you need, then select Apply (Re-apply once the card has been applied) to put your version into main.md, or Reset to original to go back to Flow Chat's text.
  • Replace main.md replaces main.md with the proposal and saves the result as a new version, and a notification confirms it, for example "Spec applied (v12)". After that, the button reads Replace main.md again.

What applying does to the rest of the workflow​

  • A card of changes changes only the files the spec had when Flow Chat wrote it; it can't add a new one. A whole spec replaces main.md only, and the other files don't change.
  • With a card of changes, comments stay where they are, including a comment inside a line that a change edits. When a change runs over a comment, the comment stays with its line: a comment on a line of its own above it, and a comment inside a line at the end of that line. A comment inside a line that a change deletes, or one Flow can't keep with its line, moves to the end of the file, under <!-- notes whose original location was rewritten -->.
  • With a whole spec, or text you edited under Edit before applying, a comment goes back above, or at the end of, the line it was on when the new text has that line word for word. The others move to the end of the file, as above.
  • A connector instance that no file mentions and that has no configuration is removed, as when you save the spec, except while the workflow has an active deployment. See Mention connectors.

Choose when Flow Chat asks​

The menu at the bottom left of the message box, which shows Ask me or Decide for me, sets what Flow Chat does when it needs a decision. A change applies from Flow Chat's next reply, including one that starts without a message from you, such as the reply after an exploration. A running exploration follows it from its next step. Flow keeps your choice in your browser for every workflow, and your other open tabs follow it; another browser starts with Ask me until you choose there.

OptionWhat Flow Chat does
Ask me (the default)Asks only about a decision that changes what the workflow does and that your messages and the spec leave open, such as where results go when you haven't said and no connector the workflow uses can hold them. It asks for a value only you know, such as the address a report goes to, in one sentence of its reply. It decides the rest, such as a file name or how a new item is recognized, and says in its reply what it chose.
Decide for meAsks for one thing, in its text: the address of a website the workflow must visit, when you haven't given it. Until it has that address, it proposes nothing. Otherwise it goes with what your messages and the spec suggest, or the simplest common option and the connectors the workflow already uses, and its reply lists the choices it made so you can change them before you apply. For a name it can't know, such as a table, a column or a tab, it writes its best guess and lists it among those choices. A value only you know goes into the spec as a secret with a clear name, such as REPORT_RECIPIENTS, and the reply names the secrets to add on the project's Secrets tab before the first run. When a reply asks anything else, Flow sends it back once to decide, and the line under the reply reads "Deciding for you…". A question it then decides, or keeps only as an offer you didn't ask for, is taken out of the reply. If Flow can't send the reply back, the reply stops with "You chose Decide for me, but this reply asks you something, and Flow Chat couldn't be sent back to decide it." and offers Retry.

With Decide for me, an exploration of a website makes its own choices too; see Explore a live website.

With either option, Flow Chat doesn't ask about what a connector's settings hold, such as the Google Drive folder or the S3 bucket. You set those with the gear (Configure) on the connector's row in the Tools tab, and the spec leaves them out: The spec names each file's path inside the folder or bucket the connector is set to, such as reports/fx/eur-moves.json.

What Flow Chat reads​

Flow Chat reads the saved spec and the conversation, with the older part of a long conversation as a summary. It also reads each paste of 1,500 characters or more in full, up to 100,000 characters in all (see Long pastes and message size). With each message it gets up to 20,000 characters of the other files, in tab order, and it can read more of a file that was cut short. It also reads what changed in main.md since its last reply, and the changes from its latest proposal that you haven't applied, so it can carry them into the next proposal. It reads the workflow's site research, and it can look up earlier versions, runs and the workflow's connectors; see Ask about versions and runs. Flow Chat doesn't see comments, so it can't act on a note in one.

When you send a message, answer a question or select Retry while the editor has unsaved edits, Flow first saves them as a version with the note "Saved before sending to Flow Chat", so Flow Chat reads what you see. If that save fails, nothing is sent.

Ask about versions and runs​

Flow Chat can look up the workflow's history while it answers:

  • The spec's Auto and Manual versions: when each was saved, who saved it, its note, what it said (without comments), and what changed between two. It lists up to the latest 30, and reads an older one when you give its number.
  • The workflow's runs, up to the latest 10, and why one failed: its error and up to five of the steps that failed.
  • The website exploration in this conversation: its steps, why it stopped and what it found.
  • The workflow's site research: any of its latest 10 versions, up to 30,000 characters.
  • The workflow's connectors: whether each one is ready, and the settings it holds, never a credential.

You can ask, for example, "What did main.md say yesterday?", "Go back to what we had before the email step" or "Why did my last run fail?". To go back, Flow Chat proposes the changes that bring the earlier text back, which you apply like any proposal. To bring back a whole version, use Restore this version in Version history.

While Flow Chat looks something up, the line under its reply says what it's reading, such as "Looking at the version history…" or "Comparing v4 and v5…". Flow Chat gives times in your browser's time zone. For each run, it sees the spec version the run was prepared from, and for a failed run, whether a newer version exists.

Flow keeps the latest 50 Auto versions, so Flow Chat can't read an older autosave. See Workflows, versions and tags.

Start a new conversation​

Select the pencil in the Flow Chat header (Start a new conversation), then Start new conversation. Flow Chat stops seeing the conversation so far and starts from your spec as it is now. Your spec and its versions don't change, and the earlier conversation is kept but no longer shown. You can start one only while Flow Chat isn't writing a reply or exploring a site.

Apply after the spec changed​

Applying a proposal also saves unsaved edits first, with the note "Saved before applying an AI proposal". If that save fails, nothing is applied.

A card of changes applies to the spec as it is now, so changes made since Flow Chat wrote it stay, such as your edits elsewhere in the file. When all the checked changes are already there, the notification says "These changes are already in the spec" and no version is saved.

Flow asks before it replaces changes made since Flow Chat wrote the proposal: for a whole spec, any change to main.md; for a card of changes, when the text a change replaces or deletes was edited, now appears twice, or its file is gone. Such changes include your edits, a restored version and another applied proposal. For a whole spec, or text you changed under Edit before applying, Flow also asks when the version Flow Chat wrote from is no longer kept.

The dialog The spec changed after this proposal was written shows what applying does, with removed lines in red and added lines in green, and for a card of changes says how many of its changes no longer fit. Apply anyway makes the changes the dialog shows, and applies the checked changes that still fit in other files. Only the lines that both the proposal and a later change edited get the proposal's text: your other changes stay, and with a card of changes, so do the changes you applied from it before. This holds for a whole spec and for text you edited under Edit before applying too, unless the version Flow Chat wrote from is no longer kept; then the text replaces main.md. A file that was deleted is added back. Cancel leaves the spec unchanged. The version you replace stays in Version history, so you can restore it.

Limitations
  • Flow Chat writes a whole spec from main.md as it stood when its reply started. If the proposal leaves out part of that text, applying it removes that part without asking, because main.md hasn't changed since. Select Show changes to main.md before you apply it: the red lines are what applying removes.
  • With a card of changes, Apply anyway keeps the comments the proposal's text had on the lines it replaces; a comment added to one of those lines since moves to the end of the file.

When a reply doesn't finish​

A reply can stop before it's complete when:

  • you stop it with the square stop button (Stop generating)
  • it reaches the length limit for one reply
  • the conversation gets too long for Flow Chat to read; start a new conversation to go on
  • Flow Chat declines the request
  • the AI service is busy or can't be reached
  • its text says questions or a spec card follow, and none arrive after Flow asks once more
  • a question or spec card it writes can't be shown
  • another error stops it

The reply keeps the text that arrived. A reply you stopped shows Generation interrupted. Any other reply that stopped shows This reply didn't finish, or Couldn't generate a response when no text arrived, with the reason under it, such as "The questions this reply mentions didn't come through." A reply that stopped partway through a spec shows no card, because a half-written spec can't be applied. A reply you stop after it has sent its proposal or questions, while it writes the text above them, keeps the card or the questions.

If the Flow server writing a reply stops partway, for example during an update, Flow closes the reply within about two minutes. The reply keeps the text that arrived and says "Flow Chat stopped before this reply finished, and started it again.", and a new reply starts once below it, with the line "Starting the reply again…". If that one stops too, it says "Flow Chat stopped before this reply finished." and offers Retry. Flow doesn't start a reply again when you've sent a newer message or started a new conversation, or while another reply or an exploration is running; the reply then says "Flow Chat stopped before this reply finished." Until Flow closes such a reply, Stop generating closes it at once as Generation interrupted, and it isn't started again. A reply that waits more than 15 minutes to start fails with "Flow Chat was too busy to start this reply." and isn't started again.

When the AI service is busy or can't be reached before Flow Chat writes, or right after it looks something up, Flow Chat waits 2 seconds and tries again, then 5 seconds, and the line under the reply says "The AI service is busy. Trying again…". If the service is still busy, or turns busy while Flow Chat writes, the reply fails with "The AI service is busy right now. Try again in a moment.", or "Couldn't reach the AI service. Try again in a moment." when it can't be reached.

Select Retry to run the same request again. Retry appears on the latest reply that didn't finish, until you send another message, and each reply can be retried once.

A finished reply can also have a part the chat can't display. The chat then shows "This part of the reply couldn't be shown." and Reload the page in its place, with the question when that part is a question card.

One message at a time​

Flow Chat answers one message at a time. While it writes a reply or explores a site, the chat takes no new message, answer or Retry. From a second tab, a message sent meanwhile is refused with "Flow Chat is still writing a reply. Wait for it to finish, or stop it.", or during an exploration with "Flow Chat is exploring the site. Wait for the exploration to finish, or stop it." A request from Fix with AI, on the live view of a failed run, waits instead, and the chat shows "Your request is waiting and will be sent when Flow Chat finishes."

Website checks from Flow's network​

Flow Chat can send a request to a website and read what comes back, as a REST API step in your workflow would. It uses this to learn whether the site answers a request without a browser, where an address redirects, whether the site refuses Flow's network, and whether its search is an address it can build or a form it can send, before anything opens a browser.

  • Flow Chat sends requests only to these sites, at any address on each one: a site named in your messages, your answers to its questions or the spec; and the site the latest exploration started from, and the sites its pages' scripts called. An answer to a question an exploration asked counts only where it says yes: "Do not check https://newportal.example.org/" doesn't add that site. Flow tells sites apart by the Public Suffix List, so records.example.gov and www.example.gov are one site, and records.com.cn and other.com.cn are two.
  • To a site one of those redirects to, Flow Chat sends GET and HEAD requests to any address, and a POST only to send a form one of that site's own pages gives, never a body of its own or another site's form. To send one, name the site in a message. A 307 or 308 redirect sends the request's body on, so Flow Chat follows one only to a site that could take that body directly; otherwise the reply says "Not followed" and names the site. A site a redirect brought in stays on the list in later replies while the site that redirected there is on it, so Flow Chat can read a county's vendor portal and send its search form without you naming the portal.
  • To a link on a page it fetched, Flow Chat sends only GET or HEAD, to the exact address the page gives.
  • On a hosting platform that gives each customer a name of its own, such as azurewebsites.net, amazonaws.com, cloudfront.net or github.io, each host name counts as a site: naming countyportal.azurewebsites.net brings in that host only.
  • Flow Chat follows a redirect from a page link, but the site it leads to stays out of the list.
  • A header that carries a credential, such as Authorization, Cookie or an API key, goes only to the scheme, host and port of the address it was written for. A redirect to another one is sent without it, and so is every redirect after that; the reply names the header it held back. It doesn't follow a redirect to a site outside the list when the address it sent names that site, such as /r?u=https://other.example/: the reply says "Not followed" and names the site.
  • It sends GET and HEAD requests, and POST requests that carry form fields, JSON or text. It can also send a form from a page it fetched, with the values the page gave its fields. It never sends PUT, PATCH or DELETE, and it doesn't send a request to a private or internal address.
  • The requests leave from Flow's servers, the network a REST API step uses, with none of your connectors' credentials.
  • In one reply, Flow Chat sends at most 20 requests, one a second to each host name. Each redirect counts as a request, and a request follows at most 6 redirects. Each request waits up to 30 seconds for an answer. A response over 5 MB isn't read: Flow Chat sees its status and headers, not its body. Stop generating stops a check before its next redirect, and ends the reply.

What a check learns stays with the conversation for 4 hours after the latest check: the requests sent, the forms and links of the pages fetched, and the cookies sites set. Flow Chat sends cookies back as a browser does: to the host that set one, or to every host of the domain the cookie names, on the cookie's path, over https only for a secure cookie, and until it expires. It sends them with every form it sends from a site's pages, and with other requests only when it chooses to. It sees each cookie's name, not its value.

While it checks a site, the line under its reply names the site, such as "Checking records.example.gov…". While it sends a form from a page it fetched, the line says "Checking the website…".

Explore a live website​

For a workflow that uses a website, Flow Chat first checks the site with requests from Flow's network (see Website checks from Flow's network). When those can't settle how the workflow reads the site, it starts an exploration: it works out how the site serves the data the workflow needs, records each fact with its evidence in the workflow's site research, and chooses the route the workflow takes. Type /explore with the site's address and Flow Chat explores it without checking it first. When your messages don't say what the workflow needs from the site, it asks that first, and when it has no address to start from, it says "What URL should I start from? Paste the starting link and I'll take a look."

Flow explores only a public http or https address, and only for someone with edit access to the workflow. Without it, the chat says "You don't have edit access to run a live exploration on this workflow, so I can't start it here."

The chat's first line names the start address, such as "🔎 Researching https://records.example.gov/search: plain requests from Flow's network first, then the browser if the site needs one…". When the workflow has no @browserless, the line ends "with plain requests from Flow's network (no @browserless is set up, so no browser for now)…" instead.

The exploration is told to work through these checks in order:

  • Requests from Flow's network: the start address, again with a desktop browser's headers when the site refuses the first request, where it redirects, robots.txt and the terms of use.
  • The site's own code, for an API: the scripts a page loads, config files such as appConfig.json, and the links to search apps on other hosts. It searches the web for the site's official search, a host it moved to, or the help pages of the software it runs on.
  • A browser, only when those checks can't settle the route, for example when a page builds its results in the browser, or the site refuses Flow's network. In the browser it reads the requests the pages send.
  • What it found, sent again without the browser, such as an API call or a results address. When only the browser's session gets an answer, it sends the request from inside the page, and waits up to 60 seconds for the answer.
  • Measurements, with the dates the workflow needs: how many results there are, the most a page shows, how paging ends past the last page, and whether a filter returns a record it knows matches. It opens one record's page and checks one document's type and size.
  • The route, and for each cheaper route, what rules it out.

The routes, cheapest first, are:

CodeRouteHow the workflow reads the site
T1A JSON API that answers a plain requestREST API steps call it.
T2Addresses that can be builtREST API steps fetch the page, and @platform reads it.
T3A form posted with a session cookieREST API steps post the form and send the cookie back.
T4A browser only for the call that needs itOne short @browserless step gets past the gate, then calls the site's own API from inside the page.
T5Driving the pages in a browserA @browserless step works the pages.

For a T4 route, Flow Chat is told to write the browser step's whole JavaScript into the spec, because Prepare takes a browser step's script word for word from the spec's text. Each script goes in a fenced js block of its own at the top level of the page, under a heading that names it, such as ## Search script, and the browser step names that heading.

The script sends the site's searches or fetches its documents from inside the page, with the page's cookies and the browser's network. Any loop goes inside the script, because a browser step can't loop over a list it's handed. The browser step saves the script's return value as JSON to the workspace file the spec names, and the next step reads that file with @platform. For a script that loops, Flow Chat is told to have you raise Browser Session Limit (ms) to 900,000, and to give the browser step a time budget in seconds that covers the loop. A website session step fails after 16 minutes (Limits and defaults).

The script returns each PDF as base64 text inside that JSON, a third larger than the file, and a @platform step writes it to a file. Flow Chat is told to split the documents into batches so that each saved file stays under 1 MB, with a PDF over about 700 KB in a batch of its own: reading the file back is one step, and one step's result can be about 2 MB at most. Each batch is a browser step of its own and starts a new session, so Flow Chat is told to batch only documents whose links work in a new session, such as a link that carries its own access key. When the documents need the search's session, the loop stays in one script, so all of them have to fit in one file.

Limitations

In the New editor, a script typed as plain text comes back changed (_ becomes \_, > becomes &gt;), and a fenced block inside a numbered step or a list item is deleted. The New editor saves a spec in its own format the first time it opens it, so this can happen without an edit. A fenced block at the top level of the page comes back unchanged.

Once the exploration has sent plain requests to a site, and while none of them has been refused and it hasn't sent the site a form or a POST, Flow refuses its first try to open that site in the browser, and its first try to finish with a T4 or T5 route on the start address's site. The exploration then sends the site's forms and follows its links without a browser; a second try goes through. When a plain request comes back 401, 403, 407, 429 or 503, or gets no answer, the browser opens at the first try. It does too when the exploration resumes after a question, or when the site research already says the route needs a browser.

Each fact goes into the site research as an item, recorded as answered, as not verified, or as not applicable. An answered item needs evidence from this exploration: an address it requested or opened, or one a web search returned, usually with the status and a short quote copied from what came back. Flow refuses an item whose address the exploration never requested, or whose quote isn't in anything it got back, and the exploration then has to check it or record it as not verified. An address with a query must match a request's query field for field; one without a query matches any request to that path. Evidence that an earlier exploration recorded counts too.

Flow takes each piece of evidence's network, method and status from what the exploration saw, whatever the exploration wrote. The network is Flow's network, Browserless direct, Browserless through a residential proxy, or a web search. Flow refuses a status the address didn't answer, a method it wasn't sent with, and any status for an address only a web search returned.

The exploration sends requests only to these sites: the start address's site; the sites Flow Chat's own checks may reach, from your messages, your answers to its questions and the spec; and a site one of those redirects to, as for Flow Chat's checks. A site that only Flow Chat's instructions for the exploration name, or that only an earlier version of the site research cites, isn't one of them. To a link on a page it fetched or opened in the browser, or an address a site's own reply gives, such as a document's download link, it sends only GET or HEAD, to the exact address. The browser opens only these sites too.

With Ask me, the exploration asks you before it checks a site it found by searching the web, and names where it found it, even when an earlier exploration found the same site. Your answer approves only the sites it says yes to:

  • An answer that names sites approves each one named in a part of the answer with no word such as "not", "don't", "skip" or "except": "Check a.gov but not b.com" approves a.gov. A site is named by its address or by its name, so "Check only BrainyQuote" approves brainyquote.com. A name of fewer than five letters counts only as an address, and so does a name two of the sites share: "Check only example.com" approves example.com alone, and "Check Example" approves neither, so the exploration asks again.
  • An answer that names none approves every site the question named when it's a plain yes, such as "Yes" or "Sure, go ahead".
  • A site your answer says no to, such as b.com in "Check a.gov but not b.com" or a site in "Do not check https://newportal.example.org/", isn't checked for the rest of the exploration, even when your messages or the spec name it, or another site redirects there. A plain no, such as "No" or "Not now", says no to every site the question named. Flow refuses the request, and tells the exploration to record that you said no.
  • Any other answer, such as "Only the state's own site", leaves them unchecked.

With Decide for me, it checks such a site, and it's told to say in its findings where it found it.

The exploration needs no @browserless to start. Without one, it checks the site with requests from Flow's network only. When the route needs a browser, Flow Chat says why and offers a card that adds @browserless; see Set up a connector from the chat. Once you apply it and pick its credential, tell Flow Chat to go ahead: the next exploration starts from the site research and opens the browser when it needs one.

Exploration progress lists each step as it happens: each request with its status, each web search, each browser step, and each fact recorded. Watch live shows the browser in a read-only view while the exploration uses it. A step that fails shows what came back, such as "HTTP 403".

An exploration has these limits:

  • 120 requests from Flow's network, each redirect counting as one, and one a second to each host name, and 50 browser steps. Past either limit, Flow refuses the next one, and the exploration goes on with what it has recorded.
  • 8 web searches. After 8, the exploration is told to search no more; one turn of the AI model can run up to 3.
  • 60 turns of the AI model, one hour of work, and a cap on its use of the AI model. When it reaches one of these, it has three more turns to record what it found and finish; on the last one, only finishing runs. If it hasn't finished by then, the chat says why it stopped, such as "The research has stopped (it used its 60 turns). Summarizing what it found…"

A question doesn't reset these limits: after your answer, the exploration goes on with the requests, steps, searches, turns and time it had used, and the time it waited for you doesn't count.

When a site answers 429 or 503, the exploration waits 10 seconds before its next request to that host, then 30, and after the third such answer it sends that host nothing more.

An exploration opens pages in Browserless's Chromium browser whatever Browser Endpoint says, with Human-Like Delays off. It switches to the stealth browser for the rest of the exploration when connecting through Chromium, opening the start address or repeating its steps in a new session fails, the start address answers 401, 403, 429 or 503, or a CAPTCHA on the start page stays unsolved in Chromium. In Chromium, the User-Agent says "Chrome" in place of "HeadlessChrome", with the browser's client hints, as in a run whose Browser Endpoint is Chromium (open-source) or Chrome (genuine Google Chrome) (Browserless). It asks Browserless for 15-minute sessions, whatever Browser Session Limit (ms) says, and uses the instance's limit when your Browserless account refuses that. When a session runs out, the exploration opens a new one and repeats the steps that led to the current page. It works out dates such as "yesterday" from today's date in the time zone of the browser you last sent a message from, or in UTC when that time zone is unknown.

When Browserless finds a CAPTCHA on a page, the chat says "A CAPTCHA came up on records.example.gov. Waiting for Browserless to solve it…" and the exploration waits up to two minutes. After 30 seconds without a solve, it asks Browserless to solve that CAPTCHA at once. Once Browserless solves it, the exploration carries on. A CAPTCHA that stays unsolved fails the step that met it, and later reads of the page wait only for a CAPTCHA that comes up after it. Flow doesn't run a step that clicks a CAPTCHA's checkbox, pictures or buttons, because clicking a solved one brings up a new challenge. The exploration has CAPTCHAs solved whatever the instance's Auto-solve Captchas setting says, but the workflow's runs follow the setting, so the exploration is told to record in the site research each page where a CAPTCHA came up.

The browser records each page the site loads and each call the pages' scripts send, including calls that fail and WebSocket connections. For each one it keeps the address, the status and the names of the form or JSON fields the request sends. A JSON request of up to 8,192 characters also keeps its layout and up to 600 characters of its values, so the exploration can send the search again as the page sent it. A script's JSON reply of up to 512 KB keeps the reply's layout (its field names, their types and how many items each list holds) and a sample of up to 400 characters, and the browser reads at most 80 such replies in each session. It keeps no cookies or headers. In an address, a request's values and a reply's sample, it cuts the whole value of a parameter or JSON field whose name has a part such as token, sig, secret, password, auth, session or key (so api_key and accessToken count, and author doesn't), or is code, even when that value is an object or a list. The workflow's secret values and the Browserless credential's values are cut too, wherever they appear. Requests to known analytics, ad and monitoring services are left out, and a bot check's requests appear as one line that names the check, such as Cloudflare.

With Ask me, an exploration can stop to ask you a question, and continues when you answer, from what it has recorded. The browser then starts again at the address it opens next. With Decide for me, it asks nothing: it picks the likeliest option and records what it picked. Select Stop beside Watch live, or the square stop button (Stop exploration), to end it. It stops within a second, or once a request it has already sent comes back: it checks before each request, each redirect it follows and each step the AI model asked for in one turn. The chat says "Stopped: saving what the research established so far…", and the facts recorded until then are kept.

An exploration ends when it chooses the route, when you stop it, when it's blocked, when a limit runs out, or when the AI service fails. The chat then says how it ended:

  • "✅ Research finished: pulling together what it found…", when it chose the route. Flow Chat's next reply presents the route, the evidence that decided it and what it ruled out, says which facts the workflow depends on are still not verified, and settles what's still needed before it proposes a spec in that route.
  • "✅ Research finished what it could check without a browser: the route needs one. Pulling together what it found…", when the route needs a browser and the workflow has no @browserless. Flow Chat's next reply says why, and offers the card that adds it.
  • "The research is blocked: pulling together what it found…", or "The research ended before it settled everything: pulling together what it found…", when it ended itself without a route.
  • "The research has stopped (…)" with the reason, such as "it used its time limit" or "the AI service failed", when a limit, the AI service or an error ended it.

After a research that ended without a route, Flow Chat's next reply says what it established and why it stopped, and proposes a spec only when the site research is enough to write a complete one.

Flow Chat starts an exploration you didn't ask for only after it has checked the site with a request, and only while no file of the spec mentions @browserless. After that, it explores only when you type /explore or ask it to explore, browse or visit the site, or to look at the website. A change such as a new email step doesn't start one. If Flow Chat thinks a new look at the site would help, it asks first, or on Decide for me says so in its reply and explores when you type /explore or say yes.

When main.md is empty, the exploration starts by saving a short draft that names the site and the goal. It names no connector, so the Tools tab doesn't gain one the workflow may not need. Flow Chat's next proposal is a whole spec that replaces the draft when you apply it, and names @browserless only if the site needs a browser. Any other main.md stays as it is.

After you apply a proposal and main.md mentions @browserless, Flow Chat offers once per conversation to explore the site, unless an exploration has already started in it: Yes — explore it and detail the workflow or Not now; with Decide for me, a sentence that says to type /explore.

A new exploration replaces the Exploration progress list of the one before. When an exploration has finished, stopped, or is waiting for your answer, ask Flow Chat how it went: it reads the steps the exploration took, up to the latest 30, and why it took each one, and why it stopped.

Site research​

The Site research tab, in the panel with Tools, shows what this workflow's explorations established about its website. Until an exploration records something, it says No site research yet. The page is headed "Site research:" and the site's name, with the start address, the version and the goal under it, then:

  • Route: the route by its code (see the routes table in Explore a live website), or "Not decided yet.", with "This route needs a browser." when it does, and a line for each cheaper route it ruled out, such as "Ruled out T1: …".
  • Open questions, when there are any.
  • Each item with its evidence, in groups: A. Requirements, B. Access, C. Where the data lives, D. Finding new records and paging, E. Records and documents and H. What a correct run looks like. Each item has a code, such as B1, and says how sure it is: high, medium or low confidence, not verified, or not applicable. A group with at least one item recorded ends with the codes of those not recorded yet, such as "Not recorded: D3, D7"; a group with none recorded isn't shown.
  • Other findings, for facts that fit no item.

Each exploration that records something new saves a new version, and the next exploration of the same site starts from the latest. An exploration that starts on another site starts its research afresh, and once it records something, its version replaces the other site's as the latest. Once there are two versions or more, pick an earlier one from the list at the top of the tab, which holds Latest and up to 30 versions. The site research belongs to the workflow: a new conversation keeps it, and anyone who can open the workflow can read it. It isn't part of the spec, so Prepare doesn't read it.

Every Flow Chat reply reads the latest version, up to 14,000 characters, and without the evidence lines when it is longer than that. When the latest exploration was of another site and recorded nothing, Flow Chat is told that the latest version is about the other site, and doesn't read its facts or route as this site's. Flow Chat can also read any version by its number, up to 30,000 characters. It's told to build the spec on the route the exploration chose, and when a run fails, including from Fix with AI, to compare the error with what the site research holds, such as a gate, a cap or a date format.

Set up a connector from the chat​

Flow Chat reads the workflow's connectors as the Tools tab shows them: whether each one is ready, and the settings it holds. It never sees a credential. To add a connector or change one's settings, such as a residential proxy in the site's country for @browserless, it offers a card in the chat.

The card names the connector, such as Add @browserless to this workflow or Change @browserless's settings, says why, and lists each setting it changes, as it is and as it would be, such as "Proxy: None → Residential". Before the card appears, Flow checks each value against what the connector accepts: a setting it has, of the right kind (true or false, a number or a whole number in range, or one of a list's options), and that holds together with the settings the connector keeps, such as Proxy Country only with Proxy set to Residential, whether the card sets Proxy or the connector already holds it. Flow doesn't show a card that Apply would refuse. Flow also refuses a card for an instance the workflow doesn't have, such as @browserless:2 when it has only @browserless, and a card that would change nothing. In the same reply, Flow Chat is told why, and corrects the card or answers without one. When the connector needs a credential and has none, the card shows Its credential (optional; Flow Chat never sees it). It lists the project's credentials for the connector under In this project, then yours, as the Tools tab does: picking one of yours, or creating one there, adds it to the project. Until you pick one, the card says "Without a credential, @browserless can't run yet: add one here or in the Tools tab." When the card adds the connector with none picked and the project holds exactly one credential for it, the new instance gets that one. Select Add @browserless or Apply to make the change. A card that adds a connector the workflow gained meanwhile, for example because the editor added it when the spec mentioned it, changes that instance instead of adding a second one, and then shows the changes against that instance's settings. Flow then notifies you with "@browserless is in the Tools tab" or "@browserless is updated", and the card reads Applied with the time. A card applies once: applying it again says "This card is already applied." You need edit access to the workflow to apply it.

Limitations
  • With Ask me, a yes with an exception, such as "Check both except b.com", says no to b.com and approves none of the other sites. Name each site you approve.
  • A word such as "not", "without" or "leave" says no to every site named in the same part of your answer, so "Check a.gov without logging in" says no to a.gov. Name a site you approve in a part with no such word: "Check a.gov, no login needed".
  • A connector the card adds with no credential and no setting of its own stays in the Tools tab only until the next save of a spec that doesn't mention it. Pick its credential on the card, or in the Tools tab, before you edit the spec.

Long pastes and message size​

Pasting 1,500 characters or more, or 15 lines or more, turns the paste into a Pasted content chip you can preview or remove. A message can hold up to 8,000 characters you type, and its Pasted content chips up to 100,000 characters together. An answer under Tell me more: can be up to 2,000 characters. Within 500 characters of the typed limit, or 5,000 of the pasted one, a counter appears under the box, such as "96,000 / 100,000 pasted characters", and says you are approaching the message limit. Over a limit, it says to remove content to send, and Send stays disabled until you remove text or a chip.

Every reply reads your pastes of 1,500 characters or more in full, up to 100,000 characters in all, however long the conversation grows. Pastes from messages Flow Chat has already summarized come first, then the newest. A paste that would take the total past 100,000 is left out, with every older one not already in. Flow Chat still reads a paste left out in the conversation, in full while it is among the recent messages, and in the summary after that. A paste carries text only, so pictures in a document you copy from don't reach Flow Chat.

An organization can start up to 30 Flow Chat replies a minute, counting messages, answers to questions and Retry together. Past that, the message isn't sent, and a notification says when to try again.

A message you haven't sent, with its Pasted content chips, stays in the box when you reload the page or come back to the workflow later in the same browser. When the text and chips come to more than 200,000 characters, only the typed text is kept.