Skip to content

Portals ​

A portal is a page of yours, hosted by the platform, with its own address and a button that runs the automations in your project. It is how you hand an automation to people who do not use the dashboard: sales, operations, the board.

The content is plain HTML — what you write is what shows up. The platform takes care of three things: hosting it, controlling who gets in, and giving the page a safe way to start automations.

Creating one ​

In the dashboard, under Portals, pick the project, give it a title and an address (lowercase letters, digits and hyphens) and click Create portal. You write the content right there — or let an automation publish it, which is the natural path when the page shows a report that changes on its own.

From code, put the page in pages/<address>.html and datallog push publishes it; opening the link is in Configure by API.

A portal lives inside a project, and the project is what decides which automations it can reach.

Creating and releasing are separate decisions: a freshly created portal starts Closed.

Action in the dashboardWhat happens
Open by linkthe portal gets its own address, outside the dashboard
Copy linkthe address, always the same one, to send or bookmark
Replace the linkmints another address and immediately kills every link already out there
Closeanyone holding the link now sees "not available"

Who can get in

The address alone does not open it. Whoever clicks must be signed in and belong to the account that owns the portal. The link is the address, not the credential — and it stays revocable at any moment through Replace the link.

For people who only need to see portals, the Team screen has the "portals only" role: they sign in, see the portals released to them, and no other screen of the platform.

Running an automation from the page ​

Inside the portal there is a datallog object, injected by the platform:

html
<button id="run">Refresh</button>
<pre id="out"></pre>

<script>
document.getElementById('run').addEventListener('click', async () => {
  const r = await datallog.run('report', { month: '2026-10' });
  const body = r && r.result !== undefined ? r.result : r;
  document.getElementById('out').textContent = JSON.stringify(body, null, 2);
});
</script>

datallog.run(automation, seed) starts an automation in the same project as the portal — the project is the boundary. The seed reaches your Python function exactly as it would through any other path.

What comes back depends on how the automation responds:

  • on Wait for the result, the response already carries the result;
  • on Run in the background — or when the run goes past the call budget — you get a body with an exec_uuid, and the run stays alive: the result arrives through the webhook and the execution history.

Handle both cases, or the screen will sit waiting for a result that is coming down another road.

There is no run limit: the portal runs any automation in its project, and anyone with the link can trigger it. To cut access, close the portal or replace the link.

The address and the page's isolation ​

Every portal has an address of its own, at <name>.portais.datallog.io — deliberately outside the platform's domain. The page runs in an <iframe sandbox> with its own origin: the browser treats each portal as a site separate from the dashboard and from every other portal.

In practice:

WorksDetail
localStorage, sessionStorage, IndexedDBscoped to that portal; another portal cannot read them
microphone, camera and screen (getUserMedia, getDisplayMedia)the browser asks whoever opened it, and the permission covers that address only
knowing who opened itdatallog.usuario carries email and nome
Does not workWhy
reading the session cookieit is HttpOnly and exists only on that address
calling our API with the visitor's sessionuse datallog.run, which carries the right credential
reaching the dashboard or another portalthey are other sites to the browser

The rest of the sandbox allows what a screen needs: scripts, forms, modals, downloads and opening links in a new tab.

Who opened it, on the automation side ​

datallog.usuario is there so the screen can say "hi, Jane", but whatever runs in the browser can be changed by whoever is in it. To decide anything (permissions, authorship, issuing a token), read it in the automation: the platform puts _portal_usuario ({"email", "nome"}) in the seed of every run started from the portal, and discards whatever the page tries to send under that key.

python
@automation()
def sign_in(seed=None):
    who = (seed or {}).get("_portal_usuario") or {}
    return {"hello": who.get("nome")}

Careful with HTML from outside

The page's script holds the credential datallog.run uses. Outside data written with innerHTML (a customer name, spreadsheet text, an API response) can turn into script and use that credential. Prefer textContent.

Media is your responsibility

If the portal records or streams audio, video or screen, tell the people being recorded (see the terms of use). Datallog can turn media off for a portal used abusively.

Checklist for a new portal ​

  1. create the portal in the dashboard and write (or publish) the content;
  2. Open by link and copy the address;
  3. switch the automations the page calls to Wait for the result, so answers come back immediately;
  4. test it inside the portal, not by opening the HTML on your machine — the isolation and datallog only exist there;
  5. if the link gets out of your hands, Replace the link.