# amabledata > amabledata is an open-source (AGPL-3.0) all-in-one CRM and marketing platform that runs inside the customer's own Cloudflare account. It combines CRM, email marketing, automations, e-commerce, first-party web analytics, forms, booking calendars, landing pages, short links and reports, and it can be customized with official and custom apps. It is free to self-host, or managed for $99/month per workspace. Key facts: - **Open-source CRM**: the whole platform is open source under the [AGPL-3.0 license](https://www.gnu.org/licenses/agpl-3.0.html); the code is on [GitHub](https://github.com/Ratne/AmableData). The managed edition runs the same codebase. - **Runs in your own cloud**: every installation is deployed into the customer's own Cloudflare account (Workers, Durable Objects, D1, R2, Queues). Contacts, orders and analytics are stored there, never on amabledata's servers. - **Modules**: contacts, companies, pipelines, tasks and 24 custom field types; email marketing with a visual editor, timezone-aware broadcasts and automations on a visual canvas; products, hosted checkout, subscriptions and refunds; cookie or cookieless web analytics with funnels, goals and revenue attribution (Meta Ads, Google Search Console); forms, booking calendars with Google Calendar sync, landing pages, short links, e-signatures, a shared inbox, reports and dashboards. - **Customizable with apps**: workspaces install official apps from the marketplace (Timely countdown timers, Quizly quiz funnels, Kapso WhatsApp, Emailable email verification, Mapbox address autocomplete), and developers build private or marketplace apps with the Apps SDK (`npx create-amable-app`): scoped OAuth access, events, hooks, automation blocks and screens inside the CRM. Official apps are deployed into the customer's own Cloudflare account. - **For developers and AI**: a full REST API with an OpenAPI document and scoped API keys, outgoing webhooks, and a built-in remote MCP server so AI assistants (Claude, Cursor, VS Code and any other MCP client) can work on a workspace. - **Security**: mandatory two-factor authentication, six roles, audit log of sensitive actions, daily backups; English and Italian interface. - **Pricing**: Managed costs $99/month per workspace (each workspace is a separate installation) with every module, unlimited users, automatic installation and updates, monitoring, 2,000 marketing emails per month per workspace (extra emails $1 per 1,000 from prepaid wallet credits), ready-to-use Google and Meta integrations, and support. Open source is free, with unlimited workspaces, your own email provider and OAuth apps. In both editions Cloudflare bills its usage directly (Workers Paid, $5/month plus usage, typically $5–25/month). - **Who makes it**: Digital Vision Code LLC. Contact: hi@amabledata.com. Sign up at https://app.amabledata.com. The rest of this file is the complete amabledata documentation, one page after another. --- # amabledata documentation Section: Documentation home URL: https://amabledata.com/docs Summary: Documentation of amabledata, the open-source CRM you can customize with apps, from creating a Cloudflare account to the last setting of every module. amabledata is an **open-source** all-in-one CRM, email marketing, ecommerce and analytics platform that runs inside **your own Cloudflare account**, and that you can customize with [official and custom apps](https://amabledata.com/docs/apps/overview). These pages explain every module, every screen and every setting, and walk you through the Cloudflare side step by step, even if you have never used Cloudflare before. ## Start here - [What is amabledata](https://amabledata.com/docs/getting-started/introduction): The modules, the architecture and the two ways to run it. - [Cloudflare from zero](https://amabledata.com/docs/cloudflare/overview): Account, domain, plan and the exact API token permissions. - [Quickstart](https://amabledata.com/docs/getting-started/quickstart): From an empty workspace to tracked traffic and imported contacts. - [Self-hosting](https://amabledata.com/docs/self-hosting/requirements): Install and update amabledata yourself. ## Modules **CRM** Contacts, companies, deals and pipelines, tasks, tags and search. [Open the CRM docs](https://amabledata.com/docs/crm/dashboard). **Email marketing** Broadcasts, templates, automations and suppressions. [Open the email docs](https://amabledata.com/docs/marketing/broadcasts). **Forms, pages, bookings and signatures** [Forms](https://amabledata.com/docs/forms/overview), [landing pages](https://amabledata.com/docs/landing-pages/overview), [bookings](https://amabledata.com/docs/bookings/overview) and [electronic signatures](https://amabledata.com/docs/signatures/overview). **Ecommerce** Products, checkout pages with one-click upsells (paid through your own Stripe account), orders, payments, invoices, subscriptions and promotions. [Open the ecommerce docs](https://amabledata.com/docs/ecommerce/products). **Analytics** [Web analytics](https://amabledata.com/docs/analytics/install-tracker), [funnel tracking](https://amabledata.com/docs/funnels/concepts) and [ads and attribution](https://amabledata.com/docs/ads/ad-accounts). **Reports and settings** [Reports](https://amabledata.com/docs/reports/reports), [settings](https://amabledata.com/docs/settings/general) and [account security](https://amabledata.com/docs/account/signing-in). **Apps** Email verification, WhatsApp, address autocomplete, quiz funnels and countdown timers, running in your own Cloudflare account. [Official apps](https://amabledata.com/docs/apps/overview). ## For developers - [REST API](https://amabledata.com/docs/developers/rest-api): Keys, conventions, pagination and errors. - [MCP server](https://amabledata.com/docs/developers/mcp): Connect Cursor, Claude and other AI assistants to a workspace. - [Build an app](https://amabledata.com/docs/developers/apps-sdk): Extend amabledata with the app SDK. ## For AI assistants and LLMs Give these files to ChatGPT, Claude, Cursor or any other assistant to ask questions about amabledata. - [llms.txt](https://amabledata.com/llms.txt): What amabledata is, the key facts and an index of every documentation page. - [llms-full.txt](https://amabledata.com/llms-full.txt): The complete documentation in one plain-text file. --- # What is amabledata Section: Get started URL: https://amabledata.com/docs/getting-started/introduction Summary: The open-source all-in-one CRM, marketing, ecommerce and analytics platform that runs in your own Cloudflare account and can be customized with apps: modules, principles and how to start. amabledata is an all-in-one platform for finding, winning and keeping customers: a CRM, email marketing with automations, e-commerce, forms, booking calendars, landing pages, first-party web analytics with funnel tracking and ad attribution, reports and a REST API. Every module shares one customer record, and the whole platform runs inside **your own Cloudflare account**. It is **open source** (AGPL-3.0) and you can customize it with [official and custom apps](https://amabledata.com/docs/apps/overview) built with the [Apps SDK](https://amabledata.com/docs/developers/apps-sdk). ## Overview amabledata is for teams that want sales, marketing and customer data in one place without handing that data to a third party: - **Founders and small businesses** who need a CRM, newsletters and a shop without stitching tools together. - **Marketing teams** who want campaigns, automations, landing pages and analytics that see the same contacts. - **Sales teams** who work deals, tasks and bookings next to the full history of each customer. - **Agencies and operators** who run several brands in separate workspaces. When you sign in, you land in a **workspace** at `/t//dashboard`. The sidebar groups the modules: | Sidebar group | Items | | --- | --- | | **CRM** | Dashboard, Conversations, Contacts, Companies, Deals, Tasks & calendar, Tags, Saved searches | | **Marketing** | Broadcasts, Automations, Email templates, Suppressions, Forms, Landing pages, Short links, Calendars & bookings | | **E-commerce** | Products, Checkouts, Orders, Payments, Invoices, Subscriptions, Promotions | | **Analytics** | Overview, Realtime, Insights, Visitors, Goals & funnels, Visual funnels, Performance, Customer LTV, Cohorts, Lead journeys, Traffic sources | | **Reports** | Reports, Report dashboards | | **Settings** | General, Users & roles, Domains, Custom fields, Pipelines, Email sending, E-commerce, Integrations, Apps, API keys, Webhooks, API reference, Audit log, Backups, Billing & wallet | Items you are not allowed to use are hidden from the sidebar (see [Roles and permissions](https://amabledata.com/docs/concepts/roles-and-permissions)). ## How it works ### Your data, your cloud Each amabledata installation runs in a Cloudflare account that belongs to the customer. Contacts, orders, emails and analytics are stored there, in Cloudflare databases you control. amabledata Cloud receives only minimal operational telemetry from managed installations: software version, health status and aggregate email counts, never contact data. If you stop using the managed service, the installation and the data stay in your account. ### One customer record The modules are not separate products glued together. A visitor who reads a landing page, submits a form, books a call, opens a campaign and buys a product is **one contact**, with one timeline. That is what makes automations ("when a form is submitted, wait two days, send an email, create a deal") and revenue attribution ("which campaign produced this order") work without integrations. See [Contacts and identity](https://amabledata.com/docs/concepts/contacts-and-identity). ### Two editions, one codebase | | Cloud (managed) | Open source (self-hosted) | | --- | --- | --- | | Price | $99/month per workspace, every module and unlimited users | Free, AGPL-3.0 | | Installation and updates | Automatic | You run them | | Marketing email | 2,000 emails/month per workspace included | Your own provider | | Google and Meta integrations | Ready to use | Your own OAuth apps | | Support | Included | Community on GitHub | | Cloudflare usage | Paid by you to Cloudflare | Paid by you to Cloudflare | In both editions Cloudflare bills your usage directly: the Workers Paid plan is $5/month plus usage, typically $5 to $25/month in total. See [Cloud or self-hosted](https://amabledata.com/docs/getting-started/cloud-vs-self-hosted). ### Secure by default - Two-factor authentication is **mandatory** for every user (authenticator app or email codes), with recovery codes. - Six fixed roles (Owner, Admin, Marketer, Sales, Analyst, Viewer) decide what each member can see and change. - Sensitive actions (changing roles, creating API keys, changing the workspace address) require re-entering the second factor. - An audit log records sensitive actions; daily backups of every workspace are kept in your R2 storage. ## Step by step ### Choose your path - [Start with amabledata Cloud](https://amabledata.com/docs/getting-started/cloud-vs-self-hosted): Sign up at app.amabledata.com and follow the guided onboarding. - [Self-host it](https://amabledata.com/docs/self-hosting/requirements): Install from GitHub with one script. - [Prepare Cloudflare](https://amabledata.com/docs/cloudflare/overview): Account, domain, plan and API token, from zero. - [Quickstart](https://amabledata.com/docs/getting-started/quickstart): Your first site, contacts and email once you are in. ## Reference ### What each module does **CRM** Contacts, companies, deals in pipelines, tasks and calendar, notes, tags, 24 custom field types, merge, CSV import, full-text search and saved searches. [CRM docs](https://amabledata.com/docs/crm/contacts) **Email marketing** Templates with a block editor and Liquid personalisation, broadcasts with time-zone delivery and throttling, open and click tracking, one-click unsubscribe, suppressions, bounce and complaint handling. [Broadcasts](https://amabledata.com/docs/marketing/broadcasts) **Automations** A visual canvas with goals (tag applied, form submitted, product purchased, email opened or clicked and more), sequences, timers, decisions and HTTP requests, with statistics on every node. [Automations](https://amabledata.com/docs/marketing/automations) **E-commerce** Catalog, checkout pages with upsells paid through your Stripe account, orders, promo codes, payments and refunds, subscriptions with billing automation, invoices. [Products](https://amabledata.com/docs/ecommerce/products) **Forms and bookings** An embeddable form widget and hosted forms, encrypted submissions, webhook, Google Sheets and email connections; booking calendars with availability, several hosts, buffers, reminders, and a Google Calendar connection that blocks busy times and writes every booking as an event. [Forms](https://amabledata.com/docs/forms/overview) · [Bookings](https://amabledata.com/docs/bookings/overview) **Landing pages** A section-based page builder, rendered on your own domain, with SEO settings and versions. [Landing pages](https://amabledata.com/docs/landing-pages/overview) **Web analytics and ads** A first-party tracker served from your domain, cookie or cookieless, goals, funnels, revenue attribution, realtime, visitor journeys linked to contacts, ad spend sync and outbound conversions. [Analytics](https://amabledata.com/docs/analytics/install-tracker) · [Ads](https://amabledata.com/docs/ads/ad-accounts) **Reports and API** Built-in and custom reports, report dashboards, CSV export, a REST API with an OpenAPI reference, an MCP server for AI assistants, scoped API keys and signed webhooks. [Reports](https://amabledata.com/docs/reports/reports) · [REST API](https://amabledata.com/docs/developers/rest-api) · [MCP server](https://amabledata.com/docs/developers/mcp) **Apps** A marketplace of apps that run in your own Cloudflare account: email verification (Emailable), WhatsApp in the inbox (Kapso), address autocomplete (Mapbox), quiz funnels (Quizly), truthful countdown timers (Timely) — plus an SDK to build your own. [Official apps](https://amabledata.com/docs/apps/overview) ### Languages and appearance The interface is available in **English** and **Italian**, with a light and a dark theme. ## Limits and permissions - There is no limit on the number of users or workspaces in either edition. - What a member can do depends on their role in each workspace. See [Roles and permissions](https://amabledata.com/docs/concepts/roles-and-permissions). - Marketing email can only be sent from a verified sending domain. See [Email sending settings](https://amabledata.com/docs/marketing/email-sending-settings). ## Troubleshooting | Symptom | Cause | Fix | | --- | --- | --- | | A module is missing from the sidebar | Your role lacks the permission to read it | Ask an owner or admin to change your role. | | A page says you do not have access | You opened a page your role cannot use | Same as above. | | You belong to several companies | Each one is a separate workspace | Use **Switch workspace** in the top bar. | ## Related - [Architecture](https://amabledata.com/docs/getting-started/architecture) - [Cloud or self-hosted](https://amabledata.com/docs/getting-started/cloud-vs-self-hosted) - [Quickstart](https://amabledata.com/docs/getting-started/quickstart) - [FAQ](https://amabledata.com/docs/getting-started/faq) - [Workspaces](https://amabledata.com/docs/concepts/workspaces) --- # Architecture Section: Get started URL: https://amabledata.com/docs/getting-started/architecture Summary: How amabledata is built: two Workers, Durable Objects, D1, R2, queues and a cron job, all inside your Cloudflare account. amabledata has no servers to maintain. It is made of two Cloudflare Workers and the Cloudflare storage products they use, all created in your own account. This page explains each piece, what it stores and how a request travels through it. ## Overview ```text your Cloudflare account ┌──────────────────────────────────────────────────────────────────┐ │ amable-core (Worker) crm.example.com / workers.dev│ │ dashboard (single-page app) · REST API /api · cron · queues │ │ D1 amable-installation: users, sessions, workspaces, domains │ │ Durable Objects per workspace: TenantDb (CRM), Engine │ │ (automations), MailDb (email); BookingCalendar per calendar; │ │ EditSession per landing page being edited │ │ Queues: email-send, events-rollup, webhooks-out, │ │ form-submissions, esign-seal │ │ R2 amable-files: files, images, archives, backups │ │ │ │ amable-edge (Worker) t.example.com / workers.dev│ │ tracker and event ingest · hosted forms · booking pages · │ │ landing pages · email click/open/unsubscribe links │ │ AnalyticsDO: one analytics database per site │ │ Queue: analytics · Analytics Engine: amable_analytics │ └──────────────────────────────────────────────────────────────────┘ ``` Your team uses the **core** Worker. Your visitors and contacts only ever reach the **edge** Worker. ## How it works ### The core Worker (`amable-core`) | Part | What it does | | --- | --- | | Dashboard | The React single-page app, served as static assets. Every document request runs through the Worker first, which adds the security headers (Content Security Policy with nonces) and your language and theme before the first paint. | | `/api` | The internal API of the dashboard and the public REST API v2 (`/api/v2/...`) with its OpenAPI reference. | | Signed edge gateway | Calls from the edge Worker (hosted forms, booking pages, landing pages, media), authenticated with an HMAC secret shared by the two Workers. | | Email endpoints | Delivery webhooks of the email provider, and verification of email click, open and unsubscribe tokens. | | OAuth callbacks | `/oauth/google/callback` and `/oauth/ads/callback`. | | Queue consumers | `email-send` (sending), `webhooks-out` (signed outgoing webhooks with retries), `form-submissions` (submission → contact, automations, connections), `esign-seal` (sealing of completed signature requests: signed PDF and certificate, one per invocation). The core Worker runs with a CPU limit of 120 seconds per invocation (`limits.cpu_ms` 120000) for this work. | | Cron, every 5 minutes | CRM → analytics sync of every workspace, ad spend sync (hourly current day, daily reconciliation), tracking domain checks, webhook log pruning, daily R2 backups, daily update check (self-hosted), marketplace catalog sync. | ### The edge Worker (`amable-edge`) | Part | What it does | | --- | --- | | Tracker and ingest | Serves the JavaScript tracker and receives page views, goals, identify calls and payments. | | Funnel links | Tracking links, redirects and postbacks of funnel traffic sources. | | Hosted forms and booking pages | Public pages for forms and calendars; data comes from the core through the signed gateway. | | Landing pages | Server-side rendered published pages on your hostname, with media under `/m/*` and booking under `/b/*`. | | Email links | Click redirects, open pixels and the unsubscribe page of emails. | | `/health` | Answers `{"ok":true,"worker":"amable-edge"}`. Used to verify custom hostnames. | | `AnalyticsDO` | One SQLite database per tracked site with visitors, sessions, events, goals, funnels and attribution, plus one site index per workspace. | ### Storage | Storage | Product | Contents | Scope | | --- | --- | --- | --- | | Installation database | D1 `amable-installation` | Users, sessions, workspaces, memberships, invitations, domains, API keys, audit log, installation settings | The whole installation | | Workspace database | Durable Object `TenantDb` (SQLite) | Contacts, companies, deals, tasks, custom fields, saved searches, commerce, forms, reports, the event outbox | One per workspace | | Email database | Durable Object `MailDb` | Templates, messages, suppressions, broadcasts, email settings (time zone) | One per workspace | | Automation engine | Durable Object `Engine` | Automations, runs, schedules, webhook fan-out | One per workspace | | Booking calendars | Durable Object `BookingCalendar` | Availability and bookings of a calendar | One per calendar | | Editing locks | Durable Object `EditSession` | Who is editing a landing page | One per page | | Web analytics | Durable Object `AnalyticsDO` (edge) | Visitors, sessions, events, funnels, ad data | One per site | | Files | R2 `amable-files` | Uploaded files and images, workspace logos, raw analytics archive, backups | The whole installation | Because each workspace has its own database, workspaces are isolated by construction: a query in one workspace cannot read another. ### How events flow
  1. Every change in the CRM (a contact created, a tag applied, an order paid) is written to the workspace database together with an event in a transactional outbox, in the same transaction.
  2. The Engine Durable Object drains the outbox to run automations and to fan out signed webhooks to the webhooks-out queue.
  3. The cron job reads the same outbox to push facts to web analytics: visitor ↔ contact links, payments and refunds of CRM orders, subscription lifecycle goals and contact merges.
### Request paths | Who | Hostname | Worker | | --- | --- | --- | | Your team (dashboard, API) | App hostname, for example `crm.example.com` | `amable-core` | | A website visitor (tracker) | Tracking hostname, for example `t.example.com`, or a site's tracking domain | `amable-edge` | | A contact clicking an email link | Tracking hostname | `amable-edge`, which verifies the token with the core | | A visitor of a landing or booking page | Landing site hostname | `amable-edge`, which loads the page from the core | | An integration using the REST API | App hostname | `amable-core` | ### Upgrades and migrations Every installation is identical. Database schema migrations run automatically when the Workers start (the installation database at the first request, each workspace database when its Durable Object starts), so upgrading is a deploy. See [Updating](https://amabledata.com/docs/self-hosting/updates). ### Pluggable outside services Every outside dependency sits behind an interface and is selected by configuration, so a self-hosted installation never needs the amabledata cloud: | Capability | Cloud (license key) | Self-hosted default | | --- | --- | --- | | Marketing email | Provider account provisioned for you | Your own provider account | | System email | Central notify service | Your `send_email` binding (Cloudflare Email Sending) | | Email quota | Included volume plus prepaid wallet credits | Unlimited | | Error reporting | Fleet monitoring | Local logs, or your own HTTPS endpoint | | DNS automation | Your Cloudflare zone through the API token | Your zone through an optional token, or manual records | | Google OAuth | Central verified app | Your own OAuth client | | Payments | Recorded in the UI or API (no processor inside the installation) | Same | | Support, assisted access, ideas board | Portal and in-app | Community on GitHub | ## Step by step There is nothing to configure in this page. To create the architecture above: - in the Cloud edition, follow the onboarding after [preparing Cloudflare](https://amabledata.com/docs/cloudflare/overview); - self-hosted, run [the setup script](https://amabledata.com/docs/self-hosting/setup-script). ## Reference | Resource | Name | | --- | --- | | Workers | `amable-core`, `amable-edge` | | D1 | `amable-installation` | | R2 | `amable-files` | | Queues | `email-send`, `events-rollup`, `webhooks-out`, `form-submissions`, `esign-seal`, `analytics` | | Durable Object classes | `TenantDb`, `Engine`, `MailDb`, `EditSession`, `BookingCalendar`, `AnalyticsDO` | | Analytics Engine dataset | `amable_analytics` | | Cron | `*/5 * * * *` | | Compatibility date | `2026-10-01` | ## Limits and permissions - Rate limits protect sign-in (60 requests per minute per IP, coarse) and API keys (600 requests per minute, coarse), with exact per-account counters in D1. - The analytics database of a site keeps raw data for the site's retention (default 395 days; 0 keeps it forever); older rows are archived to R2. - See [Configuration reference](https://amabledata.com/docs/self-hosting/configuration) for every binding. ## Troubleshooting | Symptom | Cause | Fix | | --- | --- | --- | | Analytics answers *analytics unavailable* | The edge Worker is missing (core deployed alone) | Deploy the edge Worker with the setup script. | | Hosted forms, booking or landing pages fail | The two Workers do not share the same gateway secret | Set the same `EDGE_GATEWAY_SECRET` on both. | | Email links point at the dashboard hostname | No edge origin configured | Set `--edge-origin` and redeploy. | ## Related - [Cloud or self-hosted](https://amabledata.com/docs/getting-started/cloud-vs-self-hosted) - [Plans and billing](https://amabledata.com/docs/cloudflare/plans-and-billing) - [Configuration reference](https://amabledata.com/docs/self-hosting/configuration) - [Workspaces](https://amabledata.com/docs/concepts/workspaces) - [Public endpoints](https://amabledata.com/docs/public/overview) --- # Cloud or self-hosted Section: Get started URL: https://amabledata.com/docs/getting-started/cloud-vs-self-hosted Summary: The two ways to run amabledata, what each one includes, what each one costs, how the Cloud onboarding works and how to choose. amabledata comes in two editions built from the **same codebase**, with the same modules. In both, the application runs in **your** Cloudflare account. The difference is who installs it, who keeps it up to date and which central services come with it. ## Overview | | **Cloud (managed)** | **Open source (self-hosted)** | | --- | --- | --- | | Price | **$99/month per workspace**, every module, unlimited users | **Free** (AGPL-3.0 license) | | Workspaces | One per installation; each additional workspace is a new installation at $99/month | Unlimited | | Runs in your Cloudflare account | Yes | Yes | | Installation | Automatic, after a guided onboarding | You run the setup script | | Updates | Automatic, through release channels | You apply them when you want | | Error and health monitoring | Included | Worker logs, or your own error endpoint | | Marketing email | **2,000 emails/month included per workspace**; extra emails cost $1 per 1,000 from prepaid wallet credits | Your own provider account | | System email (sign-in codes, invitations) | Included | Your own Cloudflare Email Sending | | Google and Meta integrations | Ready to use | Your own OAuth apps | | DNS records for your domain | Written for you through the API | Through an optional token, or by hand | | Support | Included (tickets from the app or the customer portal) | Community support on GitHub | | Cloudflare usage | Paid by you to Cloudflare | Paid by you to Cloudflare | In both editions Cloudflare bills your usage directly: the Workers Paid plan is **$5/month plus usage**, typically **$5 to $25/month** in total. It is not part of the amabledata price and is never marked up. ## How it works ### Cloud You create an account at [app.amabledata.com](https://app.amabledata.com) and choose the managed edition. A guided onboarding (**Cloudflare setup**) walks you through preparing a Cloudflare account dedicated to amabledata and an API token used only to install and update amabledata. *You can stop at any time: we resume from the right step.* Then the installer creates everything in your account, keeps it updated and monitors errors and health. What amabledata Cloud receives from your installation is minimal operational telemetry: software version, health status and aggregate email counts. Never contact data. Support can access your installation only through time-limited **assisted access** that you grant, and every session is audited. If you cancel, your installation keeps running and your data stays in your Cloudflare account. Automatic updates, monitoring and the central services (included email, brokered Google and Meta connections) stop at the end of the billing period. ### Self-hosted You clone the public repository, sign in to Cloudflare with Wrangler and run one script that provisions and deploys everything. You bring your own email provider, OAuth apps and, optionally, a DNS token. Once a day the installation checks GitHub for a newer release and shows owners a notice; you update when you choose. ### Switching later Both editions share one codebase and run on Cloudflare, so you can self-host first and move to the managed edition later. Write to [hi@amabledata.com](mailto:hi@amabledata.com) to plan the switch. ## Step by step **Start with Cloud** 1. Sign up at [app.amabledata.com](https://app.amabledata.com) and choose the managed edition. 2. Open the **Cloudflare setup**. The steps, each with **Open in the Cloudflare dashboard** and, where possible, a **Verify** button: | Step | What you do | How it is checked | | --- | --- | --- | | **Create a Cloudflare account just for the CRM** | Sign up or use an empty account | Confirmed by you | | **Create an API token with the minimal permissions** | Create the custom token and paste it, **Save and verify** | Token active and permissions present | | **Check the account is dedicated** | Nothing, press **Verify** | The token reaches one account, with no other Workers | | **Add a payment method and enable Workers Paid** | Activate the plan in the dashboard | The account has a paid Workers subscription | | **Enable R2** | Accept the R2 plan | A test bucket is created and deleted | | **Add your domain and change the name servers** | Optional, **Skip for now** is allowed | The zone exists and is **Active** | | **Automatic installation** | Select **Install now** | The installer creates database, Workers, queues, storage, Turnstile, cron triggers and secrets | The progress shows *`` of `` steps done*. Locked steps say *Complete the previous steps first.* If you are stuck, use **Ask for help**. 3. When the installation finishes, open your installation, connect your domain (**Connect a domain**) and sign in. 4. Continue with the [Quickstart](https://amabledata.com/docs/getting-started/quickstart). Detailed Cloudflare guides for each step: [Create a Cloudflare account](https://amabledata.com/docs/cloudflare/create-account), [Create the API token](https://amabledata.com/docs/cloudflare/api-token), [Plans and billing](https://amabledata.com/docs/cloudflare/plans-and-billing), [Move an existing domain](https://amabledata.com/docs/cloudflare/migrate-a-domain). **Self-host** 1. Check the [requirements](https://amabledata.com/docs/self-hosting/requirements). 2. Prepare Cloudflare: [account](https://amabledata.com/docs/cloudflare/create-account) and [plan](https://amabledata.com/docs/cloudflare/plans-and-billing). 3. Run [the setup script](https://amabledata.com/docs/self-hosting/setup-script). 4. Add system and marketing email and any OAuth app you need ([Optional tokens and secrets](https://amabledata.com/docs/cloudflare/optional-tokens)). 5. Continue with the [Quickstart](https://amabledata.com/docs/getting-started/quickstart). ## Reference ### How to choose | Choose **Cloud** if | Choose **self-hosted** if | | --- | --- | | You want amabledata running today without a terminal | You are comfortable with Git, Node.js and Wrangler | | You want email, Google and Meta to work without creating developer apps | You already have an email provider and can create OAuth apps | | You want updates and monitoring handled for you | You want to decide exactly when to update | | You want support included | Community support is enough | | | You want to modify the code (AGPL-3.0: publish your changes if you offer them as a service) | ### What is the same in both - Every module and unlimited users in every workspace. - Your data lives in your Cloudflare account. - Mandatory two-factor authentication, six roles, audit log, daily backups. - English and Italian interface, light and dark theme. ## Limits and permissions - Cloud: only the owner of the amabledata customer account can complete the Cloudflare setup steps (*Only the account owner can complete these steps.*). - Cloud requires a Cloudflare account **dedicated** to amabledata. Self-hosted strongly recommends one. - Both require Workers Paid and R2 on the Cloudflare account. ## Troubleshooting | Symptom | Cause | Fix | | --- | --- | --- | | Cloud: *Finish the Cloudflare setup to install the CRM.* | Onboarding steps are incomplete | Select **Go to the setup** and complete the remaining steps. | | Cloud: a step does not pass | The automatic check failed | The message explains why: see [API token troubleshooting](https://amabledata.com/docs/cloudflare/api-token#troubleshooting) and [plan troubleshooting](https://amabledata.com/docs/cloudflare/plans-and-billing#troubleshooting). | | Self-hosted: no emails arrive | No system or marketing email provider configured | See [Optional tokens and secrets](https://amabledata.com/docs/cloudflare/optional-tokens). | ## Related - [What is amabledata](https://amabledata.com/docs/getting-started/introduction) - [Architecture](https://amabledata.com/docs/getting-started/architecture) - [Cloudflare from zero](https://amabledata.com/docs/cloudflare/overview) - [Billing and wallet](https://amabledata.com/docs/settings/billing-and-wallet) - [Self-hosting requirements](https://amabledata.com/docs/self-hosting/requirements) --- # Quickstart Section: Get started URL: https://amabledata.com/docs/getting-started/quickstart Summary: From an empty workspace to your first tracked site, imported contacts and a verified sending domain, in about 30 minutes. This page takes you from a brand-new, empty workspace to a working setup: regional settings, your team, a tracked website, your contacts and a sending domain. It assumes amabledata is already installed ([Cloud](https://amabledata.com/docs/getting-started/cloud-vs-self-hosted) or [self-hosted](https://amabledata.com/docs/self-hosting/setup-script)) and that you are the workspace **Owner**. ## Overview | # | Task | Where | Time | | --- | --- | --- | --- | | 1 | Sign in for the first time | Invitation link | 3 min | | 2 | Set the workspace basics | **Settings** › **General** | 3 min | | 3 | Invite your team | **Settings** › **Users & roles** | 2 min | | 4 | Add a site and install the tracker | **Analytics** | 5 min | | 5 | Import your contacts | **Contacts** › **Import** | 5 min | | 6 | Verify your sending domain | **Settings** › **Domains** | 10 min + DNS | | 7 | Next steps | Forms, broadcasts, automations | — | ## How it works Everything you create belongs to the current **workspace** (its address is in the URL: `/t//...`). The tracked site, the contacts and the emails are linked automatically: once the tracker runs and contacts exist, a visitor who submits a form or clicks a tracked email link is attached to the matching contact, and their visits appear in the contact's **Website journey**. See [Contacts and identity](https://amabledata.com/docs/concepts/contacts-and-identity). ## Step by step ### 1. Sign in for the first time 1. Open the invitation link (printed by the setup script for the first owner, or received by email). The page says **Join ``**. 2. Enter **Your name**. A password is optional (*you can always sign in with a magic link*); if you set one, use at least 12 characters. 3. Select **Accept invitation**. 4. **Set up two-factor authentication**: choose **Authenticator app** (scan the QR code and enter the code) or **Email codes**. 5. **Save your recovery codes**, then select **I saved them**. You land on the workspace dashboard. ### 2. Set the workspace basics 1. Open **Settings** › **General**. 2. Under **Workspace**, check the **Name**. The **Address** is the slug used in every URL; change it only if needed (saving a new address asks for your second factor, and the old address keeps working). 3. Under **Regional settings**, set: - **Time zone**: used for scheduled sends, dates in emails and automations (default `UTC`); - **Workspace language**: the language of invitations; - **Default country**: preset in new addresses and phone numbers; - **Default currency**: of new products and orders (default `EUR`). 4. Optionally, under **Appearance**, upload a **Logo** (PNG, JPEG, WebP, GIF or AVIF, up to 1 MB) and set a **Primary color**, and fill in **Company details**. 5. Save. You see *Settings saved*. Details: [General settings](https://amabledata.com/docs/settings/general) and [Money, dates and time zones](https://amabledata.com/docs/concepts/money-and-time-zones). ### 3. Invite your team 1. Open **Settings** › **Users & roles** and select **Invite user**. 2. Enter the **Email** and choose a **Role** (Owner, Admin, Marketer, Sales, Analyst or Viewer). The **Roles** section of the page describes each one. 3. Select **Send invitation** and confirm with your second factor. The invitation is valid for 7 days and appears under **Pending invitations**. Choosing the right role: [Roles and permissions](https://amabledata.com/docs/concepts/roles-and-permissions). ### 4. Add a site and install the tracker 1. Open **Analytics** › **Overview**. In an empty workspace it shows *Track your first website*. Select **Add a site** (or go to the analytics settings › **Sites** › **New site**). 2. Fill in **Add a site**: - **Name**: for example `Acme website`; - **Hostnames**: type `example.com` and press **Enter**; each hostname also covers its subdomains (up to 20); - **Time zone**: preset from your browser; - **Currency**: default `EUR`; - **Retention (days)**: default 395 (0 keeps raw data forever, otherwise 30 to 3650); - **Attribution**: default *Last non-direct*; - **Cookieless** and **Allow localhost** switches. 3. Select **Create site**. The dialog *`` is ready* shows the **site secret** once (*Copy it now: it will not be shown again.*) and the **Tracking snippet**. 4. Paste the snippet into the `` of every page of your website (or in your website builder's custom code setting). 5. Open your website in a browser. In the analytics settings, the **Tracking** tab's **Installation** check changes from *Waiting for the first event* to *Receiving events*. Details: [Sites](https://amabledata.com/docs/concepts/sites) and [Install the tracker](https://amabledata.com/docs/analytics/install-tracker). ### 5. Import your contacts 1. Export your contacts from your previous tool as a CSV file with a header row (comma, semicolon or tab separated, up to 100,000 rows or 50 MB). 2. Open **Contacts** and select **Import**. 3. **Upload**: drop the file or **Choose a CSV file**. 4. **Map columns**: for each **CSV column**, choose **Import as** (a contact field, tags, a custom field) or **Do not import**. Each field can be used once. 5. Choose the options: **Update contacts with the same email** (on by default), **Tag every imported contact** (recommended, for example a tag `import-2026`), and the **Separator for tags and lists** (default `;`). 6. Select **Start import** and keep the page open (*Importing… keep this page open.*). 7. **Result** shows the rows created, updated and *with errors*, with the row number and error of the first 100 problems. Select **View contacts**. Details: [Importing contacts](https://amabledata.com/docs/crm/importing-contacts). If you need extra fields (for example a customer code), create them first in [Custom fields](https://amabledata.com/docs/concepts/custom-fields). ### 6. Verify your sending domain Marketing email is blocked until a sending domain is verified. 1. Open **Settings** › **Domains** and select **Connect a domain**. 2. Choose **Sending domain**, enter your domain and select **Add**. 3. Create the listed DNS records: select **Create on Cloudflare** if available, or add them yourself in Cloudflare (keep them **DNS only**). 4. Select **Verify** until the status is **Verified**. Details: [Connect your domains](https://amabledata.com/docs/cloudflare/connect-domains) and [Email sending settings](https://amabledata.com/docs/marketing/email-sending-settings). ### 7. Next steps - Capture leads with a [form](https://amabledata.com/docs/forms/form-builder) on your website. - Send your first [broadcast](https://amabledata.com/docs/marketing/broadcasts) to a tag or a saved search. - Build a welcome [automation](https://amabledata.com/docs/marketing/automations). - Set up [deal pipelines](https://amabledata.com/docs/settings/pipelines) and start working [deals](https://amabledata.com/docs/crm/deals). - Add a [tracking domain](https://amabledata.com/docs/tracking-domains/overview) for first-party links. ## Reference | Default | Value | | --- | --- | | Workspace time zone | `UTC` until you change it | | Workspace currency | `EUR` until you change it | | New site time zone | Your browser's time zone | | New site currency | `EUR` | | New site retention | 395 days | | New site attribution model | Last non-direct | | Invitation validity | 7 days | | CSV import limits | 100,000 rows or 50 MB, header row required | ## Limits and permissions | Task | Permission | Roles | | --- | --- | --- | | General settings | `settings:manage` | Owner, Admin | | Invite users | `users:manage` | Owner, Admin (only owners can invite owners) | | Add a site | `analytics:configure` | Owner, Admin, Marketer | | Import contacts | `contacts:import` | Owner, Admin, Marketer | | Domains | `domains:manage` | Owner, Admin | ## Troubleshooting | Symptom | Cause | Fix | | --- | --- | --- | | *This invitation is invalid, expired or already used.* | The link was used, expired after 7 days or revoked | Ask an owner or admin to send a new invitation. | | The invitation email never arrives | System email is not configured (self-hosted) | See [Optional tokens and secrets](https://amabledata.com/docs/cloudflare/optional-tokens#system-email-your-own-cloudflare-email-sending). | | The installation check stays on *Waiting for the first event* | Snippet missing, wrong hostname, or a blocker extension | Check the snippet is on the page, the hostname is in the site's **Hostnames**, and test in a private window. | | *The file is larger than 50 MB.* | CSV too big | Split the file. | | Many rows *with errors* | Invalid emails, phone numbers or custom field values | Fix the listed rows and import them again. | | The sending domain stays **Not verified** | DNS records missing or proxied | Recreate them exactly, **DNS only**, then **Verify**. | ## Related - [Workspaces](https://amabledata.com/docs/concepts/workspaces) - [Roles and permissions](https://amabledata.com/docs/concepts/roles-and-permissions) - [Sites](https://amabledata.com/docs/concepts/sites) - [Contacts and identity](https://amabledata.com/docs/concepts/contacts-and-identity) - [FAQ](https://amabledata.com/docs/getting-started/faq) --- # FAQ Section: Get started URL: https://amabledata.com/docs/getting-started/faq Summary: Answers to the questions people ask most often: data location, costs, Cloudflare, email, security, editions and support. Short answers to the questions people ask most often, with links to the full explanation. ## Overview The questions are grouped by topic: data and privacy, costs, Cloudflare, email, security and access, editions and support. ## How it works ### Data and privacy **Where does my data live?** In your own Cloudflare account. Each amabledata installation runs there, and contacts, orders, emails and analytics are stored there. amabledata Cloud receives only minimal operational telemetry from managed installations: software version, health status and aggregate email counts. Never contact data. See [Architecture](https://amabledata.com/docs/getting-started/architecture). **Is it GDPR friendly?** The architecture helps: your CRM data stays in your own Cloudflare account and you remain its data controller. Unsubscribe and bounce handling, cookieless tracking and data export are built in. How you collect consent and use the data is still your decision. **Can the tracker work without cookies?** Yes. Turn on **Cookieless** on the site: no identifier is stored in the browser and visitors are counted with a daily rotating hash. Snippets already on your pages switch automatically and expire the cookies they wrote before. See [Sites](https://amabledata.com/docs/concepts/sites). **What happens to my data if I cancel the Cloud subscription?** Your installation keeps running and your data stays in your Cloudflare account. Automatic updates, monitoring and the central services stop at the end of your billing period. ### Costs **What does amabledata cost?** The managed edition is $99/month per workspace, with every module and unlimited users. The open-source edition is free. See [Cloud or self-hosted](https://amabledata.com/docs/getting-started/cloud-vs-self-hosted). **What do I pay Cloudflare?** Your installation needs the Cloudflare Workers Paid plan: $5/month plus usage. For most accounts the total is between $5 and $25 per month. Cloudflare bills you directly; it is not part of the amabledata price. See [Plans and billing](https://amabledata.com/docs/cloudflare/plans-and-billing). **What's included in the $99?** Automatic installation and updates, error and health monitoring, every module, unlimited users, 2,000 marketing emails per month, ready-to-use Google and Meta integrations, and support. Cloudflare usage is billed separately by Cloudflare. **What if I send more than 2,000 emails in a month?** Extra emails cost $1 per 1,000, paid from prepaid wallet credits. See [Billing and wallet](https://amabledata.com/docs/settings/billing-and-wallet). **Are users or workspaces limited?** Users are unlimited in both editions. Workspaces are unlimited in the open-source edition, where any workspace owner can create another one from the workspace switcher (**New workspace**); see [Workspaces](https://amabledata.com/docs/concepts/workspaces#create-a-new-workspace). In the managed edition every workspace is a separate installation at $99/month: add one from the customer portal with **New installation**. Each one adds 2,000 included emails to the monthly quota. ### Cloudflare **I have never used Cloudflare. Can I still use amabledata?** Yes. The [Cloudflare from zero](https://amabledata.com/docs/cloudflare/overview) chapter walks you through the account, the domain, the plan and the token step by step. **Why does the Cloudflare account have to be dedicated?** Cloudflare API tokens are valid for a whole account, so the Cloud onboarding requires an account that contains only amabledata. It checks that the token reaches one account with no other Workers. See [Create a Cloudflare account](https://amabledata.com/docs/cloudflare/create-account#why-a-dedicated-account). **Do I need a domain to start?** No. amabledata starts on a `workers.dev` address. You need your own domain before sending marketing email, and for branded tracking and landing pages. **My domain is at another registrar. Do I have to transfer it?** No. You only need to point its name servers to Cloudflare. Transferring the registration is optional. See [Move an existing domain](https://amabledata.com/docs/cloudflare/migrate-a-domain). **Can I revoke amabledata's access to my Cloudflare account?** Yes, at any time, by deleting the API token in Cloudflare (**My Profile** › **API Tokens**). Your installation keeps running; automatic updates stop until you save a new token. ### Email **Why do I need my own domain to send email?** Mailbox providers trust email that is authenticated by the sender's own domain. amabledata requires a verified sender domain with SPF, DKIM and DMARC before any campaign goes out. It protects your sender reputation and your recipients. **Are unsubscribes and bounces handled?** Yes: one-click unsubscribe, bounce and complaint handling and a suppression list are built in. See [Suppressions](https://amabledata.com/docs/marketing/suppressions). **Can broadcasts go out in each contact's time zone?** Yes. Broadcasts can be scheduled in each recipient's time zone. See [Broadcasts](https://amabledata.com/docs/marketing/broadcasts). ### Security and access **How is my account secured?** Two-factor authentication is mandatory for every user. Role-based access control with six roles limits who can see and change what, and an audit log records sensitive actions. In the Cloud edition, support can access your installation only through time-limited assisted access that you grant, and every session is audited. **Can I create custom roles?** No. There are six fixed roles: Owner, Admin, Marketer, Sales, Analyst and Viewer. See [Roles and permissions](https://amabledata.com/docs/concepts/roles-and-permissions). **Can I hide sensitive fields from some users?** Yes. Mark a custom field as **Sensitive**: its values are masked for roles without the permission to read sensitive data (the Viewer role). See [Custom fields](https://amabledata.com/docs/concepts/custom-fields). **Is my data backed up?** Yes. A full copy of each workspace is saved every day to your R2 storage; owners can also create, download and restore backups. See [Backups](https://amabledata.com/docs/settings/backups). ### Editions and support **What's the difference between managed and open source?** Same codebase, same features. With managed, amabledata installs, updates and monitors it for you, includes 2,000 emails a month, provides ready-to-use Google and Meta integrations and support. With open source, you run everything yourself under AGPL-3.0, with your own email provider and OAuth apps. **Can I self-host and switch to managed later?** Yes. Both editions share one codebase and run on Cloudflare. Write to [hi@amabledata.com](mailto:hi@amabledata.com) to plan the switch. **How do I get support?** Managed customers open a ticket from the app or from the customer portal at [app.amabledata.com](https://app.amabledata.com). Open source users get community support on [GitHub](https://github.com/Ratne/AmableData/discussions). **Which languages does the interface support?** English and Italian, with a light and a dark theme. ## Step by step Ready to start? Follow these pages in order: 1. [Cloud or self-hosted](https://amabledata.com/docs/getting-started/cloud-vs-self-hosted) 2. [Cloudflare from zero](https://amabledata.com/docs/cloudflare/overview) 3. [Quickstart](https://amabledata.com/docs/getting-started/quickstart) ## Reference | Topic | Page | | --- | --- | | Prices and editions | [Cloud or self-hosted](https://amabledata.com/docs/getting-started/cloud-vs-self-hosted) | | Cloudflare costs | [Plans and billing](https://amabledata.com/docs/cloudflare/plans-and-billing) | | Token permissions | [Create the API token](https://amabledata.com/docs/cloudflare/api-token) | | Roles | [Roles and permissions](https://amabledata.com/docs/concepts/roles-and-permissions) | | Self-hosted updates | [Updating](https://amabledata.com/docs/self-hosting/updates) | ## Limits and permissions See [Roles and permissions](https://amabledata.com/docs/concepts/roles-and-permissions) for who can do what inside a workspace, and [Plans and billing](https://amabledata.com/docs/cloudflare/plans-and-billing) for what the Cloudflare account needs. ## Troubleshooting If your question is about an error message, look at the **Troubleshooting** section of the page of the feature you are using: every page lists the exact messages and how to fix them. ## Related - [What is amabledata](https://amabledata.com/docs/getting-started/introduction) - [Architecture](https://amabledata.com/docs/getting-started/architecture) - [Cloud or self-hosted](https://amabledata.com/docs/getting-started/cloud-vs-self-hosted) - [Support and ideas](https://amabledata.com/docs/account/support-and-ideas) --- # Overview Section: Cloudflare from zero URL: https://amabledata.com/docs/cloudflare/overview Summary: Everything you need on Cloudflare, in the order you need it, even if you have never used Cloudflare before. amabledata does not run on our servers. It runs inside **your own Cloudflare account**: the application, the database, the files, the queues and the web analytics all live there, and Cloudflare bills you directly for what they use. This chapter takes you from "I have never opened Cloudflare" to "my account, domain and API token are ready", one page at a time. ## Overview Cloudflare is a cloud platform. amabledata uses these Cloudflare products: | Cloudflare product | What amabledata uses it for | | --- | --- | | **Workers** | Runs the two amabledata programs: the main application (dashboard, API, automations, email) and the edge worker (tracking, hosted forms, booking and landing pages, email links). | | **Durable Objects** | One small private database per workspace (CRM, email, automations), per booking calendar, per landing page being edited and per tracked website. | | **D1** | The installation database: users, sessions, workspaces, memberships, domains. | | **R2** | Files, images, analytics archives and the daily backups. | | **Queues** | Background work: sending emails, delivering webhooks, processing form submissions and analytics events. | | **Cron Triggers** | A job that runs every 5 minutes (backups, analytics sync, ad spend sync, domain checks, update check). | | **DNS and Registrar** | Your domain, the records that point it at amabledata and the email authentication records. | | **Turnstile** | Bot protection on sign-in and public forms. | You do not have to understand these products to use amabledata. You only have to prepare the account once, following the pages below in order. :::tip[Menus change] Cloudflare occasionally renames or moves menus in its dashboard. Every page in this chapter describes the dashboard as it is today and gives you the direct link when one exists. If a menu has a slightly different name when you read this, look for the closest match or use the dashboard search (press **Ctrl+K** or **Cmd+K**). ::: ## How it works There are two ways to run amabledata, and both need a Cloudflare account: - **amabledata Cloud (managed).** You sign up at [app.amabledata.com](https://app.amabledata.com). A guided onboarding asks you to prepare a Cloudflare account, create an API token and paste it. The installer then creates everything in your account and keeps it updated. - **Self-hosted (open source).** You install amabledata yourself from the public repository with a setup script. You log in to Cloudflare from your terminal; no API token is pasted anywhere. What you prepare on Cloudflare is almost the same in both cases: | Step | Cloud | Self-hosted | | --- | --- | --- | | Create a Cloudflare account | Required, **dedicated** to amabledata | Required, dedicated recommended | | Verify the email and turn on two-factor authentication | Required | Required | | Activate **Workers Paid** | Required (checked automatically) | Required | | Enable **R2** | Required (checked automatically) | Required | | Add a domain (buy one or move one) | Optional at first, needed for email and custom hostnames | Optional at first, needed for email and custom hostnames | | Create the custom **API token** | Required | Not needed for the install (you use `wrangler login`); an optional token automates DNS later | | Connect your domains | Done for you through the API | You do it in the dashboard or let the in-app wizard do it | :::note You can start without a domain. Both editions start on a free `workers.dev` address (for example `https://amable-core.your-subdomain.workers.dev`). You need your own domain before you can send marketing email, because mailbox providers only trust mail authenticated by the sender's own domain. ::: ## Step by step ### Prepare Cloudflare for amabledata 1. **Create the account.** Sign up, verify your email, turn on two-factor authentication and copy your Account ID. See [Create a Cloudflare account](https://amabledata.com/docs/cloudflare/create-account). 2. **Get a domain.** Either [buy a new domain](https://amabledata.com/docs/cloudflare/buy-a-domain) with Cloudflare Registrar, or [move a domain you already own](https://amabledata.com/docs/cloudflare/migrate-a-domain) to Cloudflare DNS without breaking your website or email. You can skip this for now and come back later. 3. **Activate the plan.** Add a payment method, switch to Workers Paid and enable R2. See [Plans and billing](https://amabledata.com/docs/cloudflare/plans-and-billing). 4. **Create the API token** (Cloud edition, or self-hosted DNS automation). See [Create the API token](https://amabledata.com/docs/cloudflare/api-token) for the exact list of permissions and why each one is needed. 5. **Add optional credentials** only if you need them: custom-hostname tracking domains, ad platform apps, Google apps. See [Optional tokens and secrets](https://amabledata.com/docs/cloudflare/optional-tokens). 6. **Connect your domains** to amabledata: the app hostname, the tracking hostname, the email sending domain and tracking domains. See [Connect your domains](https://amabledata.com/docs/cloudflare/connect-domains). ## Reference ### Time and cost at a glance | Step | Time you spend | What can make it slower | | --- | --- | --- | | Create the account | 5 minutes | The verification email landing in spam | | Buy a domain | 5 minutes | None: the domain is active immediately | | Move a domain | 15 minutes of work | Name server propagation (minutes to 24 hours) | | Plans and billing | 5 minutes | A card being declined | | API token | 10 minutes | None | Cloudflare usage is billed by Cloudflare, not by amabledata. The Workers Paid plan is $5/month plus usage, and for most accounts the total is typically between $5 and $25 per month. See [Plans and billing](https://amabledata.com/docs/cloudflare/plans-and-billing). ### Words you will meet | Term | Meaning | | --- | --- | | **Account** | The Cloudflare container that holds Workers, databases, domains and billing. One login (user) can belong to several accounts. | | **Account ID** | A 32-character identifier of an account. You need it for some API and command-line operations. | | **Zone** | A domain added to Cloudflare (for example `example.com`), with its DNS records. | | **Name servers** | The servers that answer "where is this domain?". Moving a domain to Cloudflare means pointing its name servers at the two Cloudflare gives you. | | **Registrar** | The company where you bought (registered) the domain. It can be Cloudflare or any other company. | | **Worker** | A program that runs on Cloudflare's network. amabledata installs two: `amable-core` and `amable-edge`. | | **workers.dev** | The free address Cloudflare gives every Worker, `https://..workers.dev`. | | **API token** | A key that lets a program act on your account with exactly the permissions you choose. | ## Limits and permissions - You must be able to sign in to the Cloudflare account with the **Super Administrator** role (the person who created the account has it) to activate plans and add payment methods. - amabledata's hosted onboarding requires the Cloudflare account to be dedicated to amabledata. See [why](https://amabledata.com/docs/cloudflare/create-account#why-a-dedicated-account). - Inside amabledata, only workspace members with the right role can connect domains. See [Roles and permissions](https://amabledata.com/docs/concepts/roles-and-permissions). ## Troubleshooting | Symptom | Cause | Fix | | --- | --- | --- | | A menu named in these pages does not exist | Cloudflare renamed or moved it | Use the dashboard search (**Ctrl+K** or **Cmd+K**) or the direct links on each page. | | You see several accounts after signing in | Your login is a member of more than one account | Pick the account you created for amabledata from the account list before you follow any step. | | The Cloud onboarding refuses to continue | One of its automatic checks failed | Each step shows the reason. See the troubleshooting tables of [Create the API token](https://amabledata.com/docs/cloudflare/api-token#troubleshooting) and [Plans and billing](https://amabledata.com/docs/cloudflare/plans-and-billing#troubleshooting). | ## Related - [Create a Cloudflare account](https://amabledata.com/docs/cloudflare/create-account) - [Plans and billing](https://amabledata.com/docs/cloudflare/plans-and-billing) - [Create the API token](https://amabledata.com/docs/cloudflare/api-token) - [Connect your domains](https://amabledata.com/docs/cloudflare/connect-domains) - [Cloud or self-hosted](https://amabledata.com/docs/getting-started/cloud-vs-self-hosted) - [Architecture](https://amabledata.com/docs/getting-started/architecture) - [Self-hosting requirements](https://amabledata.com/docs/self-hosting/requirements) --- # Create a Cloudflare account Section: Cloudflare from zero URL: https://amabledata.com/docs/cloudflare/create-account Summary: Sign up, verify the email, turn on two-factor authentication, prepare an account dedicated to amabledata and find its Account ID. Everything amabledata stores (contacts, orders, emails, analytics) lives in a Cloudflare account that belongs to you. This page creates that account and makes it safe. ## Overview You need: - an email address you can read (Cloudflare sends a verification link, and later billing and security notices); - a password manager or another safe place for the password and the two-factor backup codes; - a phone with an authenticator app, or a security key, for two-factor authentication. You do **not** need a domain or a payment method yet: they come in the next pages. :::tip[Menus change] Cloudflare occasionally renames menus. If a label below does not match exactly, use the dashboard search (**Ctrl+K** or **Cmd+K**). ::: ## How it works ### User, account and members Cloudflare separates two things: - your **user** (the login: email, password, two-factor methods), and - an **account** (the container of Workers, databases, domains and billing). When you sign up, Cloudflare creates a user and a first account named `'s Account`. Your user is the **Super Administrator** of that account. Later, one user can belong to several accounts, and an account can have several members. ### Why a dedicated account amabledata installs two Workers, a D1 database, an R2 bucket, six queues and several Durable Object classes, and (in the Cloud edition) keeps them up to date through an API token. - **Cloud edition: dedicated account required.** Cloudflare API tokens are valid for a whole account, so the account you connect must contain nothing but amabledata. The onboarding checks it automatically after you save the token: the token must reach **exactly one account**, and that account must have **no Workers other than the ones amabledata installs** (their names start with `amable-`). If you connect an account that already runs other Workers, the step fails with *"The account already has other Workers: use an account dedicated to the CRM."* - **Self-hosted: dedicated account recommended.** Nothing forces you, but a separate account keeps your CRM data, billing and permissions apart from your other projects, avoids name clashes (the installer uses fixed names such as `amable-core`, `amable-edge`, `amable-installation`, `amable-files`, `email-send`), and lets you give team members access to amabledata only. Your Cloudflare plan is billed per account, so a dedicated account also makes the Cloudflare cost of amabledata easy to read on its own invoice. ### Your Account ID Every account has a 32-character **Account ID**. amabledata's Cloud onboarding reads it from the token, so you never type it there. You need it for some command-line operations (for example when your login can see several accounts) and when you ask for support. ## Step by step ### Sign up 1. Open [dash.cloudflare.com/sign-up](https://dash.cloudflare.com/sign-up). 2. Enter your **Email** and a **Password**. For a business, prefer a shared alias such as `cloudflare@yourcompany.com`: it receives billing, usage and account recovery messages, so it should not depend on one person. 3. Select **Create Account**. Cloudflare may ask you to complete a short bot check. 4. If the dashboard asks what you want to do first (connect a domain, build an application, and so on), you can skip it: the next pages tell you exactly what to open. ### Verify your email 1. Open the email Cloudflare sent to your address right after sign-up and select the verification link. 2. If you cannot find it, look in the spam folder, then request a new one from the banner that the dashboard shows while the address is unverified. 3. Reload the dashboard: the banner disappears when the address is verified. :::caution Verify the email **before** you turn on two-factor authentication. Cloudflare can only enable two-factor authentication on a verified address, and enabling it on an unverified one can lock you out. A verified email is also required to buy or transfer domains. ::: ### Turn on two-factor authentication 1. In the dashboard, open the profile menu (top right) and select **My Profile**. 2. Select **Authentication**. 3. Under **Two-Factor Authentication**, select **Set up** (or **Add** next to a method). Choose one: - **Mobile App Authentication**: scan the QR code with an authenticator app, enter the 6-digit code, then confirm with your password. - **Security Key Authentication**: register a hardware key or a built-in authenticator (Touch ID, Windows Hello, Android fingerprint). - **Email Authentication**: Cloudflare emails you a code at every sign-in. 4. Cloudflare shows **backup codes**. Select **Download**, **Print** or **Copy** and store them somewhere safe (a password manager is ideal). Each code works once and lets you in if you lose your phone or key. 5. Cloudflare recommends adding a second method too, so a lost device never locks you out. ### Create a dedicated account (when you already use Cloudflare) If you just signed up, your new account is already empty and dedicated: rename it (next task) and move on. If your login already has an account with other projects, create a separate one. **Additional account (same login)** 1. In the dashboard, open the account list (**Accounts** from the account switcher or the home page). 2. Select **Create Account**. 3. Enter a name such as `amabledata` and select **Create Account**. 4. Switch to the new account from the account switcher before you follow any other page of this chapter. Cloudflare's conditions for an additional Free account: your user must be active and at least seven days old, you must be Super Administrator of an existing account, and you can create up to five additional Free accounts. The new account starts on the Free plan; you upgrade it in [Plans and billing](https://amabledata.com/docs/cloudflare/plans-and-billing). **Separate login** Sign up again (first task of this page) with a different email address, for example `crm@yourcompany.com`. This gives you a completely separate login and account. Use it if the seven-day or five-account conditions block you, or if you want the CRM to have its own recovery email. :::caution[Cloud edition: one account per token] For the Cloud onboarding, the API token must reach **only** the dedicated account. If your login belongs to several accounts, you restrict the token to that one account when you create it. See [Create the API token](https://amabledata.com/docs/cloudflare/api-token). ::: ### Rename the account 1. Open the account, then go to **Manage Account** › **Configurations** (the account settings page). 2. Next to **Account Name**, select **Change Name**. 3. Enter a recognisable name, for example `amabledata - Acme Ltd`, and select **Save**. ### Find and copy your Account ID Use whichever is quicker: 1. **Dashboard search.** On the account home, open the search (**Ctrl+K** or **Cmd+K**), type `Copy account ID` and select the result. The ID is now in your clipboard. 2. **Workers & Pages.** Go to **Workers & Pages**: the **Account Details** section on the right shows the **Account ID** with a copy button. 3. **A domain.** Open any domain of the account: the **API** section at the bottom of its **Overview** page shows the **Zone ID** and the **Account ID**. ### Invite a colleague (optional) If someone else will manage billing or domains, add them as a member of the account instead of sharing your password: **Manage Account** › **Members** › **Invite**. They must turn on two-factor authentication before they can join an account that enforces it. ## Reference | Item | Value | | --- | --- | | Sign-up page | [dash.cloudflare.com/sign-up](https://dash.cloudflare.com/sign-up) | | Profile and two-factor settings | **My Profile** › **Authentication** | | Account name | **Manage Account** › **Configurations** › **Account Name** | | Account ID | Dashboard search `Copy account ID`, or **Workers & Pages** › **Account Details** | | Default account name | `'s Account` | | Additional Free accounts | Up to five, user at least seven days old, Super Administrator role | | Cloud onboarding check | Token reaches exactly one account, and that account has no Workers except those whose names start with `amable-` | ## Limits and permissions - Only a **Super Administrator** of the account can activate Workers Paid, enable R2 and add payment methods. The person who created the account has this role. - Two-factor authentication on your Cloudflare login is strongly recommended. Anyone who signs in to the account can read or delete your CRM data. - amabledata itself has its own sign-in with mandatory two-factor authentication. That is separate from your Cloudflare login. See [Signing in](https://amabledata.com/docs/account/signing-in). ## Troubleshooting | Symptom | Cause | Fix | | --- | --- | --- | | No verification email | Spam filter, or a typo in the address | Check spam, then resend from the dashboard banner. If the address is wrong, sign up again with the right one. | | "Your user is less than seven days old." when creating an additional account | Cloudflare's age rule for additional accounts | Wait until the user is seven days old, or sign up with a separate email. | | "You reached an account creation limit." | Already five additional Free accounts | Reuse an empty account or sign up with a separate email. | | Cloud onboarding: *"The token reaches more than one account: limit it to the CRM account only."* | The token's **Account Resources** include several accounts | Edit the token and set **Account Resources** to **Include** › the dedicated account only. | | Cloud onboarding: *"The account already has other Workers: use an account dedicated to the CRM."* | The account contains Workers not installed by amabledata | Create a new account (see above) and a new token for it, or delete the other Workers if you no longer need them. | | Cloud onboarding: *"No Cloudflare account found for this token."* | The token has no account permissions or no account resource | Recreate the token with the permissions listed in [Create the API token](https://amabledata.com/docs/cloudflare/api-token). | | Locked out after losing your phone | No backup code at hand | Use a backup code on the **Two-Factor Authentication** page at sign-in. Without one, follow Cloudflare's account recovery process. | ## Related - [Buy a domain](https://amabledata.com/docs/cloudflare/buy-a-domain) - [Move an existing domain](https://amabledata.com/docs/cloudflare/migrate-a-domain) - [Plans and billing](https://amabledata.com/docs/cloudflare/plans-and-billing) - [Create the API token](https://amabledata.com/docs/cloudflare/api-token) - Cloudflare: [Create account](https://developers.cloudflare.com/fundamentals/account/create-account/), [Two-factor authentication](https://developers.cloudflare.com/fundamentals/user-profiles/2fa/), [Find account and zone IDs](https://developers.cloudflare.com/fundamentals/account/find-account-and-zone-ids/) --- # Buy a domain Section: Cloudflare from zero URL: https://amabledata.com/docs/cloudflare/buy-a-domain Summary: Register a new domain with Cloudflare Registrar, step by step: search, term, contacts, payment, WHOIS privacy and auto-renew. If you do not own a domain yet, the simplest path is to buy it directly in the Cloudflare account you created for amabledata. A domain bought there is already a Cloudflare zone, with Cloudflare DNS, so there are no name servers to change and it is ready in about a minute. ## Overview You need a domain for: - **sending marketing email** from your own address (amabledata refuses to send campaigns until the sending domain is verified with SPF, DKIM and DMARC); - a **tracking hostname** such as `t.example.com` (first-party cookies, branded links); - **landing and booking pages** on your own hostname; - optionally the **dashboard** itself on a hostname such as `crm.example.com`. You can use one domain for all of these by using subdomains. Already own a domain at another company? Do not buy a new one: follow [Move an existing domain](https://amabledata.com/docs/cloudflare/migrate-a-domain) instead. :::tip[Menus change] Cloudflare occasionally renames menus. If a label below does not match exactly, use the dashboard search (**Ctrl+K** or **Cmd+K**) and type "Register domains". ::: ## How it works - **At-cost pricing.** Cloudflare Registrar sells domains at the price the registry charges, with no markup. The price depends on the extension (`.com`, `.io`, `.it`, and so on) and is shown before you pay; the renewal price is shown too. - **Cloudflare DNS is mandatory.** A domain registered with Cloudflare always uses Cloudflare name servers. You cannot point it at another DNS provider while it stays registered with Cloudflare. For amabledata this is exactly what you want. - **WHOIS privacy.** Your personal contact details are redacted from the public WHOIS database whenever the registry allows it, at no extra cost. - **Auto-renew is on by default.** Cloudflare tries to renew the domain on its **Renew On** date with your payment method. You can turn it off, but an expired domain stops your email and tracking links. - **Registrant verification.** ICANN requires you to verify the registrant email address. If it stays unverified, ICANN puts the domain on hold and replaces its name servers with parking name servers until you verify. Restrictions to know before you search: - Your Cloudflare account email must be verified. - Internationalised domain names (with characters such as `à`, `ü`, `ç`) are not supported. - Some extensions (for example `.us`) have extra requirements, shown during the purchase. ## Step by step ### Register a new domain 1. Sign in to the dashboard and select the **amabledata account** in the account switcher. 2. Go to **Domains** › **Register domains** (in older layouts: **Domain Registration** › **Register Domains**). 3. Type the name you want, or one or more keywords, and select **Search**. If your exact name does not appear in the results, it is not available. 4. Select **Purchase** next to the domain. Cloudflare runs a final availability check at this point. 5. Choose the **term** (number of years) in the payment option drop-down. Most extensions allow up to ten years. The **expiration date**, the **price** and the **Renew On** date update automatically. 6. Fill in the **contact details**. They are used for the Registrant, Admin, Technical and Billing contacts. Use ASCII characters only (no accented letters). Required fields: | Field | Rule | | --- | --- | | First Name, Last Name | At least two letters each | | Email | A valid address you read (you will verify it) | | Phone number | Country code from the list, digits only | | Address 1 | Not all digits | | City, State, Country, Postal Code | Required; postal code in the correct format | | Organization, Address 2, Ext | Optional | Provide accurate information: inaccurate contacts can lead to suspension. 7. In **Payment**, use your billing profile or enter a card. 8. Read the Domain Registration Agreement, the Self-serve Subscription Agreement and the Privacy Policy, then select **Complete purchase**. 9. Wait up to 30 seconds. The dashboard opens the domain management page and you receive a confirmation email. 10. Open the registrant verification email (from Cloudflare on behalf of ICANN) and confirm the address. The domain now appears in **Domains** with the status **Active**, using Cloudflare name servers. There is nothing else to configure for it to work with amabledata: continue with [Plans and billing](https://amabledata.com/docs/cloudflare/plans-and-billing) and later [Connect your domains](https://amabledata.com/docs/cloudflare/connect-domains). ### Check or change auto-renew 1. Go to **Domains** › **Manage domains** (or **Registrations**) and select the domain. 2. Find the **Auto-renew** setting and leave it on. Turn it off only if you really want the domain to expire. 3. To add years in advance, use the option to extend the registration on the same page. ### Update the contacts later Open the domain from **Manage domains** and edit the contact information. Note that changing the registrant name, organisation or email starts a 60-day transfer lock under ICANN rules (this only matters if you later want to move the domain to another registrar). ### Turn on DNSSEC (recommended) DNSSEC signs your DNS answers so nobody can forge them. On a domain registered with Cloudflare you can enable it from the domain's **DNS** › **Settings** page with one click. ## Reference | Item | Value | | --- | --- | | Where | **Domains** › **Register domains** | | Price | At cost, set by the registry, shown before payment, no markup | | Maximum term | Usually ten years, depends on the extension | | DNS | Cloudflare name servers, cannot be changed while registered with Cloudflare | | WHOIS | Personal data redacted when the registry allows it | | Auto-renew | On by default | | Not supported | Internationalised (Unicode) domain names | ### Choosing a name | Tip | Why | | --- | --- | | Use your brand domain if you have one | Email from your real domain is more trusted than from a look-alike | | Plan subdomains, not new domains | `crm.example.com` for the dashboard, `t.example.com` for tracking, `go.example.com` for landing pages | | Avoid hyphens and digits | They are easy to mistype and look like spam to some filters | ## Limits and permissions - You need the **Super Administrator** role (or a role with billing and registrar access) on the Cloudflare account. - Your Cloudflare email must be verified, and the account needs a valid payment method. - In amabledata, connecting the domain needs the `domains:manage` permission (owner and admin roles). See [Roles and permissions](https://amabledata.com/docs/concepts/roles-and-permissions). ## Troubleshooting | Symptom | Cause | Fix | | --- | --- | --- | | The domain is not in the search results | It is already registered, or the extension is not sold by Cloudflare | Try another extension or name. | | You cannot type accented characters | Cloudflare Registrar does not support internationalised names | Use the ASCII version of the name. | | The contact form rejects your data | Non-ASCII characters, or a field shorter than required | Remove accents and fill every required field. | | The purchase fails at payment | Card declined or no billing profile | Add or update the payment method in **Manage Account** › **Billing**, then retry. | | The domain stopped resolving a few weeks later | Registrant email not verified: ICANN put the domain on hold | Verify the registrant email; the name servers are restored automatically. | ## Related - [Move an existing domain](https://amabledata.com/docs/cloudflare/migrate-a-domain) - [Plans and billing](https://amabledata.com/docs/cloudflare/plans-and-billing) - [Connect your domains](https://amabledata.com/docs/cloudflare/connect-domains) - [Email sending settings](https://amabledata.com/docs/marketing/email-sending-settings) - Cloudflare: [Register a new domain](https://developers.cloudflare.com/registrar/get-started/register-domain/) --- # Move an existing domain Section: Cloudflare from zero URL: https://amabledata.com/docs/cloudflare/migrate-a-domain Summary: Add a domain you already own to Cloudflare without breaking your website or email: zone, DNS scan, name servers, activation and the optional registrar transfer. You already own `example.com` at another company (the **registrar**), and maybe your website and mailboxes already use it. This page moves the domain's **DNS** to the Cloudflare account of amabledata without interrupting anything. Moving the **registration** itself to Cloudflare is a separate, optional step at the end. ## Overview There are two different things you can move: | What | What changes | Needed by amabledata? | | --- | --- | --- | | **DNS (name servers)** | Cloudflare starts answering DNS questions for the domain. You keep paying your current registrar. | **Yes.** The domain must be an **active zone** in the amabledata account for automatic DNS records, Workers custom domains and zone-mode tracking domains. | | **Registration (transfer)** | Cloudflare becomes your registrar and bills the renewals at cost. | No. Optional, and only possible after the DNS move. | Plan about 15 minutes of work, plus waiting time for the name servers to propagate (usually minutes, up to 24 hours). :::tip[Menus change] Cloudflare occasionally renames menus. If a label below does not match exactly, use the dashboard search (**Ctrl+K** or **Cmd+K**). ::: ## How it works 1. You **add the domain** (a "zone") to the amabledata Cloudflare account. Cloudflare scans the records it can find in the current DNS and copies them. 2. You **review the records**, so that the website, the mailboxes and every verification record keep working once Cloudflare answers. 3. Cloudflare assigns **two name servers** (for example `ada.ns.cloudflare.com` and `bob.ns.cloudflare.com`). You replace the current name servers with these two **at your registrar**. 4. The world's DNS caches pick up the change. When Cloudflare sees its name servers on the domain, the zone status changes from **Pending** to **Active** and you receive an email. From that moment, every DNS change happens in Cloudflare, not at the registrar. :::caution[Email keeps working only if the records are copied] Your mailboxes depend on **MX** records and on **TXT** records (SPF, DKIM, DMARC, provider verifications). If they are missing in Cloudflare when the name servers switch, incoming email bounces and outgoing email may land in spam. Step 2 below exists to prevent this. ::: ## Step by step ### Before you start: take a snapshot of the current DNS 1. Sign in to the company where the DNS is managed today (usually the registrar, sometimes the web host). 2. Open the DNS zone (often called **DNS management**, **DNS records**, **Zone editor** or **Advanced DNS**). 3. Copy every record into a document or take screenshots, or use the provider's **Export** option if there is one (a "zone file"). Note the **type**, **name**, **value**, **priority** (for MX) and **TTL** of each record. 4. Write down the current **name servers** too, in case you need to go back. ### Disable DNSSEC at the current provider (only if it is on) 1. In the domain settings at the registrar, look for **DNSSEC** or **DS records**. If there are none, skip this task. 2. Turn DNSSEC off (or delete the DS records). 3. Wait at least 24 hours before changing the name servers. Changing name servers while DNSSEC is active can make the domain unreachable. You can turn DNSSEC back on in Cloudflare once the zone is active. ### Add the domain to Cloudflare 1. In the dashboard, select the **amabledata account** in the account switcher. 2. Go to **Domains** and select **Onboard a domain** (in some layouts **Add a domain** or **Add site**). 3. Enter the **apex** domain, for example `example.com` (not `www.example.com`, not `crm.example.com`). 4. Keep the option to **quick scan** the existing DNS records selected, and select **Continue**. 5. Choose a plan for the domain. The **Free** plan is enough for amabledata; the Workers Paid plan you activate in [Plans and billing](https://amabledata.com/docs/cloudflare/plans-and-billing) is separate from the domain plan. ### Review the DNS records Cloudflare now shows the records it found. The scan is not guaranteed to find everything: compare the list with your snapshot. 1. **Website records.** Check the apex (`example.com`) and `www` records (`A`, `AAAA` or `CNAME`) point to the same values as before. 2. **Email records.** Check every **MX** record (with its priority), the SPF record (`TXT` on the apex starting with `v=spf1`), the DKIM records (`TXT` or `CNAME` under `..._domainkey`), the DMARC record (`TXT` on `_dmarc`) and any autodiscover records your email provider uses. 3. **Verification records.** Keep every `TXT` record used to verify the domain with other services (search consoles, email providers, certificate authorities). 4. **Add anything missing** with **Add record**: choose the type, enter the name and the value exactly as in the snapshot. 5. **Proxy status.** Each `A`, `AAAA` and `CNAME` record has an orange cloud (**Proxied**) or grey cloud (**DNS only**) toggle. Set **DNS only** on every record used by email (for example `mail`, `autodiscover`) and on `CNAME` records that verify the domain for third-party services. Proxied is fine for your normal website. 6. Select **Continue** when the list matches your snapshot. ### Change the name servers at your registrar Cloudflare now displays the **two name servers** assigned to your domain. Copy them exactly. You can find them again later on the domain's **Overview** page. 1. Sign in to your **registrar** (the company you pay for the domain). If you do not remember who it is, look the domain up at [lookup.icann.org](https://lookup.icann.org). 2. Open the domain's settings and find the name server setting. Typical places: | Registrar style | Where the setting usually is | | --- | --- | | Domain list with a manage button | **Manage** › **Nameservers** › **Change** › **Custom nameservers** | | "Domain" tab with sub-tabs | **Domain** › **Nameservers** › **Custom DNS** | | Hosting control panel | **Domains** › select the domain › **DNS / Nameservers** › **Use custom nameservers** | | Website builder or shop platform | **Settings** › **Domains** › the domain › **Advanced** or **DNS** (some do not allow it at all, see Troubleshooting) | 3. Choose the option for **custom** name servers (not the registrar's default DNS). 4. **Remove every existing name server** and enter the two Cloudflare ones. Do not keep the old ones alongside: mixing them causes random failures. 5. Save. Some registrars ask you to confirm by email. 6. Back in Cloudflare, select **Check nameservers now** (or wait: Cloudflare checks periodically). ### Wait for activation 1. The zone shows **Pending** (sometimes **Pending Nameserver Update**) while the change propagates. This usually takes a few minutes and can take up to 24 hours. 2. When Cloudflare detects its name servers, the status becomes **Active** in **Domains** and you receive an email. 3. Optionally check from a terminal: ```bash dig ns example.com @1.1.1.1 dig ns example.com @8.8.8.8 ``` On Windows: `nslookup -type=ns example.com 1.1.1.1`. Both should list the two Cloudflare name servers. 4. Test your website and send a test email to and from your domain. 5. If you turned DNSSEC off, turn it on again from the domain's **DNS** › **Settings** page in Cloudflare. The domain is ready for amabledata as soon as it is **Active**. In the Cloud onboarding, the **zone** step verifies exactly this (see [Reference](#reference)). ### Transfer the registration to Cloudflare (optional) Do this only if you want Cloudflare to be your registrar too (at-cost renewals, one bill). The zone must already be **Active**. 1. **Check eligibility.** The domain was registered at least 60 days ago and has not been transferred in the last 60 days; you have not changed the registrant name, organisation or email in the last 60 days (that triggers a 60-day lock); the domain has not expired; your Cloudflare account has a verified email and a valid payment method. 2. **Unlock the domain** at the current registrar. Look for **Registrar lock**, **Domain lock** or **Transfer lock** and turn it off. Some registrars have several locks: disable each one. In WHOIS, a locked domain shows `clientTransferProhibited`. 3. **Request the authorization code** at the current registrar. It is also called **auth code**, **EPP code**, **authinfo code** or **transfer code**. Codes expire, so request it when you are ready. 4. In Cloudflare, go to **Domains** › **Transfer domains**, select the domain and enter the authorization code. 5. **Confirm the payment.** For most generic extensions (`.com`, `.net`, `.org` and similar) the transfer price **includes one year of registration**, added to your current expiration date. Some country-code extensions follow their own rules (for example `.uk` transfers add no year and cost nothing). 6. **Confirm the contact information.** It is redacted from public WHOIS by default but must be accurate. Then select **Confirm transfer**. 7. **Approve at the old registrar.** You receive an email from the old registrar; approve the transfer there to speed it up. Most transfers complete within 5 business days (some extensions take up to 10). 8. Follow the status on **Transfer domains**: **Transfer in progress**, **Pending approval**, then completed (or **Transfer rejected**, with a **Retry** button). **Domain at a website builder or shop** Some website builders and e-commerce platforms act as both host and registrar and **do not let you change name servers**. Cloudflare's recommended workaround: transfer the domain to another registrar that allows name server changes (3 to 5 days), point the name servers to Cloudflare there (you can use amabledata from this moment), and only after 60 days transfer the registration to Cloudflare if you still want to. **Recently renewed domain** If the domain expired and you renewed it recently, wait at least 45 days after the original expiration date before transferring, otherwise the registry may not add the extra year. ## Reference ### Zone statuses | Status | Meaning | What to do | | --- | --- | --- | | **Pending** / **Pending Nameserver Update** | Cloudflare does not see its name servers on the domain yet | Check that you replaced (not added) the name servers at the registrar; wait up to 24 hours. | | **Active** | Cloudflare answers DNS for the domain | Nothing. The domain can be used with amabledata. | | **Moved** | The name servers no longer point at Cloudflare | Set the Cloudflare name servers at the registrar again. | ### What the Cloud onboarding checks The **zone** step of the Cloud onboarding (*Add your domain and change the name servers*) is deferrable: select **Skip for now** and the CRM starts on a `workers.dev` address. When you verify it, the onboarding looks up the domain you typed in the account: | Message | Meaning | | --- | --- | | *Enter the domain first.* | The domain field is empty. | | *This domain is not a zone of the CRM account yet.* | The domain was not added to the dedicated account (or was added to another account). | | *The zone is not active yet: the name servers have not changed.* | The zone exists but is still **Pending**. The page lists the name servers to set at your registrar. | | **Verified** | The zone is **Active**. | ### Registrar transfer rules | Rule | Value | | --- | --- | | Minimum age of the registration | 60 days | | Since the last transfer | 60 days | | Since a registrant name, organisation or email change | 60 days (some registrars let you opt out) | | Price | At cost, usually including one extra year | | Duration | Usually up to 5 business days after approval, some extensions up to 10 | ## Limits and permissions - You need access to the registrar account of the domain and the **Super Administrator** role (or equivalent) on the Cloudflare account. - The domain must be added to the **same** Cloudflare account where amabledata runs. A zone in another account cannot be used for automatic DNS records or zone-mode tracking domains. - Cloudflare requires the apex domain to be one level below a public suffix (`example.com`, `example.co.uk`). You cannot onboard a subdomain such as `crm.example.com` on its own on the Free plan. ## Troubleshooting | Symptom | Cause | Fix | | --- | --- | --- | | Zone still **Pending** after 24 hours | Old name servers still present, a typo in the Cloudflare ones, or DNSSEC still active | Re-enter exactly the two Cloudflare name servers and nothing else; disable DNSSEC at the registrar. | | Website down after the switch | The apex or `www` record was not copied | Add the missing `A`, `AAAA` or `CNAME` record in Cloudflare with the value from your snapshot. | | Visitors see `DNS_PROBE_FINISHED_NXDOMAIN` | The zone was activated without the right records | Same as above: complete the DNS records. | | Incoming email bounces | MX records missing or wrong priority | Add the MX records from your snapshot (they are never proxied). | | Outgoing email goes to spam | SPF, DKIM or DMARC records missing | Copy the `TXT` and `CNAME` email records from your snapshot. | | The registrar has no name server option | The domain is at a website builder or shop platform that forbids it | Transfer the domain to a registrar that allows custom name servers first (see the tab above). | | Transfer: "domain is locked" | A registrar lock is still on | Disable every lock type at the old registrar and retry. | | Transfer: "authorization code is invalid" | Code mistyped or expired | Request a new code and paste it without spaces. | | Transfer: you cannot enter the code | The zone is not **Active** yet | Finish the name server change first. | | Cloud onboarding: *"This domain is not a zone of the CRM account yet."* | The zone is in a different Cloudflare account | Add the domain to the dedicated account (you may have to delete it from the other account first). | ## Related - [Buy a domain](https://amabledata.com/docs/cloudflare/buy-a-domain) - [Plans and billing](https://amabledata.com/docs/cloudflare/plans-and-billing) - [Connect your domains](https://amabledata.com/docs/cloudflare/connect-domains) - [Tracking domains](https://amabledata.com/docs/tracking-domains/overview) - Cloudflare: [Set up a primary zone](https://developers.cloudflare.com/dns/zone-setups/full-setup/setup/), [Transfer your domain to Cloudflare](https://developers.cloudflare.com/registrar/get-started/transfer-domain-to-cloudflare/) --- # Plans and billing Section: Cloudflare from zero URL: https://amabledata.com/docs/cloudflare/plans-and-billing Summary: Why amabledata needs Workers Paid and R2, how to activate them, and what the other Cloudflare products it uses cost. amabledata runs in your Cloudflare account, so Cloudflare bills you directly for the resources it uses. This page explains which plan you need, why, and how to activate it. ## Overview You need two things on the dedicated Cloudflare account: 1. the **Workers Paid** plan, and 2. **R2** enabled. Both require a **payment method** on the account. The Cloudflare cost is separate from any amabledata subscription and is never marked up by amabledata: the Workers Paid plan is **$5/month plus usage**, and for most accounts the total is typically between **$5 and $25 per month**, depending on traffic. | Edition | What you pay amabledata | What you pay Cloudflare | | --- | --- | --- | | Cloud (managed) | The amabledata subscription | Workers Paid and usage, billed by Cloudflare | | Self-hosted | Nothing | Workers Paid and usage, billed by Cloudflare | :::tip[Menus change] Cloudflare occasionally renames menus. If a label below does not match exactly, use the dashboard search (**Ctrl+K** or **Cmd+K**). ::: ## How it works ### Why Workers Paid is required Every Cloudflare account starts on the **Workers Free** plan. amabledata is designed for, and only supported on, **Workers Paid**, for these reasons: | amabledata needs | Why the Free plan is not enough | | --- | --- | | **CPU time** for password hashing (Argon2id), email rendering, report queries, imports and sealing signed PDFs | Free gives 10 ms of CPU per request. Workers Paid gives 30 seconds by default (up to 5 minutes) per request; the core Worker is configured with 120 seconds (`limits.cpu_ms` 120000). | | **Queue consumers and the cron job** that process emails, webhooks, form submissions, analytics and backups | On Workers Paid, a cron or queue consumer invocation can use up to 15 minutes of CPU. | | **Durable Objects** with SQLite storage: one private database per workspace, plus one per booking calendar, landing page editor and tracked site | Durable Objects usage is included in, and billed through, Workers Paid. | | **Queues** (`email-send`, `events-rollup`, `webhooks-out`, `form-submissions`, `analytics`, `esign-seal`) | Queues are billed on usage with the Workers plan. | | **Request volume** of the tracker on busy websites | Free allows 100,000 requests per day; Workers Paid includes 10 million per month and bills the rest per million. | The Cloud onboarding checks the plan through the API and does not install amabledata until Workers Paid is active. A self-hosted installation does not check it, but it is not supported on the Free plan. ### Why R2 must be enabled R2 is Cloudflare's object storage. amabledata stores files, images and logos, analytics archives and the **daily backups** of every workspace in one bucket called `amable-files`. R2 has to be enabled once per account, which means accepting its pay-as-you-go plan; it has a free monthly allowance, and you pay only for usage beyond it. ### The other products, and what "free allowance" means Cloudflare products are billed on usage. Each one includes a monthly allowance at no charge; beyond it, you pay per unit (requests, CPU milliseconds, stored gigabytes, operations). A small or medium amabledata installation often stays within most allowances, which is why the typical total is close to the $5 base price. | Product | Used for | Billing | | --- | --- | --- | | Workers (`amable-core`, `amable-edge`) | Dashboard, API, tracking, public pages | Included requests and CPU time, then usage. Requests to static assets of the dashboard are free. | | Durable Objects | Workspace databases, calendars, analytics per site | Included in Workers Paid, then usage | | D1 (`amable-installation`) | Users, sessions, workspaces, domains | Included allowance, then usage | | R2 (`amable-files`) | Files, archives, backups | Free monthly allowance, then storage and operations | | Queues | Background jobs | Usage based | | Workers Analytics Engine | High-volume realtime counters of the tracker | Usage based | | Cron Triggers | The job every 5 minutes | Each run is billed as Worker usage (CPU time) | | Turnstile | Bot protection | Free | | DNS, Free zone plan | Your domain | Free | | Registrar | Your domain registration | At cost, per year | Cloudflare publishes the current prices and allowances: - [Workers pricing](https://developers.cloudflare.com/workers/platform/pricing/) (Workers, Durable Objects, Queues and more) - [R2 pricing](https://developers.cloudflare.com/r2/pricing/) - [D1 pricing](https://developers.cloudflare.com/d1/platform/pricing/) ## Step by step ### Add a payment method 1. Select the **amabledata account** in the account switcher. 2. Go to **Manage Account** › **Billing** (sometimes shown as **Billing** in the account menu). 3. Open **Payment info** (or **Payment methods**) and add a card or another method Cloudflare accepts in your country. 4. Fill in the billing address. If you buy as a company, add the company name and tax details so they appear on the invoice. ### Activate Workers Paid 1. Go to **Workers & Pages** › **Plans** (direct link: [dash.cloudflare.com/?to=/:account/workers/plans](https://dash.cloudflare.com/?to=/:account/workers/plans)). 2. Choose **Workers Paid** and confirm the purchase with your payment method. 3. Back on **Workers & Pages**, the plan is shown as **Paid** (or **Workers Paid**). Cloudflare does not allow activating Workers Paid through the API, so this step is always done by you in the dashboard, also in the Cloud edition. ### Enable R2 1. Go to **Storage & databases** › **R2** › **Overview** (direct link: [dash.cloudflare.com/?to=/:account/r2/overview](https://dash.cloudflare.com/?to=/:account/r2/overview)). In older layouts it is **R2 Object Storage** in the sidebar. 2. Complete the checkout flow that adds the R2 subscription (pay-as-you-go plan) to the account. 3. Do **not** create a bucket yourself: amabledata creates `amable-files` during the installation. ### Verify in the Cloud onboarding In the Cloud onboarding, the steps **Add a payment method and enable Workers Paid** and **Enable R2** have a **Verify** button: - **Workers Paid plan**: the onboarding reads the account's subscriptions and passes when a paid Workers plan is present. - **R2 enabled**: the onboarding creates a temporary test bucket and deletes it immediately. If creating it fails, R2 is not enabled yet. ### Watch your usage 1. Go to **Manage Account** › **Billing** and open the usage view (labelled **Billable usage** today) to see the current month. 2. If your account offers usage notifications (**Notifications** in the account menu), add one to receive an email when usage grows. 3. Review **Workers & Pages** › the `amable-edge` Worker › **Metrics** to see the request volume of the tracker. ## Reference | Item | Value | | --- | --- | | Required plan | Workers Paid: $5/month plus usage | | Typical total | $5 to $25/month, depending on traffic | | Billed by | Cloudflare, directly to you | | Required storage | R2 enabled (pay-as-you-go with a free allowance) | | Where to activate Workers Paid | **Workers & Pages** › **Plans** | | Where to enable R2 | **Storage & databases** › **R2** › **Overview** | | Payment method | **Manage Account** › **Billing** | ### Resources amabledata creates in the account | Resource | Name | | --- | --- | | Workers | `amable-core`, `amable-edge` | | D1 database | `amable-installation` | | R2 bucket | `amable-files` | | Queues | `email-send`, `events-rollup`, `webhooks-out`, `form-submissions`, `analytics`, `esign-seal` | | Durable Object classes | `TenantDb`, `Engine`, `MailDb`, `EditSession`, `BookingCalendar` (core), `AnalyticsDO` (edge) | | Analytics Engine dataset | `amable_analytics` | | Cron Trigger | `*/5 * * * *` on `amable-core` | | Rate limiting bindings | `RL_AUTH` (60 requests per 60 s), `RL_API` (600 requests per 60 s) | ## Limits and permissions - Only a **Super Administrator** (or a member with billing permissions) can add payment methods and change plans. - The Workers plan applies to the whole account. Another reason to keep amabledata in a [dedicated account](https://amabledata.com/docs/cloudflare/create-account#why-a-dedicated-account). - The amabledata Cloud subscription does not include the Cloudflare cost, and the amabledata wallet is not used for Cloudflare. See [Billing and wallet](https://amabledata.com/docs/settings/billing-and-wallet). ## Troubleshooting | Symptom | Cause | Fix | | --- | --- | --- | | Cloud onboarding: *"Workers Paid is not active yet."* | The account is still on Workers Free | Activate Workers Paid in **Workers & Pages** › **Plans**, then press **Verify** again. | | Cloud onboarding: *"R2 is not enabled yet."* | The R2 subscription was not added | Complete the R2 checkout, then press **Verify**. | | Cloud onboarding: *"The token is not allowed to do this check."* | The API token lacks a permission used by the check (for example **Billing: Read** or **Workers R2 Storage: Edit**) | Edit the token and add the missing permission. See [Create the API token](https://amabledata.com/docs/cloudflare/api-token). | | The plan purchase fails | Card declined or no billing address | Update the payment method and billing address, then retry. | | Self-hosted: `wrangler r2 bucket create` fails | R2 not enabled on the account | Enable R2, then rerun the setup script. | | The bill is higher than expected | High tracker traffic or large imports | Check **Billable usage** and the Worker metrics. See [Workers pricing](https://developers.cloudflare.com/workers/platform/pricing/) for how each unit is billed. | ## Related - [Create the API token](https://amabledata.com/docs/cloudflare/api-token) - [Architecture](https://amabledata.com/docs/getting-started/architecture) - [Cloud or self-hosted](https://amabledata.com/docs/getting-started/cloud-vs-self-hosted) - [Self-hosting requirements](https://amabledata.com/docs/self-hosting/requirements) --- # Create the API token Section: Cloudflare from zero URL: https://amabledata.com/docs/cloudflare/api-token Summary: The exact custom API token amabledata needs, permission by permission: scope, resources, TTL, IP filtering, copying it once, rolling and revoking it, and how the onboarding verifies it. An **API token** is a key that lets a program act on your Cloudflare account with exactly the permissions you choose, and nothing more. The amabledata Cloud installer uses one to create and update amabledata in your account. This page builds that token permission by permission. ## Overview | Edition | Do you need this token? | | --- | --- | | **Cloud (managed)** | **Yes.** You paste it in the onboarding step *Create an API token with the minimal permissions*. It is stored encrypted and used only by the installer and for updates. | | **Self-hosted** | **No, not for the installation.** The setup script uses `wrangler login`, which signs you in through the browser. You may later create a smaller token for the in-app domain wizard: see [Optional tokens and secrets](https://amabledata.com/docs/cloudflare/optional-tokens). | Before you start, finish [Create a Cloudflare account](https://amabledata.com/docs/cloudflare/create-account) and, ideally, [Plans and billing](https://amabledata.com/docs/cloudflare/plans-and-billing). Adding your domain first is not required, but it lets the onboarding check the zone permissions right away. :::tip[Menus change] Cloudflare occasionally renames menus and permission labels. The permission names below are the ones shown in the token editor today. If one looks slightly different, pick the closest match with the same **scope** (Account or Zone) and **level** (Read or Edit). ::: ## How it works ### User tokens and account tokens Cloudflare offers two kinds of token: - **User API tokens**, created in **My Profile** › **API Tokens**. They belong to your user and can be limited to specific accounts and zones. - **Account API tokens**, created in **Manage Account** › **API Tokens**. They belong to the account itself and keep working if the person who created them leaves. The amabledata onboarding text uses the user token path (**My Profile** › **API Tokens** › **Create Token** › **Custom token**). Whichever you choose, the token must reach **only the dedicated account**. ### Scopes: Account and Zone Every permission has a **scope**: - **Account** permissions act on account-wide products: Workers, D1, R2, Queues, Turnstile, billing information. - **Zone** permissions act on domains (zones): DNS records and Worker routes. Every permission also has a **level**: **Read** (read and list) or **Edit** (create, read, update, delete, list). You then choose the **resources** the token can touch: - **Account Resources**: which accounts. Set it to the amabledata account only. - **Zone Resources**: which zones. Set it to **all zones of that account**, so domains you add later work without a new token. ### The permissions amabledata needs Add exactly these ten permissions: | # | Scope | Permission | Level | Why amabledata needs it | | --- | --- | --- | --- | --- | | 1 | Account | **Account Settings** | Read | Reads the account the token reaches (name and ID) and confirms the token reaches exactly one account (the dedicated-account check). | | 2 | Account | **Billing** | Read | Reads the account's subscriptions to confirm Workers Paid is active before installing. It cannot change your plan or see full card numbers. | | 3 | Account | **Workers Scripts** | Edit | Uploads and updates the two Workers (`amable-core`, `amable-edge`) with their code, dashboard assets, bindings, Durable Object classes, secrets and the cron trigger; lists the Workers of the account for the dedicated-account check. | | 4 | Account | **D1** | Edit | Creates the installation database `amable-installation`, and uses D1 Time Travel to take restore points before updates and roll back if an update has to be reverted. | | 5 | Account | **Workers R2 Storage** | Edit | Creates the `amable-files` bucket (files, archives, backups); the R2 check creates and deletes a temporary test bucket. | | 6 | Account | **Queues** | Edit | Creates the six queues and connects the Workers to them as producers and consumers. | | 7 | Account | **Turnstile** | Edit | Creates the Turnstile widget that protects sign-in and public forms from bots. | | 8 | Zone | **Zone** | Read | Finds your domain in the account and reads its status (Pending or Active) and name servers. | | 9 | Zone | **DNS** | Edit | Writes the DNS records for the app hostname, the tracking hostname and the email sending domain (SPF, DKIM, DMARC). | | 10 | Zone | **Workers Routes** | Edit | Attaches the Worker routes that send your app and tracking hostnames (and, if you want, some paths of an existing website) to the amabledata Workers. | amabledata never asks for **Zone Settings**, **SSL and Certificates**, **Firewall**, **Account Members**, **API Tokens** or **User** permissions. If a guide or a person asks you to add more than the list above to the onboarding token, do not. ### How the onboarding verifies the token When you select **Save and verify** in the Cloud onboarding: 1. The token is checked with Cloudflare's token verification endpoint. It must be **active** (not disabled, not expired). 2. The onboarding lists the accounts the token reaches and remembers the first one (you see *Token saved for the account "<account name>"*). 3. It makes one **read-only** test call per permission. A permission passes when its test call succeeds. 4. Zone permissions can only be tested when the account already has a zone. If you have not added a domain yet, they are tested again at installation time. 5. The **Dedicated account** step then checks that the token reaches exactly one account and that the account has no Workers other than amabledata's (`amable-` names). The token is stored **encrypted** and is used only by the installer and for updates. You can revoke it at any time from Cloudflare (see below); updates stop until you save a new one. :::caution[Read is not Edit] The verification makes read-only calls, so it cannot always tell **Read** from **Edit**. If you choose **Read** where the table says **Edit**, the token may pass the check and the installation fails later. Use exactly the levels in the table. ::: ## Step by step ### Create the custom token 1. Sign in to the dashboard. Open the profile menu (top right) and select **My Profile**, then **API Tokens** (direct link: [dash.cloudflare.com/profile/api-tokens](https://dash.cloudflare.com/profile/api-tokens)). For an account-owned token instead, select the amabledata account and go to **Manage Account** › **API Tokens**. 2. Select **Create Token**. 3. At the bottom of the template list, next to **Create Custom Token**, select **Get started**. Do not use a template: none of them matches the list. 4. **Token name**: type something clear, for example `amabledata installer`. 5. **Permissions**: the editor shows one row with three drop-downs (scope, permission, level). Fill the first row, then select **+ Add more** for each of the others, until you have these ten rows: | Scope drop-down | Permission drop-down | Level drop-down | | --- | --- | --- | | Account | Account Settings | Read | | Account | Billing | Read | | Account | Workers Scripts | Edit | | Account | D1 | Edit | | Account | Workers R2 Storage | Edit | | Account | Queues | Edit | | Account | Turnstile | Edit | | Zone | Zone | Read | | Zone | DNS | Edit | | Zone | Workers Routes | Edit | In the Cloud onboarding, the token step shows the same list under **Permissions to add**, with a **Copy list** button. 6. **Account Resources**: choose **Include** and select the **amabledata account** (not *All accounts*). 7. **Zone Resources**: choose **Include** › **All zones from an account** and select the **amabledata account**. Do not choose *All zones* (that would include zones of other accounts your login can see). 8. **Client IP Address Filtering**: leave it empty for the Cloud edition. The installer runs on Cloudflare's network from addresses that are not fixed, so an IP filter would block it. (For a token you only use from your own machine or server, you may restrict it to that IP.) 9. **TTL**: leave the end date empty for the Cloud edition, because updates use the token for as long as you are a customer. If you set an end date, you must roll or replace the token before it expires. 10. Select **Continue to summary** and check the summary: ten permissions, one account, all zones of that account. 11. Select **Create Token**. ### Copy the token (shown once) 1. Cloudflare shows the token **secret** only once, on the confirmation page. New tokens start with `cfut_`. 2. Select the copy button and paste it directly into the onboarding field **API token** (or into your password manager if you are not ready yet). 3. Optionally test it from a terminal with the command Cloudflare shows on the same page: ```bash curl "https://api.cloudflare.com/client/v4/user/tokens/verify" \ --header "Authorization: Bearer " ``` A good token answers `"status": "active"` and `"This API Token is valid and active"`. 4. Close the page. If you lose the secret, you cannot see it again: [roll the token](#roll-the-token) to get a new secret. :::danger Never paste the token in an email, a chat or a support ticket. Anyone who has it can modify the Workers, databases and DNS records in your account within the permissions above. ::: ### Save it in the Cloud onboarding 1. In the onboarding, open the step **Create an API token with the minimal permissions**. 2. Paste the secret in **API token** and select **Save and verify**. 3. On success you see *Token saved for the account "<account name>"* and the step is marked **Verified**. Check that the name is your dedicated account. 4. Continue with **Check the account is dedicated** and press **Verify**. ### Edit the permissions of an existing token If the onboarding reports missing permissions, you do not need a new token: 1. Go to **My Profile** › **API Tokens** (or **Manage Account** › **API Tokens**). 2. Next to the token, open the **⋯** menu and select **Edit**. 3. Add or fix the permission rows and resources, select **Continue to summary**, then **Update Token**. The secret does not change. 4. Back in the onboarding, select **Verify** again. ### Roll the token Rolling replaces the secret but keeps the same permissions and resources. Do it if the secret leaked or was lost. 1. Go to **My Profile** › **API Tokens**. 2. Next to the token, open the **⋯** menu and select **Roll**. 3. Select **Confirm**. The old secret stops working immediately. 4. Copy the new secret and save it in the onboarding again (**Save and verify**). ### Revoke the token 1. Go to **My Profile** › **API Tokens**. 2. Next to the token, open the **⋯** menu and select **Delete**, then confirm. 3. The installer and the automatic updates can no longer reach your account. Your installation keeps running; to resume updates, create and save a new token. ## Reference ### The permission list in one block You can keep this list next to you while you fill the editor: ```text Account · Account Settings · Read Account · Billing · Read Account · Workers Scripts · Edit Account · D1 · Edit Account · Workers R2 Storage · Edit Account · Queues · Edit Account · Turnstile · Edit Zone · Zone · Read Zone · DNS · Edit Zone · Workers Routes · Edit Account Resources: Include · Zone Resources: Include · All zones from an account · Client IP filtering: none TTL: no end date ``` ### Settings summary | Setting | Value | Why | | --- | --- | --- | | Token type | Custom token | No template has this exact list | | Permissions | The ten above | Minimal set for install and updates | | Account Resources | Include › the dedicated account | The dedicated-account check requires exactly one account | | Zone Resources | Include › All zones from an account › the dedicated account | Domains added later work without a new token | | Client IP Address Filtering | Empty | The installer has no fixed IP | | TTL | No end date | Updates need the token over time | ## Limits and permissions - You need to be **Super Administrator** of the account (or have a role that can create tokens on it) to grant account permissions. - In the Cloud portal, only the **account owner** can complete the onboarding steps (*Only the account owner can complete these steps.*). - The token never reaches your amabledata workspace data directly: it manages Cloudflare resources. The CRM data is protected by amabledata's own sign-in and roles. ## Troubleshooting | Message or symptom | Cause | Fix | | --- | --- | --- | | *Cloudflare does not accept this token: check it is active and not expired.* | Mistyped or truncated secret, the token was deleted or rolled, or its TTL ended | Paste the secret again in one piece. If needed, roll the token or create a new one. | | *The token is missing these permissions:* followed by a list | Some rows are missing or have the wrong scope | Edit the token and add the listed permissions (scope, name and level as in the table). | | *The token reaches more than one account: limit it to the CRM account only.* | **Account Resources** is *All accounts* or includes several | Edit the token: **Include** › the dedicated account only. | | *The account already has other Workers: use an account dedicated to the CRM.* | The account runs Workers not installed by amabledata | Use a new, empty account and a token for it. See [Create a Cloudflare account](https://amabledata.com/docs/cloudflare/create-account). | | *No Cloudflare account found for this token.* | No account resource selected | Edit the token and set **Account Resources**. | | *The token is not allowed to do this check.* | A check needs a permission the token lacks (for example **Billing: Read** for the Workers Paid check) | Add the permission and verify again. | | *Save the API token first.* | You pressed **Verify** on a later step before saving a token | Complete the token step first. | | The token passed, but the installation fails on DNS or routes | Zone permissions could not be tested without a zone, or **Zone Resources** excludes the domain | Make sure **Zone Resources** is *All zones from an account* › the dedicated account, then retry the installation. | | The token passed, but the installation fails creating resources | A permission was set to **Read** instead of **Edit** | Edit the token and set the levels exactly as listed. | | You lost the secret | It is shown only once | Roll the token and save the new secret. | ## Related - [Create a Cloudflare account](https://amabledata.com/docs/cloudflare/create-account) - [Plans and billing](https://amabledata.com/docs/cloudflare/plans-and-billing) - [Optional tokens and secrets](https://amabledata.com/docs/cloudflare/optional-tokens) - [Connect your domains](https://amabledata.com/docs/cloudflare/connect-domains) - Cloudflare: [Create API token](https://developers.cloudflare.com/fundamentals/api/get-started/create-token/), [Roll tokens](https://developers.cloudflare.com/fundamentals/api/how-to/roll-token/) --- # Optional tokens and secrets Section: Cloudflare from zero URL: https://amabledata.com/docs/cloudflare/optional-tokens Summary: Extra credentials for advanced features: DNS automation, CNAME tracking domains, ad platforms, Google, Turnstile, email providers and error reporting. amabledata works without any of the credentials on this page. Each one unlocks one feature; without it, that feature is either unavailable or done by hand. Add them one at a time, when you need them. ## Overview | Credential | Unlocks | Without it | Cloud edition | | --- | --- | --- | --- | | `CLOUDFLARE_DNS_API_TOKEN` | The domain wizard creates DNS records, Workers custom domains and routes for you | The wizard shows the records and you create them yourself | Configured by the installer | | `CF_ZONE_ID`, `CF_API_TOKEN`, `TRACKING_CNAME_TARGET` | Tracking domains whose DNS stays at another provider (**CNAME** mode) | Only tracking domains that are zones of the same Cloudflare account (**zone** mode) | Depends on the installation | | Ad platform apps (Meta, Google Ads, TikTok) | Ad spend import and server-side conversions | The platform shows as unavailable | Ready to use | | Google OAuth client | Google Calendar for bookings: busy time read, bookings written as events | **Connect Google Calendar** is unavailable | Ready to use | | Turnstile keys | Bot protection on sign-in and public forms | Verification disabled (a warning is logged) | Created by the installer | | Marketing email provider key | Sending broadcasts and automation emails | Marketing email cannot be sent | Provided, 2,000 emails/month per workspace included | | System email binding | Sign-in codes, magic links, invitations, password resets by email | Those emails cannot be sent | Provided | | `ERROR_REPORTING` | Error reports to your own HTTPS endpoint | Errors are written to the Worker logs only | Fleet monitoring | | `ADDRESS_LOOKUP_URL` | Your own address autocomplete server, or turning it off | The public geocoder is used | Same | All of this applies mainly to **self-hosted** installations. In the Cloud edition these services are provided centrally or configured by the installer. :::tip[Where secrets go] Secrets go on the **core** Worker (`amable-core`) unless stated otherwise. From the repository root of a self-hosted installation: ```bash pnpm exec wrangler secret put NAME --config apps/core/wrangler.self-host.jsonc ``` Wrangler asks for the value and stores it encrypted. You can also use the Cloudflare dashboard: **Workers & Pages** › `amable-core` › **Settings** › **Variables and Secrets** › **Add**, type **Secret**. Secrets survive every redeploy. ::: ## How it works amabledata selects each outside service by configuration. When a credential is present and valid, the feature turns on; when it is missing, the feature degrades on its own and nothing else breaks. Non-secret identifiers (an app ID, a zone ID, a URL) are plain **variables**; passwords, keys and tokens are **secrets**. See the [configuration reference](https://amabledata.com/docs/self-hosting/configuration) for every variable. :::caution[Variables and redeploys] `wrangler deploy` replaces the Worker's plain variables with the ones in the config file it deploys. The self-host setup script regenerates `apps/core/wrangler.self-host.jsonc` from the template `deploy/self-host/core.wrangler.jsonc` every time it runs. Put permanent **variables** in the template (or store a value as a **secret**, which is never removed by a deploy), otherwise the next update removes them. ::: ## Step by step ### DNS automation token (`CLOUDFLARE_DNS_API_TOKEN`) With this token, **Settings** › **Domains** shows *DNS changes are applied on your Cloudflare zone automatically.* and offers **Create on Cloudflare**. Without it, it shows *No Cloudflare API token is configured: create the records below on your DNS provider.* 1. In Cloudflare, go to **My Profile** › **API Tokens** › **Create Token** › **Create Custom Token**. 2. Name it `amabledata domains`. 3. Add these permissions: | Scope | Permission | Level | Used for | | --- | --- | --- | --- | | Zone | **Zone** | Read | Finds the active zone that covers the hostname | | Zone | **DNS** | Edit | Creates or updates the records of sending domains (SPF, DKIM, DMARC and similar) | | Zone | **Workers Routes** | Edit | Adds the routes of a landing and booking site served on some paths of an existing site | | Account | **Workers Scripts** | Edit | Attaches a tracking hostname or a whole site hostname to the edge Worker as a Workers custom domain | 4. **Account Resources**: **Include** › your amabledata account. **Zone Resources**: **Include** › **All zones from an account** › your amabledata account. 5. Create the token and copy it (it is shown once). 6. Store it on the core Worker: ```bash pnpm exec wrangler secret put CLOUDFLARE_DNS_API_TOKEN --config apps/core/wrangler.self-host.jsonc ``` 7. Reload **Settings** › **Domains** in amabledata: the automatic mode message appears. Optional related variables: `EDGE_HOSTNAME` (the hostname custom domains point to, default: the host of `EDGE_ORIGIN`) and `EDGE_SCRIPT_NAME` (the Worker used for custom domains and routes, default `amable-edge`). ### CNAME tracking domains (`CF_ZONE_ID`, `CF_API_TOKEN`, `TRACKING_CNAME_TARGET`) By default a tracking domain must be a zone of the same Cloudflare account as the edge Worker (**zone** mode, recommended, no configuration). **CNAME** mode lets the owner of a domain keep its DNS elsewhere and only add a `CNAME` record: amabledata then creates a **custom hostname** on a zone of yours with Cloudflare for SaaS, and Cloudflare issues the certificate. Without these three values the option shows *Not configured on this installation: the domain must be a zone of this Cloudflare account.* 1. Choose the **zone** that serves the edge Worker (for example `example.net`, where `track.example.net` points at `amable-edge`), and enable **Cloudflare for SaaS** custom hostnames on it (in the zone: **SSL/TLS** › **Custom Hostnames**), following [Cloudflare for SaaS: get started](https://developers.cloudflare.com/cloudflare-for-platforms/cloudflare-for-saas/start/getting-started/). Custom hostnames are billed by Cloudflare beyond the included quantity. 2. Copy the **Zone ID** of that zone (zone **Overview** › **API** section). 3. Create a custom token with **Zone** › **SSL and Certificates** › **Edit**, **Zone Resources**: **Include** › **Specific zone** › that zone. Copy it. 4. Set the values on the core Worker: | Name | Type | Value | | --- | --- | --- | | `CF_ZONE_ID` | Variable | The Zone ID from step 2 | | `CF_API_TOKEN` | Secret | The token from step 3 | | `TRACKING_CNAME_TARGET` | Variable, optional | The hostname customers point their `CNAME` at, for example `track.example.net`. Default: the host of `EDGE_ORIGIN`. | ```bash pnpm exec wrangler secret put CF_API_TOKEN --config apps/core/wrangler.self-host.jsonc ``` Add `CF_ZONE_ID` and `TRACKING_CNAME_TARGET` to the `vars` block of `deploy/self-host/core.wrangler.jsonc`, then rerun `pnpm self-host:setup --deploy` with your usual options. 5. In amabledata, **Analytics settings** (`/t//analytics/settings`) › **Domains** tab › **Add domain** now offers **DNS stays elsewhere (CNAME)**. The status moves from **Waiting for DNS** to **Issuing certificate** to **Active**. See [CNAME tracking domains](https://amabledata.com/docs/tracking-domains/cname-domains) for the day-to-day use. ### Ad platform apps Each platform needs an OAuth app that **you** create on the platform's developer site (self-hosted). The redirect URI to register on each app is `/oauth/ads/callback`, for example `https://crm.example.com/oauth/ads/callback`, and it must match exactly. | Platform | Secrets on the core Worker | Notes | | --- | --- | --- | | Meta | `META_APP_ID`, `META_APP_SECRET` | Spend import and Conversions API | | Google Ads | `GOOGLE_ADS_CLIENT_ID`, `GOOGLE_ADS_CLIENT_SECRET`, `GOOGLE_ADS_DEVELOPER_TOKEN`, optional `GOOGLE_ADS_LOGIN_CUSTOMER_ID` | The login customer ID is a manager account, digits only (dashes are removed) | | TikTok | `TIKTOK_APP_ID`, `TIKTOK_APP_SECRET` | Spend import and Events API | | All | Optional variable `ADS_OAUTH_REDIRECT_URI` | Overrides the default redirect URI | A platform without both its ID and secret (and, for Google Ads, the developer token) shows as unavailable. Step-by-step guides for each platform: [OAuth apps](https://amabledata.com/docs/developers/oauth-apps). ### Google OAuth client (Calendar) 1. Create a Google Cloud project, enable **Google Calendar API**, and configure the OAuth consent screen with the scopes `calendar.readonly` (busy time) and `calendar.events` (bookings written as events). 2. Create an **OAuth client ID** of type **Web application** with the authorized redirect URI `/oauth/google/callback` (fixed path). 3. Store the values on the core Worker: `GOOGLE_OAUTH_CLIENT_ID` (variable or secret) and `GOOGLE_OAUTH_CLIENT_SECRET` (secret). 4. After the deploy, **Connect Google Calendar** appears on booking calendars. Grants are encrypted with the installation key (`AUTH_ENCRYPTION_KEY`) before being stored. The **Google Sheets** form connection does not use this client: each workspace uploads its own service account key ([Form connections](https://amabledata.com/docs/forms/connections#add-a-google-sheets-connection)). Full guide: [OAuth apps](https://amabledata.com/docs/developers/oauth-apps). ### Turnstile keys 1. In Cloudflare, open **Turnstile** in the account sidebar and select **Add widget**. 2. Name it `amabledata`, add the hostnames of your app and of your public pages (for example `crm.example.com`, `t.example.com`, and the `workers.dev` hostnames if you use them), and choose the **Managed** mode. 3. Copy the **Site Key** and the **Secret Key**. 4. Set `TURNSTILE_SITE_KEY` (variable) and `TURNSTILE_SECRET_KEY` (secret) on the core Worker. Without the secret, verification is disabled and the Worker logs *TURNSTILE_SECRET_KEY missing — bot verification disabled* at boot. ### Marketing email provider Self-hosted installations send marketing email through their own PostShiba account. The first three settings are all required: | Name | Type | Purpose | | --- | --- | --- | | `POSTSHIBA_API_KEY` | Secret | Team API key of your account, with **Full access** | | `POSTSHIBA_TEAM_ID` | Variable | Your team id (the `team_id` returned by the PostShiba API `GET /users/me`) | | `POSTSHIBA_CLUSTER_ID` | Variable | The cluster on which the workspaces' SMTP credentials are issued | | `POSTSHIBA_BASE_URL` | Variable, optional | API root override (default `https://app.postshiba.com/api/v1`) | | `POSTSHIBA_INJECT_URL` | Variable, optional | HTTP inject endpoint of your cluster (default `https://inject.postshiba.com/api/inject/v1`) | | `POSTSHIBA_WEBHOOK_SECRET` | Secret, optional | Extra comma-separated secrets accepted on delivery webhooks; normally not needed | Set the key with `wrangler secret put` and the two ids in the `vars` block of `deploy/self-host/core.wrangler.jsonc` (they are already there, commented out), then rerun `pnpm self-host:setup --deploy`. You create nothing else at PostShiba: each workspace gets its own PostShiba tenant, SMTP credential and delivery webhook (with its own secret) when it connects its first sending domain in **Settings** › **Domains**. Removing a sending domain in amabledata deletes it at PostShiba too. See [Email sending settings](https://amabledata.com/docs/marketing/email-sending-settings) and the [configuration reference](https://amabledata.com/docs/self-hosting/configuration#turn-on-marketing-email-own-postshiba-account). ### System email (your own Cloudflare Email Sending) System emails (sign-in codes, magic links, invitations, password resets, role change notices, and the notice sent to the sender when someone declines to sign a document) need a sender: 1. Onboard your domain to Cloudflare Email Sending, for example with `pnpm exec wrangler email sending enable example.com`. 2. In `deploy/self-host/core.wrangler.jsonc`, uncomment the binding `"send_email": [{ "name": "SYSTEM_EMAIL" }]`. 3. In the same file, set the variable `SYSTEM_EMAIL_FROM` (for example `no-reply@example.com`) and optionally `SYSTEM_EMAIL_FROM_NAME`. 4. Rerun `pnpm self-host:setup --deploy` with your usual options. Without it, system emails fail with *System email is not configured: add a `send_email` binding named SYSTEM_EMAIL plus SYSTEM_EMAIL_FROM (Cloudflare Email Sending), or a LICENSE_KEY for the managed notify service*. You can force a provider with `SYSTEM_EMAIL_PROVIDER` (`auto` default, `cloudflare`, `notify`, `console` which works only in development). ### Error reporting and address lookup - `ERROR_REPORTING`: `local` (default, logs only) or an `https://` URL that receives error reports. `ERROR_SAMPLE_RATE` (0 to 1, default 1) samples repeated errors. - `ADDRESS_LOOKUP_URL`: by default address autocomplete uses the public Photon geocoder (OpenStreetMap data, fair use). Point it at your own Photon instance (for example `https://photon.example.com/api`) or set `off` to keep addresses manual only. ## Reference | Name | Type | Worker | Feature | | --- | --- | --- | --- | | `CLOUDFLARE_DNS_API_TOKEN` | Secret | core | Domain wizard automation | | `EDGE_HOSTNAME` | Variable | core | Target of custom domains (default: host of `EDGE_ORIGIN`) | | `EDGE_SCRIPT_NAME` | Variable | core | Worker for custom domains and routes (default `amable-edge`) | | `CF_ZONE_ID` | Variable | core | CNAME tracking domains | | `CF_API_TOKEN` | Secret | core | CNAME tracking domains (**SSL and Certificates: Edit**) | | `TRACKING_CNAME_TARGET` | Variable | core | CNAME target shown to users (default: host of `EDGE_ORIGIN`) | | `META_APP_ID`, `META_APP_SECRET` | Secret | core | Meta ads | | `GOOGLE_ADS_CLIENT_ID`, `GOOGLE_ADS_CLIENT_SECRET`, `GOOGLE_ADS_DEVELOPER_TOKEN`, `GOOGLE_ADS_LOGIN_CUSTOMER_ID` | Secret | core | Google Ads | | `TIKTOK_APP_ID`, `TIKTOK_APP_SECRET` | Secret | core | TikTok ads | | `ADS_OAUTH_REDIRECT_URI` | Variable | core | Ads redirect override | | `GOOGLE_OAUTH_CLIENT_ID`, `GOOGLE_OAUTH_CLIENT_SECRET` | Variable / Secret | core | Google Calendar | | `TURNSTILE_SITE_KEY`, `TURNSTILE_SECRET_KEY` | Variable / Secret | core | Bot protection | | `POSTSHIBA_API_KEY`, `POSTSHIBA_TEAM_ID`, `POSTSHIBA_CLUSTER_ID` | Secret / Variable / Variable | core | Marketing email (all three required) | | `POSTSHIBA_BASE_URL`, `POSTSHIBA_INJECT_URL`, `POSTSHIBA_WEBHOOK_SECRET` | Variable / Variable / Secret | core | Marketing email, optional overrides | | `SYSTEM_EMAIL` (binding), `SYSTEM_EMAIL_FROM`, `SYSTEM_EMAIL_FROM_NAME`, `SYSTEM_EMAIL_PROVIDER` | Binding / Variables | core | System email | | `ERROR_REPORTING`, `ERROR_SAMPLE_RATE` | Variables | core | Error reports | | `ADDRESS_LOOKUP_URL` | Variable | core | Address autocomplete | ## Limits and permissions - Setting secrets requires access to the Cloudflare account (Wrangler login or dashboard). Nothing on this page can be changed from inside amabledata. - Connecting ad accounts and tracking domains from the app requires the `analytics:configure` permission (owner, admin and marketer). The domain wizard in **Settings** › **Domains** requires `domains:manage` (owner and admin). See [Roles and permissions](https://amabledata.com/docs/concepts/roles-and-permissions). - Never reuse the Cloud installer token for these features: give each token only the permissions listed for it. ## Troubleshooting | Symptom | Cause | Fix | | --- | --- | --- | | **Create on Cloudflare** fails with *no Cloudflare zone of this account covers the hostname* | The domain is not an active zone of the account, or the token's **Zone Resources** exclude it | Add the domain to the account and wait for **Active**; check the token resources. | | *no Cloudflare API token is configured: create the records manually* | `CLOUDFLARE_DNS_API_TOKEN` missing | Set the secret, or create the records by hand. | | *Custom tracking domains are not configured on this installation.* | CNAME mode credentials missing | Set `CF_ZONE_ID` and `CF_API_TOKEN`, or use zone mode. | | *The certificate service did not answer. Try again in a moment.* | The custom hostname API call failed | Check the token permission (**SSL and Certificates: Edit**) and that Cloudflare for SaaS is enabled on the zone. | | An ad platform or Google shows as unavailable | The app credentials are missing or incomplete | Set every listed secret for that platform. | | The OAuth provider says the redirect URI does not match | The URI registered on the app differs from `/oauth/...` | Register the exact URI, including `https://` and without a trailing slash. | | A variable disappeared after an update | It was set in the dashboard or in the generated file, and the deploy replaced it | Put it in `deploy/self-host/core.wrangler.jsonc` or store it as a secret. | ## Related - [Create the API token](https://amabledata.com/docs/cloudflare/api-token) - [Connect your domains](https://amabledata.com/docs/cloudflare/connect-domains) - [Configuration reference](https://amabledata.com/docs/self-hosting/configuration) - [OAuth apps](https://amabledata.com/docs/developers/oauth-apps) - [Tracking domains](https://amabledata.com/docs/tracking-domains/overview) --- # Connect your domains Section: Cloudflare from zero URL: https://amabledata.com/docs/cloudflare/connect-domains Summary: App hostname, tracking hostname, email sending domain, tracking domains and landing sites: what goes where, and which DNS records each one needs. Once your domain is an **Active** zone in the amabledata Cloudflare account, you can put amabledata on your own hostnames. This page explains the different hostnames, which Worker each one points to, and the DNS records involved. ## Overview amabledata uses up to five kinds of hostname. Only the sending domain is required (and only for marketing email); everything else can stay on `workers.dev` addresses. | Hostname | Example | Served by | What it is for | Required? | | --- | --- | --- | --- | --- | | **App hostname** | `crm.example.com` | `amable-core` | The dashboard, the REST API, OAuth callbacks, links in system emails | No (default: `amable-core..workers.dev`) | | **Tracking hostname** (edge origin) | `t.example.com` | `amable-edge` | The tracker script and events, email click/open/unsubscribe links, hosted forms and booking pages | No (default: `amable-edge..workers.dev`) | | **Sending domain** | `example.com` or `mail.example.com` | Your email provider | The domain in the **From** address of marketing email, authenticated with SPF, DKIM and DMARC | **Yes**, before any campaign is sent | | **Tracking domains** (per site) | `track.example.com` | `amable-edge` | First-party tracking links and tracker for one analytics site | No | | **Landing and booking site** | `go.example.com`, or `/offers` on `www.example.com` | `amable-edge` | Published landing pages and booking pages on your hostname | No | Use **subdomains** of one domain you own. Keep your main website (`example.com`, `www.example.com`) where it is. :::tip[Menus change] Cloudflare occasionally renames menus. If a label below does not match exactly, use the dashboard search (**Ctrl+K** or **Cmd+K**). ::: ## How it works ### Two Workers, two kinds of traffic - **`amable-core`** answers people who work in amabledata (your team) and API clients. - **`amable-edge`** answers your visitors and contacts: tracking, public forms, booking pages, landing pages, email links. It is the one that must sit on your brand hostnames. ### Ways to attach a hostname to a Worker | Method | DNS record | Certificate | Used for | | --- | --- | --- | --- | | **Workers custom domain** | Created by Cloudflare automatically, pointing at the Worker | Issued automatically | App hostname, tracking hostname, whole-hostname landing site | | **Worker route** (`host/path*`) | A **proxied** record must exist for the hostname | The zone's certificate | Some paths of an existing website; zone-mode tracking domains | | **Custom hostname** (Cloudflare for SaaS) | A **DNS only** `CNAME` at the domain owner's DNS provider | Issued by Cloudflare | CNAME-mode tracking domains on domains outside your account | A Workers custom domain cannot be created on a hostname that already has a `CNAME` record: delete the old record first. ### Cloud and self-hosted **Cloud** On the installation page of the Cloud portal, **Connect a domain** asks for the **App hostname (optional)**, the **Tracking hostname (optional)** and the **Zone (optional)**. *We write the DNS records (app, tracking, email SPF/DKIM/DMARC) into your zone through the API.* The token you created in [Create the API token](https://amabledata.com/docs/cloudflare/api-token) is what allows this. Without a domain, *the CRM starts on a workers.dev address; you can connect the domain later.* **Self-hosted** You attach the app and tracking hostnames in the Cloudflare dashboard (or with Wrangler), then tell amabledata about them by rerunning the setup script with `--app-origin` and `--edge-origin`. Sending domains, tracking domains and landing sites are then added inside amabledata; with the optional [DNS automation token](https://amabledata.com/docs/cloudflare/optional-tokens#dns-automation-token-cloudflare_dns_api_token) the app creates their records for you. ## Step by step ### Put the dashboard on your app hostname (self-hosted) 1. In Cloudflare, go to **Workers & Pages** and select the Worker `amable-core`. 2. Open **Settings** › **Domains & Routes** › **Add** › **Custom domain**. 3. Enter the hostname, for example `crm.example.com`, and select **Add Custom Domain**. Cloudflare creates the DNS record and the certificate (allow a few minutes). 4. Rerun the setup script with the new origin and your usual options: ```bash pnpm self-host:setup --deploy \ --app-origin https://crm.example.com \ --edge-origin https://t.example.com ``` 5. Open `https://crm.example.com` and sign in there. From now on, links in system emails and OAuth redirect URIs use this origin: update the redirect URIs of your OAuth apps (see [Optional tokens and secrets](https://amabledata.com/docs/cloudflare/optional-tokens#ad-platform-apps)). ### Put the edge Worker on your tracking hostname (self-hosted) 1. In **Workers & Pages**, select `amable-edge` › **Settings** › **Domains & Routes** › **Add** › **Custom domain**. 2. Enter the hostname, for example `t.example.com`, and select **Add Custom Domain**. 3. Check it: `https://t.example.com/health` must answer `{"ok":true,"worker":"amable-edge"}`. 4. Rerun the setup script with `--edge-origin https://t.example.com` (and your `--app-origin`). Tracking snippets, email links and hosted pages now use this hostname. :::caution Changing `--edge-origin` changes the snippet and the links of **new** emails. Emails already sent keep their old links, so keep the old hostname working for a while. ::: ### Verify an email sending domain 1. In amabledata, go to **Settings** › **Domains** and select **Connect a domain**. 2. Choose **Sending domain** (*Required before any marketing email can be sent (SPF, DKIM, DMARC).*), enter the domain, for example `example.com`, and select **Add**. 3. amabledata asks the email provider for the records and lists them with **Type**, **Name** and **Value**. 4. Create the records: - **Automatically**: select **Create on Cloudflare** (shown when DNS automation is configured). The records are written to the zone as **DNS only**. - **Manually**: in Cloudflare, open the zone › **DNS** › **Records** › **Add record**, and copy each record exactly. Keep them **DNS only** (grey cloud). 5. Select **Verify**. The status becomes **Verified** when the provider sees the records; until then it stays **Not verified** (*records not found yet*). Sending stays blocked until the domain is verified. Details of the sending settings: [Email sending settings](https://amabledata.com/docs/marketing/email-sending-settings). :::caution[One SPF record only] A domain can have only **one** SPF record (`TXT` starting with `v=spf1`). If you already have one for your mailboxes, **merge** the `include:` of the email provider into it instead of adding a second record. Two SPF records break both. ::: ### Add a tracking domain to a site Tracking domains are managed per analytics site in **Analytics settings** › **Domains** › **Add domain**. Two modes: | Mode | Label in the app | DNS you create | Requirements | | --- | --- | --- | --- | | **Zone** (recommended) | *Domain on this Cloudflare account (recommended)* | A **proxied** `CNAME` for the hostname, plus a Worker route `hostname/*` to `amable-edge` | The domain is a zone of the same Cloudflare account as the edge Worker | | **CNAME** | *DNS stays elsewhere (CNAME)* | One `CNAME`, **not proxied**, to the target shown by the app | `CF_ZONE_ID` and `CF_API_TOKEN` configured (see [Optional tokens and secrets](https://amabledata.com/docs/cloudflare/optional-tokens#cname-tracking-domains-cf_zone_id-cf_api_token-tracking_cname_target)) | Press **Check now** after creating the records. amabledata verifies a zone-mode domain by calling `https:///.well-known/amable-tracking`, which only the edge Worker answers. Full guides: [Tracking domains](https://amabledata.com/docs/tracking-domains/overview), [Zone domains](https://amabledata.com/docs/tracking-domains/zone-domains), [CNAME domains](https://amabledata.com/docs/tracking-domains/cname-domains). ### Add a landing and booking site 1. In **Settings** › **Domains** › **Connect a domain**, choose **Landing & booking site**. 2. Enter the hostname. Leave **Paths (optional)** empty to serve the whole hostname, or list up to 10 paths (for example `/offers`) to route only those paths of an existing website to the edge Worker. 3. Select **Add**, then: - whole hostname: **Create on Cloudflare** attaches it to `amable-edge` as a Workers custom domain; manually, create the `CNAME` shown by the app; - with paths: **Create on Cloudflare** adds the **Workers Routes** listed by the app (each path and `path/*`, plus `/m/*` for media, `/b/*` for booking and `/health`). Manually, add them in the zone › **Workers Routes** › **Add route**, Worker `amable-edge`. 4. Select **Verify**. amabledata checks that the hostname answers from the edge Worker. ## Reference ### Which DNS record goes where | What | Record type | Name | Value | Proxy | Created by | | --- | --- | --- | --- | --- | --- | | App hostname | Workers custom domain | `crm` | Worker `amable-core` | Automatic | You in the dashboard (self-hosted) or the installer (Cloud) | | Tracking hostname | Workers custom domain | `t` | Worker `amable-edge` | Automatic | You in the dashboard (self-hosted) or the installer (Cloud) | | Sending domain: SPF | `TXT` | the sending domain | Shown by **Settings** › **Domains** | DNS only | The wizard (with automation) or you | | Sending domain: DKIM | `TXT` or `CNAME` | `..._domainkey` names shown by the app | Shown by the app | DNS only | The wizard or you | | Sending domain: DMARC | `TXT` | `_dmarc` | Shown by the app | DNS only | The wizard or you | | Tracking domain, zone mode | `CNAME` + Worker route | `track` + `track.example.com/*` | Edge hostname + `amable-edge` | **Proxied** | You (see the tracking domain guide) | | Tracking domain, CNAME mode | `CNAME` | `track` | Target shown by the app | **DNS only** | The domain owner, at their DNS provider | | Landing site, whole hostname | Workers custom domain (or `CNAME` in manual mode) | `go` | `amable-edge` / edge hostname | Automatic | The wizard or you | | Landing site, some paths | Worker routes | `www.example.com/offers`, `/offers/*`, `/m/*`, `/b/*`, `/health` | `amable-edge` | Existing proxied record | The wizard or you | ### Domain statuses in Settings › Domains | Status | Meaning | | --- | --- | | **Not verified** | Added, records not confirmed yet | | **Verified** | The provider (sending) or the edge Worker (tracking, site) confirmed the hostname | | **Verification failed** | A previously verified domain no longer passes the check | The progress shows the steps **Added**, **DNS on Cloudflare** (or **DNS records created** in manual mode) and **Verified**, with **Last check** and **Last error** when present. ## Limits and permissions - **Settings** › **Domains** requires the `domains:manage` permission (owner and admin). Tracking domains require `analytics:configure` (owner, admin, marketer). See [Roles and permissions](https://amabledata.com/docs/concepts/roles-and-permissions). - A hostname can be connected to one workspace only (*hostname already connected*). - A landing site accepts at most 10 paths; `/m`, `/b` and `/health` are reserved. - Automatic DNS needs the zone to be **Active** in the same Cloudflare account and a token with access to it. ## Troubleshooting | Symptom | Cause | Fix | | --- | --- | --- | | Cloudflare refuses the custom domain | A `CNAME` already exists on that hostname, or the zone is not in this account | Delete the old record, or add the zone to the amabledata account. | | *no Cloudflare zone of this account covers the hostname* | The zone is missing, pending, or outside the token's resources | Wait for **Active**; check the token's **Zone Resources**. | | *hostname already connected* | Another workspace (or this one) already uses it | Remove it there first, or use another subdomain. | | Sending domain stays **Not verified** | Records missing, mistyped, proxied or not propagated | Compare each record character by character, set **DNS only**, wait a few minutes and **Verify** again. | | Sending domain: records invalid | A second SPF record, or a value changed | Keep one merged SPF record; recreate the DKIM records exactly. | | Tracking or site domain: *edge unreachable* | The hostname does not answer from `amable-edge` | Check the custom domain or route points to `amable-edge` and that `https:///health` answers. | | *The hostname answers, but not from the tracking worker: check the worker route.* | A route or record sends the hostname elsewhere | Fix the Worker route `hostname/*` → `amable-edge`. | | *The hostname does not answer yet: check that the zone is active and the record is proxied.* | Zone pending or the `CNAME` is DNS only (zone mode) | Wait for activation, turn the proxy on. | | Sign-in fails after moving the dashboard | You still use the old origin | Open the new app hostname. The CSRF check accepts `APP_ORIGIN` and the origins listed in `ALLOWED_ORIGINS` only. | ## Related - [Move an existing domain](https://amabledata.com/docs/cloudflare/migrate-a-domain) - [Optional tokens and secrets](https://amabledata.com/docs/cloudflare/optional-tokens) - [Domains settings](https://amabledata.com/docs/settings/domains) - [Email sending settings](https://amabledata.com/docs/marketing/email-sending-settings) - [Tracking domains overview](https://amabledata.com/docs/tracking-domains/overview) - [Install the tracker](https://amabledata.com/docs/analytics/install-tracker) - Cloudflare: [Workers custom domains](https://developers.cloudflare.com/workers/configuration/routing/custom-domains/) --- # Requirements Section: Self-hosting URL: https://amabledata.com/docs/self-hosting/requirements Summary: What you need before installing amabledata yourself: Cloudflare account and plan, tools on your computer, and the optional services. The self-hosted edition is the same application as amabledata Cloud, installed by you from the public repository into your own Cloudflare account. This page lists everything you need before you run the installer. ## Overview You need three groups of things: 1. **A Cloudflare account** on the Workers Paid plan with R2 enabled. 2. **A computer** with Git, Node.js 20 or later and pnpm, from which you run the setup script. 3. **Optional services** for email, OAuth and DNS automation, which you can add after the first install. The repository is [github.com/Ratne/AmableData](https://github.com/Ratne/AmableData). The code is licensed under AGPL-3.0: you can run, modify and self-host it for free; if you offer a modified version as a service, you must publish your changes. ## How it works The setup script runs **on your computer**. It uses Wrangler (Cloudflare's command-line tool, installed with the project dependencies) to create the Cloudflare resources and deploy the two Workers into your account. Nothing runs on your computer afterwards: amabledata lives entirely in Cloudflare. You need the computer again only to update. You do not need a server, a database server, Docker or a domain to start: the installation answers on the `workers.dev` addresses of your account. ## Step by step ### Prepare the Cloudflare account 1. Create a Cloudflare account, verify the email and turn on two-factor authentication. A dedicated account is recommended. See [Create a Cloudflare account](https://amabledata.com/docs/cloudflare/create-account). 2. Add a payment method, activate **Workers Paid** and enable **R2**. See [Plans and billing](https://amabledata.com/docs/cloudflare/plans-and-billing). 3. Open **Workers & Pages** once. If Cloudflare asks you to choose a `workers.dev` subdomain, choose one (for example `acme`). Your Workers will answer on `https://amable-core.acme.workers.dev` and `https://amable-edge.acme.workers.dev`. Note the subdomain: you need it for the setup command. 4. Optional: add your domain now ([buy](https://amabledata.com/docs/cloudflare/buy-a-domain) or [move](https://amabledata.com/docs/cloudflare/migrate-a-domain) one), or later. ### Install the tools on your computer 1. Install **Git** (any recent version). Check with `git --version`. 2. Install **Node.js 20 or later** (the project declares `node >= 20`). Check with `node --version`. 3. Enable **pnpm** through Corepack, which ships with Node.js: ```bash corepack enable pnpm pnpm --version ``` The repository pins its pnpm version in `package.json` (`packageManager`), so Corepack downloads the right one automatically. 4. Make sure you can open a browser on the same computer: `pnpm exec wrangler login` opens the Cloudflare sign-in page. ### Decide your origins Before you run the script, decide the two public origins (they can change later by rerunning the script): | Option | What it is | Start with | | --- | --- | --- | | `--app-origin` | Where your team opens the dashboard | `https://amable-core..workers.dev` | | `--edge-origin` | Where visitors load the tracker, forms, booking pages and email links | `https://amable-edge..workers.dev` | Later you can switch them to your own hostnames, for example `https://crm.example.com` and `https://t.example.com`. See [Connect your domains](https://amabledata.com/docs/cloudflare/connect-domains). ## Reference ### Minimum requirements | Requirement | Detail | | --- | --- | | Cloudflare plan | **Workers Paid** ($5/month plus usage, typically $5 to $25/month in total) | | R2 | Enabled on the account | | Cloudflare permissions | You can sign in with Wrangler as a member allowed to create Workers, D1, R2 and Queues (the account's Super Administrator can) | | Node.js | 20 or later | | pnpm | Through Corepack (`corepack enable pnpm`) | | Git | Needed to clone, to read release tags and to update | | Operating system | Any that runs Node.js (macOS, Linux, Windows) | | Domain | Not required to start; required to send marketing email | | Worker CPU limit | The core Worker is deployed with 120 seconds of CPU per invocation (`limits.cpu_ms` 120000), available on Workers Paid | ### Optional services | Service | Needed for | Configure with | | --- | --- | --- | | Cloudflare Email Sending on your domain | System email: sign-in codes, magic links, invitations, password resets, declined-signature notices | `send_email` binding `SYSTEM_EMAIL`, `SYSTEM_EMAIL_FROM` | | A PostShiba account | Marketing email (broadcasts, automations) and the emails of electronic signatures and bookings | `POSTSHIBA_API_KEY` (team key with Full access), `POSTSHIBA_TEAM_ID`, `POSTSHIBA_CLUSTER_ID` | | A Cloudflare API token for DNS | Automatic DNS records in **Settings** › **Domains** | `CLOUDFLARE_DNS_API_TOKEN` | | Your own Google OAuth client | Google Calendar for bookings (busy time read, bookings written as events) | `GOOGLE_OAUTH_CLIENT_ID`, `GOOGLE_OAUTH_CLIENT_SECRET` | | Ad platform apps | Spend import and server-side conversions | `META_APP_*`, `GOOGLE_ADS_*`, `TIKTOK_APP_*` | | Turnstile widget | Bot protection | `TURNSTILE_SITE_KEY`, `TURNSTILE_SECRET_KEY` | Each one is explained in [Optional tokens and secrets](https://amabledata.com/docs/cloudflare/optional-tokens) and listed in the [configuration reference](https://amabledata.com/docs/self-hosting/configuration). ### What you get compared with Cloud | | Self-hosted | Cloud | | --- | --- | --- | | Application | Identical | Identical | | Installation and updates | You run them | Automatic | | System and marketing email | Your own providers | Included (2,000 marketing emails/month per workspace) | | Google and Meta integrations | Your own OAuth apps | Ready to use | | Monitoring | Worker logs, or your own error endpoint | Error and health monitoring | | Support | Community on GitHub | Included | ## Limits and permissions - One installation has one first owner, created by the setup script. Everyone else joins by invitation. See [Members and roles](https://amabledata.com/docs/settings/members-and-roles). - System email is strongly recommended before you invite people: without it, invitations, magic links and email sign-in codes cannot be delivered. The first owner can still join through the link printed by the script and use an authenticator app for two-factor authentication. - The installer uses fixed resource names (`amable-core`, `amable-edge`, `amable-installation`, `amable-files` and the six queue names), so you can run one installation per Cloudflare account. ## Troubleshooting | Symptom | Cause | Fix | | --- | --- | --- | | `corepack: command not found` | Node.js older than 16.10 or a distribution without Corepack | Install Node.js 20 or later from the official installer. | | `pnpm` asks to download a version | Corepack fetches the version pinned by the project | Accept: it is the expected version. | | `wrangler login` cannot open a browser | Remote server without a desktop | Run the script from a machine with a browser, or set `CLOUDFLARE_API_TOKEN` and `CLOUDFLARE_ACCOUNT_ID` for Wrangler instead. | | The script stops with *not logged in* | Wrangler is not signed in | Run `pnpm exec wrangler login` first. | ## Related - [Install with the setup script](https://amabledata.com/docs/self-hosting/setup-script) - [Install with the Deploy button](https://amabledata.com/docs/self-hosting/deploy-button) - [Configuration reference](https://amabledata.com/docs/self-hosting/configuration) - [Cloudflare from zero](https://amabledata.com/docs/cloudflare/overview) - [Cloud or self-hosted](https://amabledata.com/docs/getting-started/cloud-vs-self-hosted) --- # Install with the setup script Section: Self-hosting URL: https://amabledata.com/docs/self-hosting/setup-script Summary: Provision and deploy everything with one command: every option, every step, every resource it creates and every message it prints. `pnpm self-host:setup` is the official way to install and update a self-hosted amabledata. It creates the Cloudflare resources, writes the production configuration, deploys both Workers, generates the secrets and creates the first workspace owner. It is **idempotent**: you can run it again at any time, and it never overwrites a secret that already exists (the only exception is `EDGE_GATEWAY_SECRET` when just one of the two Workers has it, see [Phase 3](#phase-3-build-deploy-and-secrets)). ## Overview Before you start, complete the [requirements](https://amabledata.com/docs/self-hosting/requirements): a Cloudflare account on Workers Paid with R2 enabled, Git, Node.js 20+ and pnpm. The quickest install, from an empty folder: ```bash git clone https://github.com/Ratne/AmableData.git && cd AmableData git checkout "$(git describe --tags --abbrev=0)" # latest release tag pnpm install pnpm exec wrangler login pnpm self-host:setup --deploy \ --app-origin https://amable-core..workers.dev \ --edge-origin https://amable-edge..workers.dev \ --owner-email you@example.com --workspace "My company" ``` At the end the script prints a one-time invitation link. Open it, create your account, set up two-factor authentication, and you are in. You can read the script before running it: it is `scripts/self-host-setup.mjs` in the repository. ## How it works The script runs four numbered phases and prints each heading: | Phase | Printed heading | What happens | | --- | --- | --- | | Check | (none) | Runs `wrangler whoami`. If Wrangler is not signed in, it stops with *not logged in: run `pnpm exec wrangler login` first*. | | 1 | `1/4 Provisioning D1, R2 and queues` | Creates the D1 database, the R2 bucket and the six queues, or finds them if they already exist. | | 2 | `2/4 Writing production wrangler configs` | Renders the templates in `deploy/self-host/` into production configs with the real database ID and your origins. | | 3 | `3/4 Build, deploy and secrets` | Only with `--deploy`: builds the dashboard, deploys the Workers in the right order and sets the missing secrets. | | 4 | `4/4 First owner` | Only with `--deploy` and `--owner-email`: waits for the app to answer, then creates the first workspace and the owner invitation. | ### Phase 1: resources | Resource | Name | Command run | If it exists | | --- | --- | --- | --- | | D1 database | `amable-installation` | `wrangler d1 create amable-installation` | The ID is read from `wrangler d1 list --json` | | R2 bucket | `amable-files` | `wrangler r2 bucket create amable-files` | Error ignored, bucket reused | | Queues | `email-send`, `events-rollup`, `webhooks-out`, `form-submissions`, `esign-seal`, `analytics` | `wrangler queues create ` | Error ignored, queue reused | If the database can be neither created nor found, the script stops with *could not create or find the D1 database amable-installation*. ### Phase 2: generated files - apps - core - wrangler.self-host.jsonc production config of `amable-core` - edge - wrangler.self-host.jsonc production config of `amable-edge` - wrangler.self-host.bootstrap.jsonc same, without the service binding to the core They are rendered from `deploy/self-host/core.wrangler.jsonc` and `deploy/self-host/edge.wrangler.jsonc`, replacing the placeholders `__D1_DATABASE_ID__`, `__APP_ORIGIN__`, `__EDGE_ORIGIN__` and `__CORE_ORIGIN__`. Both set `ENVIRONMENT=production`. The files are **rewritten on every run**: put permanent changes in the templates, not in the generated files. Without `--app-origin`, the script writes placeholder origins (`https://amable-core.example.workers.dev`, `https://amable-edge.example.workers.dev`) and prints *(no --app-origin: placeholder origins written — rerun with your real URLs before going live)*. ### Phase 3: build, deploy and secrets 1. **Version.** The script reads the release tag of your checkout with `git describe --tags` and prints it, for example `version: 2026.10.3`. Between releases it looks like `2026.10.3-3-gabc1234`. Outside a release (no tag) it prints *unknown (no release tag: the "new version available" notice stays off)*. The version is passed to both Workers as `APP_VERSION`. 2. **Build.** `pnpm run build:web` builds the dashboard (single-page app) into `apps/web/dist`. 3. **Deploy the edge Worker (bootstrap).** `wrangler deploy --config apps/edge/wrangler.self-host.bootstrap.jsonc`. The first time, `amable-core` does not exist yet, so the edge is deployed without its service binding to the core and reaches it through `CORE_ORIGIN`. 4. **Deploy the core Worker.** `wrangler deploy --config apps/core/wrangler.self-host.jsonc`. The core binds to the analytics Durable Object class that lives in the edge Worker, which is why the edge goes first. 5. **Deploy the edge Worker again**, this time with the service binding `CORE` to `amable-core`. 6. **Secrets.** The script lists the existing secrets of both Workers and sets only the missing ones to a fresh random value (32 random bytes, base64): | Worker | Secrets | | --- | --- | | `amable-core` | `PASSWORD_PEPPER`, `AUTH_ENCRYPTION_KEY`, `EMAIL_TOKEN_SECRET`, `EDGE_GATEWAY_SECRET` | | `amable-edge` | `EDGE_GATEWAY_SECRET`, always the same value as the core's | Existing secrets print ` : already set, kept` (for example `core PASSWORD_PEPPER: already set, kept`). They are never replaced: a new password pepper would lock every user out. `EDGE_GATEWAY_SECRET` must be equal on both Workers. When only one of them has it (typically a core deployed with the [Deploy button](https://amabledata.com/docs/self-hosting/deploy-button) and a new edge), the script writes one new random value to **both**, printing ` EDGE_GATEWAY_SECRET: missing on the other worker, both rotated` for the Worker that had it. Cloudflare never reveals an existing secret, so it cannot be copied. When both Workers already have it, both values are kept as they are. ### Phase 4: first owner 1. The script calls `/api/health` up to 10 times, 3 seconds apart. The first request also applies the database migrations. If it never answers, it stops with *``/api/health did not answer: check the deploy, then rerun with --owner-email*. 2. It writes, with `wrangler d1 execute amable-installation --remote`, the first **workspace** (name from `--workspace`, slug derived from it) and an **owner invitation** for `--owner-email` in the installation database. Everything happens only while the installation has **no users**: - the workspace is created only when no workspace exists yet; on a rerun the existing first workspace is kept, with its name and slug; - any earlier first-owner invitation is deleted, so a rerun issues a **new link** and the old one stops working; - the new invitation is attached to the first workspace. Once someone has signed up, nothing is written. 3. It prints the link, valid for **7 days** and shown **once**: ```text Done. Open this link within 7 days to create the owner account (shown once): https://amable-core.acme.workers.dev/invite#token=... Any earlier first-owner link stops working. If the installation already had users, nothing was created and this link does not work. ``` 4. Open the link, enter your name (password optional), accept, then set up two-factor authentication (authenticator app or email codes) and save the recovery codes. The workspace slug is the name lowercased, accents removed, every run of other characters replaced by `-`, at most 48 characters; if fewer than 2 characters remain, the slug is `workspace`. "My company" becomes `my-company`, and the workspace opens at `/t/my-company`. ## Step by step ### Install 1. Clone the repository and check out the latest release: ```bash git clone https://github.com/Ratne/AmableData.git && cd AmableData git fetch --tags git checkout 2026.10.3 # replace with the latest tag from the releases page ``` 2. Install the dependencies: `pnpm install`. 3. Sign in to Cloudflare: `pnpm exec wrangler login`. Approve the access in the browser. If your login sees several accounts, select the amabledata account when Wrangler asks, or set `CLOUDFLARE_ACCOUNT_ID` in your shell first. 4. Optional dry run, which prints every command without touching anything: ```bash pnpm self-host:setup --dry-run --deploy \ --app-origin https://amable-core.acme.workers.dev \ --edge-origin https://amable-edge.acme.workers.dev \ --owner-email you@example.com --workspace "Acme" ``` 5. Run the same command without `--dry-run`. 6. Open the printed invitation link and finish the owner account. ### Install in two passes If you prefer to check the generated configs before deploying: 1. Run `pnpm self-host:setup --app-origin ... --edge-origin ...` without `--deploy`. The script stops after phase 2 and prints *3/4 Skipped deploy and secrets. Next: node scripts/self-host-setup.mjs --deploy (same options)*. 2. Review `apps/core/wrangler.self-host.jsonc` and `apps/edge/wrangler.self-host.jsonc`. 3. Run it again with `--deploy` and `--owner-email`. ### Create the owner later If you deployed without `--owner-email`, the script ends with *4/4 No --owner-email: rerun with --owner-email you@example.com to create the first owner.* Rerun the same command adding `--owner-email` and `--workspace`. This only works while the installation has no users. ### Get a new first-owner link If you lost the invitation link, or it expired, before anyone signed up: rerun the same command with `--deploy` and `--owner-email`. The script prints a new link for the same workspace and the old one stops working. Once a user exists, the script creates nothing: ask an owner of the workspace to invite you instead. ### Move to your own hostnames Attach custom domains to the Workers (see [Connect your domains](https://amabledata.com/docs/cloudflare/connect-domains)), then rerun the script with the new `--app-origin` and `--edge-origin`. The secrets are kept; only the configs and the deploy change. ## Reference ### Options | Option | Value | Default | Purpose | | --- | --- | --- | --- | | `--app-origin` | `https://host` (no path) | `https://amable-core.example.workers.dev` placeholder | Public origin of the dashboard and API (`APP_ORIGIN`): links in emails, OAuth callbacks, CSRF check. Required with `--owner-email`. | | `--edge-origin` | `https://host` (no path) | `https://amable-edge.example.workers.dev` placeholder | Public origin of the edge Worker (`EDGE_ORIGIN`): tracking snippet, email links, hosted pages. | | `--core-origin` | `https://host` (no path) | The value of `--app-origin` | Origin the edge uses to reach the core before the service binding exists (`CORE_ORIGIN`). | | `--deploy` | flag | off | Build, deploy and set secrets (phases 3 and 4). | | `--owner-email` | email | none | Creates the first workspace and the owner invitation. Lowercased. | | `--workspace` | 1 to 120 characters | `My workspace` | Name of the first workspace; the slug is derived from it. | | `--dry-run` | flag | off | Prints every Wrangler command (`[dry-run] wrangler ...`) instead of running it; secrets are shown as ``. No network. | ### Validation errors | Message | Cause | | --- | --- | | `--app-origin needs a value` (same for other options) | The option is last or followed by another option | | `appOrigin must be an https origin without a path` (also `edgeOrigin`, `coreOrigin`) | Not `https://`, or contains a path (a trailing `/` is removed automatically) | | `--owner-email must be an email address` | Malformed email | | `--owner-email needs --app-origin` | The invitation link needs the real origin | | `--workspace must be 1-120 characters` | Empty or too long name | | `unknown option ` | Typo in an option | All errors are printed as `self-host-setup: ` and the script exits with code 1. ### What the script never does - It never overwrites an existing secret, except `EDGE_GATEWAY_SECRET` when only one of the two Workers has it (both get the same new value). - It never creates a second owner on an installation that already has users. - It never deletes resources. - It does not configure system email, marketing email, OAuth apps, Turnstile or custom domains: see [Optional tokens and secrets](https://amabledata.com/docs/cloudflare/optional-tokens). ## Limits and permissions - Wrangler must be signed in as a member of the Cloudflare account who can create Workers, D1 databases, R2 buckets and queues. - The invitation link expires after 7 days and works once. While nobody has signed up, rerunning the script replaces it with a new one (see [Get a new first-owner link](#get-a-new-first-owner-link)). - The first owner has every permission. See [Roles and permissions](https://amabledata.com/docs/concepts/roles-and-permissions). ## Troubleshooting | Symptom | Cause | Fix | | --- | --- | --- | | *not logged in: run `pnpm exec wrangler login` first* | Wrangler has no session | Run the login, then the script again. | | `wrangler r2 bucket create` prints an error but the script continues | Bucket exists (fine) or R2 is not enabled | If R2 is not enabled, the deploy fails later: enable R2 and rerun. | | `wrangler deploy ... failed` | Usually Workers Paid not active, or a Durable Object or queue limit | Read the Wrangler error above the message, fix it, rerun: the script resumes safely. | | *api/health did not answer* | The new `workers.dev` hostname is not live yet, or the deploy failed | Open `/api/health` in a browser; when it answers, rerun with `--owner-email`. | | The invitation link says *This invitation is invalid, expired or already used.* | Already used, expired, or the installation already had users | If someone already joined, ask an owner to invite you. If nobody ever signed up (fresh installation), see the next row. | | You lost or let expire the first owner link on a fresh installation | The link is shown once and lasts 7 days | While **no user exists**, rerun the script with `--deploy` and `--owner-email`: it prints a new link for the same workspace and the old one stops working. | | An older first-owner link stopped working | The script was rerun and issued a new link | Use the newest link printed. | | Hosted forms, booking pages or tracking fail with gateway errors after a deploy | `EDGE_GATEWAY_SECRET` differs between the two Workers (for example one of them was set by hand) | Delete the secret on one Worker (`pnpm exec wrangler secret delete EDGE_GATEWAY_SECRET --config apps/edge/wrangler.self-host.jsonc`) and rerun with `--deploy`: both get a new shared value. | | Tracking snippets point at `amable-edge.example.workers.dev` | The script ran without `--edge-origin` | Rerun with your real `--edge-origin`. | | `version: unknown` | The checkout is not on a release tag | Check out a tag (`git checkout `) and rerun if you want the update notice. | ## Related - [Requirements](https://amabledata.com/docs/self-hosting/requirements) - [Configuration reference](https://amabledata.com/docs/self-hosting/configuration) - [Updating](https://amabledata.com/docs/self-hosting/updates) - [Install with the Deploy button](https://amabledata.com/docs/self-hosting/deploy-button) - [Connect your domains](https://amabledata.com/docs/cloudflare/connect-domains) - [Accepting an invitation](https://amabledata.com/docs/account/invitations) --- # Install with the Deploy button Section: Self-hosting URL: https://amabledata.com/docs/self-hosting/deploy-button Summary: One-click deployment of the core worker from GitHub, the secrets it asks for, and how to complete the installation with the edge worker and the first owner. The repository has a **Deploy to Cloudflare** button. It deploys the main Worker (`amable-core`: dashboard, CRM, automations, email and API) into your account from the browser. To get a complete installation you then add the edge Worker and the first owner with the setup script. ## Overview | | Deploy button | Setup script | | --- | --- | --- | | Where you run it | In the browser | On your computer | | Deploys | `amable-core` only | `amable-core` and `amable-edge` | | Creates the first owner | No | Yes (`--owner-email`) | | Secrets | You type them in the form | Generated for you | | Result | A partial installation, to be completed with the script | A complete installation | If you are comfortable with a terminal, [the setup script](https://amabledata.com/docs/self-hosting/setup-script) alone is simpler. The button is useful to see the dashboard deployed quickly, or when your Git provider is where you want the code to live. The button link is: ```text https://deploy.workers.cloudflare.com/?url=https://github.com/Ratne/AmableData/tree/main/deploy/cloudflare ``` ## How it works Cloudflare's Deploy to Cloudflare flow: 1. clones the repository into your own GitHub or GitLab account, 2. lets you adjust the project name, Worker name and resource names, 3. builds and deploys with Workers Builds, and provisions the resources declared in the Wrangler configuration. amabledata's button points at `deploy/cloudflare`, whose `wrangler.jsonc` declares: | Declared in `deploy/cloudflare/wrangler.jsonc` | Value | | --- | --- | | Worker name | `amable-core` | | Dashboard assets | `apps/web/dist` (built by the project's `build` script) | | D1 database | binding `DB`, name `amable-installation` | | Durable Objects | `TenantDb`, `Engine`, `MailDb`, `EditSession`, `BookingCalendar` | | Queues | producers and consumers for `email-send`, `events-rollup`, `webhooks-out`, `form-submissions`, `esign-seal` | | CPU limit | `limits.cpu_ms` 120000 on `amable-core` | | R2 bucket | binding `FILES`, name `amable-files` | | Cron Trigger | `*/5 * * * *` | | Rate limiting | `RL_AUTH` (60/60 s), `RL_API` (600/60 s) | | Variables | `ENVIRONMENT=production`, `ERROR_REPORTING=local` | The `package.json` of that folder runs the monorepo build (`pnpm install --frozen-lockfile && pnpm run build:web`) and deploys with this configuration. ### What the button asks for The form lists the secrets of `deploy/cloudflare/.dev.vars.example`: | Secret | What to enter | | --- | --- | | `PASSWORD_PEPPER` | A random value: `openssl rand -base64 32`. **Never change it once users exist.** | | `AUTH_ENCRYPTION_KEY` | A random value: `openssl rand -base64 32` (it must decode to exactly 32 bytes). **Never change it once users exist.** | | `EMAIL_TOKEN_SECRET` | A random value: `openssl rand -base64 32` | | `EDGE_GATEWAY_SECRET` | A random value: `openssl rand -base64 32`. The setup script later replaces it with a new value shared by the core and the edge Worker (Cloudflare never reveals a secret, so the script cannot copy yours to the edge). | | `APP_ORIGIN` | The public origin of the app, for example `https://amable-core..workers.dev` | Without `PASSWORD_PEPPER` and `AUTH_ENCRYPTION_KEY` a production Worker refuses to start authentication. ### What is missing after the button Until the edge Worker is deployed: - web analytics, hosted forms, booking pages and landing pages answer `503`; - email links point at `APP_ORIGIN` instead of a tracking hostname; - there is no first owner, so nobody can sign in yet. ## Step by step ### Deploy the core Worker 1. Make sure the Cloudflare account is on **Workers Paid** with **R2** enabled. See [Plans and billing](https://amabledata.com/docs/cloudflare/plans-and-billing). 2. Open the button link (above) or select **Deploy to Cloudflare** in the repository README. 3. Sign in to Cloudflare and connect your GitHub or GitLab account when asked. 4. Keep the proposed names: the Worker `amable-core`, the database `amable-installation`, the bucket `amable-files` and the queue names. The setup script later looks for exactly these names. 5. Fill in the secrets listed above. Keep a copy of `PASSWORD_PEPPER` and `AUTH_ENCRYPTION_KEY` in your password manager. 6. Start the deployment and wait for the build to finish. The dashboard opens at `https://amable-core..workers.dev`. ### Complete the installation with the setup script 1. On your computer, clone **your** copy of the repository (the one the button created) or the original one, check out the same release, and install: `pnpm install`. 2. Sign in: `pnpm exec wrangler login`. 3. Run the full setup: ```bash pnpm self-host:setup --deploy \ --app-origin https://amable-core..workers.dev \ --edge-origin https://amable-edge..workers.dev \ --owner-email you@example.com --workspace "My company" ``` It finds the existing database, bucket and queues, creates the `analytics` queue, deploys the edge, redeploys the core with the analytics binding, and prints the owner invitation link. It keeps every secret you already set except `EDGE_GATEWAY_SECRET`: since only the core has it, the script writes one new random value to both Workers and prints `core EDGE_GATEWAY_SECRET: missing on the other worker, both rotated`. 4. Open the link and create the owner account. If you lose it or it expires before anyone signs up, rerun the same command: it prints a new link for the same workspace and the old one stops working. :::caution[APP_ORIGIN set twice] The button stores `APP_ORIGIN` as a **secret**, while the setup script writes it as a **variable** in the core config. If the deploy reports that the name is already in use, delete the secret (`pnpm exec wrangler secret delete APP_ORIGIN --config apps/core/wrangler.self-host.jsonc`) and rerun the script: the variable takes over. ::: ## Reference | Item | Value | | --- | --- | | Button URL | `https://deploy.workers.cloudflare.com/?url=https://github.com/Ratne/AmableData/tree/main/deploy/cloudflare` | | Config used | `deploy/cloudflare/wrangler.jsonc` | | Secrets template | `deploy/cloudflare/.dev.vars.example` | | Build command | `cd ../.. && pnpm install --frozen-lockfile && pnpm run build:web` | | Deploy command | `cd ../.. && pnpm --filter @amable/app-core exec wrangler deploy --config ../../deploy/cloudflare/wrangler.jsonc` | | Deploys | `amable-core` only | | Missing until the script runs | `amable-edge`, the `analytics` queue, the `ANALYTICS` binding, `EDGE_ORIGIN`, the first owner | ## Limits and permissions - The button deploys from the `main` branch of the repository. For a specific release, use the setup script with a checked-out tag. - Cloudflare's Deploy button supports only public GitHub and GitLab repositories and has limited monorepo support; if the build fails in Workers Builds, install with the setup script instead. - You need permission to create Workers, D1, R2 and Queues on the Cloudflare account. ## Troubleshooting | Symptom | Cause | Fix | | --- | --- | --- | | The build fails in Workers Builds | Monorepo build or dependency install failed | Use the [setup script](https://amabledata.com/docs/self-hosting/setup-script), which builds on your computer. | | The dashboard shows an authentication configuration error | `PASSWORD_PEPPER` or `AUTH_ENCRYPTION_KEY` missing or invalid | Set them (`AUTH_ENCRYPTION_KEY` must be base64 of exactly 32 bytes) and redeploy. | | Analytics pages answer *analytics unavailable* (503) | The edge Worker is not deployed | Complete the installation with the setup script. | | Hosted forms or booking pages fail after deploying the edge | `EDGE_GATEWAY_SECRET` differs between the two Workers (for example it was changed by hand on one of them) | Delete it on the edge (`pnpm exec wrangler secret delete EDGE_GATEWAY_SECRET --config apps/edge/wrangler.self-host.jsonc`) and rerun the setup script with `--deploy`: both Workers get a new shared value. | | Nobody can sign in | No owner yet, or the first-owner link was lost or expired | Run the setup script with `--deploy` and `--owner-email`; while nobody has signed up, every run prints a new link. | ## Related - [Install with the setup script](https://amabledata.com/docs/self-hosting/setup-script) - [Configuration reference](https://amabledata.com/docs/self-hosting/configuration) - [Requirements](https://amabledata.com/docs/self-hosting/requirements) - Cloudflare: [Deploy to Cloudflare buttons](https://developers.cloudflare.com/workers/platform/deploy-buttons/) --- # Configuration reference Section: Self-hosting URL: https://amabledata.com/docs/self-hosting/configuration Summary: Every variable, secret and binding of the core and edge workers: name, type, required, default and purpose. This page lists every setting the two amabledata Workers read. Most installations only need what the setup script sets; everything else is optional and turns on one feature. ## Overview amabledata has two Workers, each with its own configuration: | Worker | Production config (generated) | Template you edit | | --- | --- | --- | | `amable-core` | `apps/core/wrangler.self-host.jsonc` | `deploy/self-host/core.wrangler.jsonc` | | `amable-edge` | `apps/edge/wrangler.self-host.jsonc` | `deploy/self-host/edge.wrangler.jsonc` | The Deploy button uses `deploy/cloudflare/wrangler.jsonc` (core only). `apps/core/wrangler.jsonc` and `apps/edge/wrangler.jsonc` are the **local development** configs (`ENVIRONMENT=dev`); do not deploy them to production. ## How it works There are three kinds of setting: - **Bindings** connect a Worker to a Cloudflare resource (database, bucket, queue, Durable Object, another Worker). They are declared in the config file. - **Variables** are plain text values in the `vars` block of the config file. - **Secrets** are encrypted values stored on the Worker with `wrangler secret put` or in the dashboard. They never appear in a file. Rules that matter when you change anything: 1. The setup script **regenerates** the production configs from the templates on every run. Edit the templates, not the generated files. 2. `wrangler deploy` replaces the Worker's variables with the ones in the config it deploys, so a variable added only in the dashboard disappears at the next deploy. Secrets are kept. 3. Any string setting can also be stored as a secret (the Worker reads both the same way). Use a secret for a value you want to survive deploys without editing the template. 4. Many settings are honoured **only in development** (`ENVIRONMENT=dev`). They are marked below and ignored in production. ### Set a secret ```bash pnpm exec wrangler secret put NAME --config apps/core/wrangler.self-host.jsonc # core pnpm exec wrangler secret put NAME --config apps/edge/wrangler.self-host.jsonc # edge ``` Or in the dashboard: **Workers & Pages** › the Worker › **Settings** › **Variables and Secrets** › **Add** › type **Secret**. ### Set a variable 1. Open `deploy/self-host/core.wrangler.jsonc` (or the edge template). 2. Add the key to the `vars` block, for example `"UPDATE_CHECK": "off"`. Several optional variables are already there, commented out. 3. Rerun `pnpm self-host:setup --deploy` with your usual options. ## Step by step ### Turn on system email 1. Onboard the domain to Cloudflare Email Sending (`pnpm exec wrangler email sending enable example.com`). 2. In `deploy/self-host/core.wrangler.jsonc`, uncomment `"send_email": [{ "name": "SYSTEM_EMAIL" }]` and set `"SYSTEM_EMAIL_FROM": "no-reply@example.com"` in `vars`. 3. Rerun the setup script with `--deploy`. ### Turn on marketing email (own PostShiba account) 1. In your PostShiba account, create a team API key with **Full access**, and note your team id (the `team_id` of `GET /users/me` in the PostShiba API) and the id of the cluster to send from. 2. Set the key as a secret on the core: `pnpm exec wrangler secret put POSTSHIBA_API_KEY --config apps/core/wrangler.self-host.jsonc`. 3. In `deploy/self-host/core.wrangler.jsonc`, uncomment `"POSTSHIBA_TEAM_ID"` and `"POSTSHIBA_CLUSTER_ID"` in `vars` and fill them in. 4. Rerun the setup script with `--deploy`. You do not create anything else at PostShiba by hand: when a workspace connects its first sending domain in **Settings › Domains**, amabledata creates a PostShiba tenant for that workspace, an SMTP credential (stored encrypted in the installation database) and a delivery webhook pointing to `/hooks/email/postshiba/`, signed with its own secret. Removing a sending domain in amabledata deletes it at PostShiba too. All three settings are needed: without them (and without a `LICENSE_KEY` linking the installation to an amabledata account, whose managed email service is then used), marketing email stays off and adding a sending domain answers `email_not_configured` ("marketing email is not configured: link a license or set POSTSHIBA_API_KEY, POSTSHIBA_TEAM_ID and POSTSHIBA_CLUSTER_ID"). ### Rotate the email link secret 1. Copy the current `EMAIL_TOKEN_SECRET` value into `EMAIL_TOKEN_SECRET_PREVIOUS` (comma-separated if there are several). 2. Set a new `EMAIL_TOKEN_SECRET`. 3. Links in emails already sent keep working because the previous secret is still accepted for verification. Remove it from `EMAIL_TOKEN_SECRET_PREVIOUS` after a few months. ## Reference ### Core Worker (`amable-core`): bindings | Binding | Type | Resource | Required | Purpose | | --- | --- | --- | --- | --- | | `ASSETS` | Static assets | `apps/web/dist` | Yes | The dashboard. Hashed files under `/assets/*` are served directly; every other path runs the Worker first (security headers and preferences before first paint). | | `DB` | D1 | `amable-installation` | Yes | Installation database: users, sessions, workspaces, memberships, invitations, domains, audit log. | | `TENANT_DB` | Durable Object | `TenantDb` | Yes | One SQLite database per workspace (CRM, sales, commerce, forms, reports). | | `ENGINE` | Durable Object | `Engine` | Yes | Automation engine, one per workspace. | | `MAIL_DB` | Durable Object | `MailDb` | Yes | Email data per workspace: templates, messages, suppressions, broadcasts. | | `EDIT_SESSION` | Durable Object | `EditSession` | Yes | Editing lock of a landing page, one per page. | | `BOOKING_CALENDAR` | Durable Object | `BookingCalendar` | Yes | One per booking calendar. | | `ANALYTICS` | Durable Object (in `amable-edge`) | `AnalyticsDO`, `script_name: amable-edge` | No | Web analytics. Without it, analytics routes answer `503 analytics_unavailable`. | | `EMAIL_SEND` | Queue producer | `email-send` | Yes | Outgoing emails. Consumer: batch 10, timeout 5 s, 100 retries (deferrals count as retries; real provider attempts are capped at 5). | | `EVENTS_ROLLUP` | Queue producer | `events-rollup` | Yes | Event rollups. Consumer: batch 10, timeout 5 s. | | `WEBHOOKS_OUT` | Queue producer | `webhooks-out` | Yes | Outgoing webhooks. Consumer: batch 10, timeout 5 s. | | `FORM_SUBMISSIONS` | Queue producer | `form-submissions` | Yes | Form submissions to process. Consumer: batch 10, timeout 2 s, 10 retries. | | `ESIGN_SEAL` | Queue producer | `esign-seal` | No | Sealing of completed signature requests (the signed PDF and its certificate), one PDF per invocation. Consumer: batch 1, timeout 1 s, 2 retries; a lost job is picked up again by the workspace timer. Without it the workspace timer seals the PDF itself. | | `FILES` | R2 | `amable-files` | Yes | Files, images, logos, backups. | | `RL_AUTH` | Rate limit | namespace `1001`, 60 per 60 s | No | Coarse per-IP limit on sign-in endpoints (D1 counters are the fallback). | | `RL_API` | Rate limit | namespace `1002`, 600 per 60 s | No | Coarse limit for API keys (D1 counters are the fallback). | | `SYSTEM_EMAIL` | Send email | Cloudflare Email Sending | No | System email sender. Commented out in the template. | | Cron trigger | Schedule | `*/5 * * * *` | Yes | Analytics sync, ad spend sync, tracking domain checks, webhook log pruning, daily backups, update check, marketplace catalog sync. | ### Core Worker: variables and secrets | Name | Type | Required | Default | Purpose | | --- | --- | --- | --- | --- | | `ENVIRONMENT` | Variable | Yes | `production` (set by the templates) | `dev` enables development routes and fakes; production never sets it to `dev`. | | `APP_ORIGIN` | Variable | Yes | From `--app-origin` | Public origin of the app: links in emails, CSRF check, OAuth redirect URIs, invitation links. | | `EDGE_ORIGIN` | Variable | Recommended | From `--edge-origin` | Public origin of the edge Worker, used in tracking snippets and hosted links. | | `PASSWORD_PEPPER` | Secret | Yes | Generated by the script | Mixed into every password hash. **Never change it once users exist.** | | `AUTH_ENCRYPTION_KEY` | Secret | Yes | Generated by the script | Base64 of a 32-byte AES-GCM key for secrets at rest (two-factor seeds, OAuth grants). **Never change it once users exist.** | | `EMAIL_TOKEN_SECRET` | Secret | Yes | Generated by the script | Signs click, open and unsubscribe tokens and the contact token of email clicks. | | `EMAIL_TOKEN_SECRET_PREVIOUS` | Secret | No | none | Comma-separated previous signing secrets, still accepted for verification. | | `EDGE_GATEWAY_SECRET` | Secret | Yes | Generated by the script | Shared HMAC secret for the signed calls from the edge Worker. Must be identical on both Workers. | | `ALLOWED_ORIGINS` | Variable | No | none | Extra comma-separated origins accepted by the CSRF check. | | `API_CORS_ORIGINS` | Variable | No | none | Comma-separated browser origins allowed to call `/api/v2` with an API key (CORS, never with credentials); `*` means any. | | `TURNSTILE_SITE_KEY` | Variable | No | none | Turnstile site key. | | `TURNSTILE_SECRET_KEY` | Secret | No | none | Turnstile secret; without it bot verification is disabled (warning at boot). | | `HIBP_ENABLED` | Variable | No | On in production | `false` disables the online breached-password range check (an offline list of common passwords is used instead). In dev it is off unless `true`. | | `ADDRESS_LOOKUP_URL` | Variable | No | The public Photon geocoder | Your own Photon instance URL, or `off` for manual addresses only. | | `SYSTEM_EMAIL_PROVIDER` | Variable | No | `auto` | `auto`, `cloudflare`, `notify` or `console` (`console` only in dev). | | `SYSTEM_EMAIL_FROM` | Variable | With `SYSTEM_EMAIL` | none | Sender address of system emails (domain onboarded to Email Sending). | | `SYSTEM_EMAIL_FROM_NAME` | Variable | No | none | Sender name of system emails. | | `NOTIFY_ENDPOINT` | Variable | No | none | Notify service endpoint override (managed offering). | | `GOOGLE_OAUTH_CLIENT_ID` | Variable or secret | No | none | Your Google OAuth client (booking calendars: busy time and booking events, scopes `calendar.readonly` and `calendar.events`). | | `GOOGLE_OAUTH_CLIENT_SECRET` | Secret | No | none | Secret of that client. Redirect URI `/oauth/google/callback`. | | `META_APP_ID`, `META_APP_SECRET` | Secrets | No | none | Meta ads app. | | `GOOGLE_ADS_CLIENT_ID`, `GOOGLE_ADS_CLIENT_SECRET`, `GOOGLE_ADS_DEVELOPER_TOKEN` | Secrets | No | none | Google Ads app. | | `GOOGLE_ADS_LOGIN_CUSTOMER_ID` | Secret or variable | No | none | Optional Google Ads manager account, digits. | | `TIKTOK_APP_ID`, `TIKTOK_APP_SECRET` | Secrets | No | none | TikTok ads app. | | `ADS_OAUTH_REDIRECT_URI` | Variable | No | `/oauth/ads/callback` | Redirect URI registered on the ad apps. | | `POSTSHIBA_API_KEY` | Secret | For marketing email | none | Team API key of your own PostShiba account, with **Full access**. Used together with `POSTSHIBA_TEAM_ID` and `POSTSHIBA_CLUSTER_ID`. Never used with `ENVIRONMENT=dev`. | | `POSTSHIBA_TEAM_ID` | Variable | For marketing email | none | Team id of your PostShiba account (the `team_id` returned by the PostShiba API `GET /users/me`). | | `POSTSHIBA_CLUSTER_ID` | Variable | For marketing email | none | PostShiba cluster on which the SMTP credentials of the workspaces are issued. | | `POSTSHIBA_BASE_URL` | Variable | No | `https://app.postshiba.com/api/v1` | API root override. | | `POSTSHIBA_INJECT_URL` | Variable | No | `https://inject.postshiba.com/api/inject/v1` | HTTP inject endpoint of your cluster, through which messages are sent. | | `POSTSHIBA_WEBHOOK_SECRET` | Secret | No | none | Extra comma-separated HMAC secrets accepted on delivery webhooks. Not needed normally: each workspace's webhook has its own secret, created automatically. | | `CLOUDFLARE_DNS_API_TOKEN` | Secret | No | none | Token with Zone DNS and Workers Routes edit (and Workers Scripts edit for custom domains) for the domain wizard. | | `EDGE_HOSTNAME` | Variable | No | Host of `EDGE_ORIGIN` | Hostname custom domains point at. | | `EDGE_SCRIPT_NAME` | Variable | No | `amable-edge` | Worker used for custom domains and routes. | | `CF_ZONE_ID` | Variable | No | none | Zone serving the edge Worker, for CNAME tracking domains. | | `CF_API_TOKEN` | Secret | No | none | Token with **SSL and Certificates: Edit** on that zone. | | `TRACKING_CNAME_TARGET` | Variable | No | Host of `EDGE_ORIGIN` | Hostname users point their CNAME at. | | `ERROR_REPORTING` | Variable | No | `local` | `local` (logs only), `control_plane` (needs `LICENSE_KEY`) or an `https://` URL. | | `ERROR_SAMPLE_RATE` | Variable | No | `1` | Sampling of repeated errors, 0 to 1. | | `APP_VERSION` | Variable | No | Set by the script from the release tag | Version shown and compared by the update check. | | `UPDATE_CHECK` | Variable | No | On | `off` disables the daily "new version available" check. | | `APP_CATALOG` | Variable | No | On | `off` hides the app marketplace and stops the catalog sync (private apps still install). | | `APP_CATALOG_URL` | Variable | No | The public catalog | Your own signed catalog index URL. | | `APP_CATALOG_PUBLIC_KEY` | Variable | With `APP_CATALOG_URL` | none | Extra trusted catalog keys, `:`, comma-separated. | | `LICENSE_KEY` | Secret | No | none | Only to link the installation to an amabledata platform account (managed services). Without it the installation runs in open-source mode. | | `CONTROL_PLANE_URL` | Variable | No | `https://app.amabledata.com` | Control plane origin, used only with `LICENSE_KEY`. | | `CONTROL_PLANE_PUBLIC_KEY` | Variable | No | none | Control plane public key, used only with `LICENSE_KEY`. | | `EMAIL_ALLOW_UNVERIFIED_DOMAIN` | Variable | No | none | Dev only: lets a workspace send without a verified domain. Ignored in production. | | `WEBHOOKS_ALLOW_LOOPBACK` | Variable | No | none | Dev only: allows loopback webhook receivers. Ignored in production. | ### Edge Worker (`amable-edge`) | Name | Type | Required | Default | Purpose | | --- | --- | --- | --- | --- | | `ANALYTICS` | Durable Object binding | Yes | `AnalyticsDO` | One analytics database per site, plus one site index per workspace. | | `ANALYTICS_QUEUE` | Queue producer and consumer | No | `analytics` (batch 100, timeout 2 s) | Batches enriched events into the analytics database. Without it, events are written directly. | | `AE` | Analytics Engine dataset | No | `amable_analytics` | Realtime high-volume counters; without it counts stay in memory. | | `FILES` | R2 | No | `amable-files` | Raw analytics archive (prefix `analytics-archive/`) before retention purges. | | `CORE` | Service binding | Yes (after bootstrap) | `amable-core` | Signed calls to the core for forms, bookings, pages and media. | | `ENVIRONMENT` | Variable | Yes | `production` | Never `dev` in production. | | `CORE_ORIGIN` | Variable | Yes | From `--core-origin` or `--app-origin` | The core origin, used before the service binding exists and to verify email tokens. | | `EDGE_GATEWAY_SECRET` | Secret | Yes | Generated by the script | Same value as on the core. | ### Durable Object migrations | Worker | Tag | New SQLite classes | | --- | --- | --- | | core | `v1` | `TenantDb`, `Engine` | | core | `v2` | `MailDb` | | core | `v3` | `EditSession`, `BookingCalendar` | | edge | `v1` | `AnalyticsDO` | These are applied by Cloudflare at deploy time. The databases inside them are migrated by amabledata itself when they start (see [Updating](https://amabledata.com/docs/self-hosting/updates)). ### CPU limit The core Worker declares `"limits": { "cpu_ms": 120000 }` (120 seconds of CPU per invocation instead of the 30-second default) in `deploy/self-host/core.wrangler.jsonc` and `deploy/cloudflare/wrangler.jsonc`, because sealing a long signed PDF can need more than 30 seconds. Keep it when you edit the template; it requires the Workers Paid plan. ### Compatibility date Both Workers use `compatibility_date: 2026-10-01`. Do not change it: the application is tested with that date. ## Limits and permissions - Changing `PASSWORD_PEPPER` locks every user out (no password can be verified). Changing `AUTH_ENCRYPTION_KEY` makes two-factor seeds and stored OAuth grants unreadable. - `EDGE_GATEWAY_SECRET` must be the same on both Workers, otherwise hosted forms, booking pages and landing pages fail. The setup script keeps it equal: when only one Worker has it, it writes one new value to both. - Only someone with access to the Cloudflare account can change these settings. Inside amabledata, workspace settings are managed in [General settings](https://amabledata.com/docs/settings/general). ## Troubleshooting | Symptom | Cause | Fix | | --- | --- | --- | | *PASSWORD_PEPPER secret is not configured* or *AUTH_ENCRYPTION_KEY secret is not configured* | The secret is missing on the core | Set it (the setup script does it for you on `--deploy`). | | Everybody's password is suddenly wrong | `PASSWORD_PEPPER` was changed | Restore the previous value. | | A variable vanished after an update | It was not in the template | Add it to `deploy/self-host/*.wrangler.jsonc` or store it as a secret. | | Analytics answers `analytics_unavailable` | The core has no `ANALYTICS` binding (Deploy button only) | Deploy with the setup script. | | The update notice never appears | `APP_VERSION` missing (no release tag) or `UPDATE_CHECK=off` | Deploy from a release tag; remove `UPDATE_CHECK`. | ## Related - [Install with the setup script](https://amabledata.com/docs/self-hosting/setup-script) - [Optional tokens and secrets](https://amabledata.com/docs/cloudflare/optional-tokens) - [Updating](https://amabledata.com/docs/self-hosting/updates) - [Architecture](https://amabledata.com/docs/getting-started/architecture) --- # Updating Section: Self-hosting URL: https://amabledata.com/docs/self-hosting/updates Summary: How releases work, how amabledata tells you about a new version, and how to upgrade a self-hosted installation safely, with backups and migrations. Updating a self-hosted amabledata is a redeploy: check out the new release, install, rerun the setup script. Database changes are applied automatically when the new version starts. This page explains the release scheme, the update notice, the backups to take first and what happens during the update. ## Overview - Releases are **date-based tags**: `YEAR.MONTH.N`, for example `2026.10.1`, `2026.10.2`, `2026.10.3`. A higher tag is a newer release. - Releases are published on [github.com/Ratne/AmableData/releases](https://github.com/Ratne/AmableData/releases), with release notes. Select **Watch** › **Custom** › **Releases** on the repository to get them by email. - The update command, run from your checkout: ```bash git fetch --tags && git checkout && pnpm install && pnpm self-host:setup --deploy ``` Pass the **same options** you used for the installation (`--app-origin`, `--edge-origin`, and so on). Do not pass `--owner-email` again (it is harmless: it creates nothing on an installation that has users). In the Cloud edition you do nothing: updates are applied automatically through release channels. ## How it works ### The "new version available" notice 1. When the setup script deploys, it sets `APP_VERSION` from the release tag of your checkout (`git describe --tags`). Outside a tag the notice stays off. 2. Once a day, the core Worker's cron asks GitHub for the latest public release (one request a day at most; if GitHub does not answer, the previous answer is kept). 3. When the latest release is newer than `APP_VERSION`, members with the **Owner** role in at least one workspace see a banner: *amable `` is available. This installation runs ``.* with **Release notes and how to update** and **Hide until the next version**. Set the variable `UPDATE_CHECK=off` to disable the check (and the request to GitHub). ### What the setup script does on an update It runs the same steps as an installation (see [Install with the setup script](https://amabledata.com/docs/self-hosting/setup-script)): - finds the existing database, bucket and queues (and creates any new queue a release adds, for example `esign-seal` for electronic signatures); - regenerates the production configs from the templates of the new release; - builds the dashboard and deploys the edge, the core, then the edge again; - **keeps every existing secret**, and only adds secrets a release introduces. ### Migrations run automatically You never run migration commands: | Database | When it is migrated | | --- | --- | | Installation database (D1 `amable-installation`) | At the first request served by the new version (API, email link, edge call). An advisory lock makes sure concurrent requests apply each migration only once; if a migration fails, the next request retries. | | Workspace databases (Durable Objects `TenantDb`, `MailDb`, `Engine` and others) | When each Durable Object starts with the new code. Each migration is applied in a transaction. | | Durable Object classes | New classes are created by Cloudflare at deploy time from the `migrations` list in the config. | Migrations only move forward. There is no automatic downgrade. ## Step by step ### Before updating: back up 1. Read the release notes of every release between your version and the target. 2. In each workspace you own, open **Settings** › **Backups** and select **Create backup**, then **Download** it. A backup contains contacts, sales, email, automations, members and the audit log of that workspace. Daily backups are also taken automatically (the last 7 daily and 5 manual backups are kept). See [Backups](https://amabledata.com/docs/settings/backups). 3. Note the time. The installation database can also be restored to a point in time with Cloudflare D1 Time Travel: ```bash pnpm exec wrangler d1 time-travel info amable-installation ``` 4. Make sure your local changes to the templates (`deploy/self-host/*.wrangler.jsonc`) are committed on your own branch, or saved, so `git checkout` does not refuse or lose them. :::caution[Backups and versions] A backup made **before** an update must be restored on the **same version** it was created with. If the data version differs, the restore refuses with *This backup was made with a different data version and cannot be restored automatically.* ::: ### Update 1. Go to your checkout: `cd AmableData`. 2. Fetch the release tags: `git fetch --tags`. 3. Check out the new release, for example `git checkout 2026.10.3`. If you keep custom templates on a branch, merge or rebase that branch on the tag instead. 4. Install the dependencies of that release: `pnpm install`. 5. Make sure Wrangler is still signed in: `pnpm exec wrangler whoami` (otherwise `pnpm exec wrangler login`). 6. Optional: preview with `--dry-run`. 7. Run the setup script with your usual options: ```bash pnpm self-host:setup --deploy \ --app-origin https://crm.example.com \ --edge-origin https://t.example.com ``` 8. Check the printed `version:` line shows the new tag. 9. Open the dashboard and reload. The first request applies the installation migrations; it can take a few seconds longer than usual. 10. Check `/api/health` answers, open a contact, and check that **Analytics** receives events. ### Update across several releases You can jump directly to the latest tag: migrations of every intermediate release are applied in order. Read all the release notes in between first. ### If something goes wrong 1. Read the Wrangler error printed by the script. Fix the cause (for example a missing permission or plan) and rerun the same command: the script is safe to rerun. 2. If the new version runs but misbehaves, report it on [GitHub Issues](https://github.com/Ratne/AmableData/issues) with the version and the error. 3. Going back to an older tag is not supported once the new version has migrated the databases. If you must, restore the data first (D1 Time Travel for the installation database and the workspace backups made on the old version), then redeploy the old tag. ## Reference | Item | Value | | --- | --- | | Tag format | `YEAR.MONTH.N`, for example `2026.10.3` (`v` prefix tolerated) | | Between releases | `git describe` gives `2026.10.3-3-gabc1234` (3 commits after the tag) | | Update command | `git fetch --tags && git checkout && pnpm install && pnpm self-host:setup --deploy` | | Update check | Once a day, against the latest GitHub release | | Who sees the notice | Owners of at least one workspace | | Disable the check | `UPDATE_CHECK=off` | | Migrations | Automatic, forward only | | Secrets | Kept across updates | | Daily backups kept | 7 daily, 5 manual | ## Limits and permissions - Updating requires access to the Cloudflare account (Wrangler) and a checkout of the repository. - Only workspace owners can create, download and restore backups (*Only the workspace owner can manage backups.*). - Avoid using the workspaces while an update is being deployed; requests during the deploy may hit either version for a few seconds. ## Troubleshooting | Symptom | Cause | Fix | | --- | --- | --- | | `git checkout` refuses: local changes would be overwritten | You edited tracked files (templates, generated configs are ignored) | Commit them on a branch or `git stash`, then check out and reapply. | | `pnpm install` fails | Node.js too old for the new release | Install Node.js 20 or later. | | The banner still shows the old version | The browser cached the answer, or `APP_VERSION` was not set | Reload; check the script printed the new `version:`. | | The first page load after the update is slow or fails once | Installation migrations are running | Reload after a few seconds. A failed migration is retried at the next request. | | A variable you had set is gone | Variables come from the regenerated config | Put it in `deploy/self-host/*.wrangler.jsonc` or store it as a secret. | | Restoring an old backup fails with *different data version* | The backup predates the update | Restore it on the version it was created with, or use a backup made after the update. | ## Related - [Install with the setup script](https://amabledata.com/docs/self-hosting/setup-script) - [Configuration reference](https://amabledata.com/docs/self-hosting/configuration) - [Backups](https://amabledata.com/docs/settings/backups) - [Product updates](https://amabledata.com/docs/account/updates) --- # Workspaces Section: Core concepts URL: https://amabledata.com/docs/concepts/workspaces Summary: The container for your team, data and settings: address, members, isolation, switching, regional defaults and how new workspaces are created. A **workspace** is the container of one business: its contacts, deals, emails, automations, orders, analytics sites and settings, and the people who can access them. One amabledata installation can hold any number of workspaces, and one person can belong to several. ## Overview - Every page of the app lives under the workspace address: `/t//...`, for example `/t/acme/contacts`. - Each member has **one role per workspace**. You can be Owner of one workspace and Viewer of another. - Agencies typically create one workspace per client or brand; a single business usually needs only one. ## How it works ### What belongs to a workspace | Belongs to the workspace | Belongs to you (the user) | | --- | --- | | Contacts, companies, deals, tasks, notes, tags, custom fields, saved searches | Your name, email, password and language/theme preferences | | Email templates, broadcasts, automations, suppressions, forms, landing pages, calendars | Your two-factor methods and recovery codes | | Products, orders, payments, subscriptions, invoices | Your signed-in devices | | Analytics sites, funnels, traffic sources, ad connections | The list of workspaces you belong to | | Members and their roles, invitations, API keys, webhooks, domains, audit log, backups | | | General settings: name, address, logo, color, time zone, language, country, currency, company details | | ### Isolation Each workspace has its own databases (a CRM database, an email database and an automation engine, all Durable Objects in your Cloudflare account). Data never crosses between workspaces: a contact with the same email in two workspaces is two separate contacts. Search, reports, exports, API keys and webhooks are always scoped to one workspace. ### The workspace address (slug) The address is the part after `/t/` in every URL. It is 2 to 64 characters: lowercase letters, digits and dashes, not starting or ending with a dash. It must be unique in the installation. When an owner or admin changes it in **Settings** › **General** › **Address**: - saving asks for the second factor (step-up); - the **old address keeps working**: links to forms, booking pages, landing pages, tracking snippets and API integrations do not break. Settings shows *Previous addresses still active:* followed by the list; - the change is recorded in the audit log. ### Switching workspaces The top bar shows the workspace switcher (**Switch workspace**, list **Workspaces**) with each workspace you belong to and your role in it. Choosing one opens it at `/t/`; amabledata remembers the last one you used and opens it at your next sign-in. Owners also find **New workspace** at the bottom of this menu. ### Workspace profile visible to everyone Every member can read the workspace profile, because the app shell and the defaults of new records use it: name, address, logo, primary color, time zone, workspace language, default country and default currency. Only members with `settings:manage` can change it. | Setting | Effect | Default | | --- | --- | --- | | **Name** | Shown in the switcher, invitations and system emails | Chosen at creation | | **Address** | URL slug | Derived from the name at creation | | **Logo** and **Primary color** | Replace the amabledata logo and color for everyone in the workspace | Product logo and color | | **Time zone** | Scheduled sends, dates in emails and automations | `UTC` | | **Workspace language** | Language of the invitations sent to new users (English or Italian) | The inviter's language | | **Default country** | Preset in new addresses and phone numbers | Guessed from the browser language | | **Default currency** | New products and orders | `EUR` | | **Company details** | Kept for invoices, email footers and documents | Empty | ### How workspaces are created - **First workspace.** Created by the installer: the Cloud installer, or the self-host setup script (`--workspace "My company"`), together with the first owner's invitation. - **More workspaces (self-hosted).** A user who is **Owner** of at least one workspace can create another from the workspace switcher (**New workspace**), confirmed with the second factor. The creator becomes its only member, with the **Owner** role, and is taken straight to its dashboard. Members who are not owner of any workspace do not see the menu item. - **More workspaces (Cloud).** A Cloud installation has one workspace and the switcher has no **New workspace**. Each additional workspace is a new installation, with its own data, at $99/month: add it from the customer portal with **New installation** (see [Cloud or self-hosted](https://amabledata.com/docs/getting-started/cloud-vs-self-hosted)). A new workspace starts empty: no contacts, members, sites or domains, and only its **Name** and **Address** set. Everything else (time zone, language, country, currency, logo, company details) uses the defaults in the table above until you change it in **Settings** › **General**. Nothing is copied from the workspace you were in. The creation is recorded in the new workspace's audit log. There is no workspace deletion in the app. ## Step by step ### Switch to another workspace 1. Open the workspace switcher in the top bar. 2. Select the workspace. The app opens it and remembers it for your next sign-in. ### Create a new workspace 1. Open the workspace switcher in the top bar (the button with the current workspace name). 2. At the bottom of the **Workspaces** menu, click **New workspace**. The item is shown only if you are **Owner** of at least one workspace. 3. The **New workspace** dialog explains: *A separate workspace with its own contacts, data and members. You will be its owner.* 4. Type the **Name** (required, up to 120 characters). The **Address** fills in by itself from the name: lowercase, accents removed, spaces and symbols turned into dashes. 5. Edit the **Address** if you want a different one (2 to 64 characters; lowercase letters, numbers and dashes, not at the start or end). The hint shows where the workspace will open: *Lowercase letters, numbers and dashes. The workspace opens at /t/…* 6. Click **Create workspace**. The button stays disabled while the name is empty or the address is invalid. 7. If **Confirm it is you** appears, enter a code from your second factor and click **Verify**. 8. The new workspace opens on its dashboard and appears in the switcher with your role **Owner**. Continue with the [Quickstart](https://amabledata.com/docs/getting-started/quickstart) to set it up. To close the dialog without creating anything, click **Cancel**. ### Rename a workspace or change its address 1. Open **Settings** › **General**. 2. Change **Name** and/or **Address** under **Workspace**. 3. Save. If you changed the address, confirm with your second factor. ### Leave a workspace 1. Open **Settings** › **Users & roles**. 2. Select **Leave workspace** (*Removes your own access to this workspace.*) and confirm. You lose access until someone invites you again. The last owner cannot leave or be removed (*There must always be at least one owner*). ## Reference | Item | Rule | | --- | --- | | URL | `/t/
/...` | | Address format | 2 to 64 characters, `a-z`, `0-9` and `-`, not at the start or end | | Name | 1 to 120 characters | | Logo | PNG, JPEG, GIF, WebP or AVIF, up to 1 MB | | Primary color | `#rrggbb` | | Languages | English, Italian | | Owners | At least one, always | | Number of workspaces | Self-hosted: unlimited. Cloud: one per installation ($99/month each) | ## Limits and permissions | Action | Permission | Roles | | --- | --- | --- | | Read the workspace profile | `contacts:read` (every role) | All | | Change general settings | `settings:manage` | Owner, Admin | | Change the address | `settings:manage` + second factor | Owner, Admin | | Manage members | `users:manage` | Owner, Admin | | Make someone owner, change or remove an owner | `tenant:transfer` | Owner | | Backups | `tenant:transfer` | Owner | | Billing and wallet (Cloud) | `tenant:billing` | Owner | | Create another workspace (**New workspace** in the switcher, or `POST /api/tenants` from a browser session) | Owner of any workspace + second factor | Owner | ## Troubleshooting | Symptom | Cause | Fix | | --- | --- | --- | | *slug: already used by another workspace* | Another workspace has, or had, that address | Choose another address. | | *2–64 characters: lowercase letters, digits and dashes (not at the start or end)* | Invalid address | Use only `a-z`, `0-9` and inner dashes. | | *timezone: unknown timezone ...* | The time zone is not a valid IANA name | Pick one from the list. | | *The logo is larger than 1 MB* | Image too large | Resize or compress it. | | An old link with the previous address still works | Expected: previous addresses stay reserved to the workspace | Nothing to fix. | | You do not see a workspace in the switcher | You are not a member, or you were removed | Ask one of its owners to invite you. | | *This address is already taken. Choose another one.* when creating a workspace | Another workspace uses that address, or used it before a rename (previous addresses stay reserved) | Choose another **Address**. | | *Only workspace owners can create new workspaces.* | You are not **Owner** of any workspace | Ask an owner to create it, or to make you owner of a workspace first. | | **New workspace** is missing from the switcher | You are not **Owner** of any workspace, or the installation is on Cloud | Self-hosted: same as above. Cloud: add a new installation from the customer portal. | | **Create workspace** stays disabled | The name is empty, or the address is shorter than 2 characters or contains characters other than `a-z`, `0-9` and inner dashes | Fix the **Name** or **Address**. | | Nothing happens after **Create workspace** | You closed **Confirm it is you** | Click **Create workspace** again and complete the second factor. | ## Related - [Roles and permissions](https://amabledata.com/docs/concepts/roles-and-permissions) - [General settings](https://amabledata.com/docs/settings/general) - [Members and roles](https://amabledata.com/docs/settings/members-and-roles) - [Money, dates and time zones](https://amabledata.com/docs/concepts/money-and-time-zones) - [Backups](https://amabledata.com/docs/settings/backups) --- # Roles and permissions Section: Core concepts URL: https://amabledata.com/docs/concepts/roles-and-permissions Summary: The six fixed roles, the full permission matrix, what each permission allows, owner rules, step-up confirmations and API key scopes. Every member of a workspace has exactly **one role** in that workspace. The role decides which modules appear in the sidebar and what the member can see and change. There are six fixed roles; custom roles do not exist. ## Overview | Role | In one sentence | | --- | --- | | **Owner** | Everything, including billing, ownership transfer and deleting the workspace. | | **Admin** | Everything except billing, transfer and deletion; cannot change or remove owners. | | **Marketer** | Contacts, marketing (emails, automations, forms, pages, bookings) and analytics; read-only sales and e-commerce, no settings. | | **Sales** | Contacts, opportunities, tasks, bookings, manual orders and subscriptions, single emails and sales reports; no bulk export. | | **Analyst** | Reads everything, creates reports and dashboards and exports CSV; never changes data. | | **Viewer** | Read-only everywhere, reports included: cannot create reports or export, sensitive fields hidden. | The same descriptions appear in **Settings** › **Users & roles** › **Roles**. ## How it works - **Permissions are enforced on the server.** Hiding a sidebar item is only a convenience: every API route checks the permission again, so a member cannot reach data their role does not grant by typing a URL or calling the API. - **One role per workspace.** A person can be Owner in one workspace and Viewer in another. - **At least one owner, always.** The last owner cannot be demoted or removed (*The last owner cannot be changed or removed.*). - **Only owners touch owners.** Granting the Owner role, or changing or removing an existing owner, needs the `tenant:transfer` permission, which only owners have. An admin who tries sees *You cannot manage this role*. - **Sensitive data is masked at the data layer.** Values of custom fields marked **Sensitive** (for example a national ID) are masked for roles without `contacts:read_sensitive` (the Viewer role). - **API keys never exceed their creator.** When you create an API key, its scopes are chosen among these same permissions and cannot exceed your own role. The same limit applies to AI assistants connected through the [MCP server](https://amabledata.com/docs/developers/mcp), which act with an API key. - **Role changes are notified.** When a member's role changes, they receive an email, and the change is written to the audit log. ### Confirmations with the second factor (step-up) Some actions ask you to re-enter your second factor even when you are signed in. A confirmation is valid for 5 minutes. | Action | Where | | --- | --- | | Invite a user | **Settings** › **Users & roles** | | Change a member's role | **Settings** › **Users & roles** | | Remove a member | **Settings** › **Users & roles** | | Revoke an invitation | **Settings** › **Users & roles** | | Create or delete an API key | **Settings** › **API keys** | | Change the workspace address | **Settings** › **General** | | Create, download or restore a backup | **Settings** › **Backups** | | Create a workspace (API) | `POST /api/tenants` | ## Step by step ### Change a member's role 1. Open **Settings** › **Users & roles**. 2. In **Members**, open the **Role** selector of the person and choose the new role. 3. Confirm with your second factor. You see *Role updated*; the member receives an email. ### Transfer ownership 1. As an owner, change the role of the future owner to **Owner** (confirm with your second factor). 2. Ask them to sign in and check they can open **Settings** › **Backups**. 3. Change your own role to **Admin** (or another role), or leave the workspace. Because there must always be one owner, you can only step down once someone else is owner. ### Choose a role for a new colleague | The person will... | Give them | | --- | --- | | Run the business, pay the bills, manage backups | Owner | | Configure everything, manage users and integrations | Admin | | Run campaigns, automations, forms, landing pages and analytics | Marketer | | Work leads and deals, book meetings, take manual orders and subscriptions | Sales | | Build reports and dashboards without changing data | Analyst | | Only look | Viewer | ## Reference ### Full permission matrix | Permission | Owner | Admin | Marketer | Sales | Analyst | Viewer | | --- | :-: | :-: | :-: | :-: | :-: | :-: | | `contacts:read` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | | `contacts:write` | ✓ | ✓ | ✓ | ✓ | — | — | | `contacts:import` | ✓ | ✓ | ✓ | — | — | — | | `contacts:export` | ✓ | ✓ | ✓ | — | — | — | | `contacts:merge` | ✓ | ✓ | ✓ | ✓ | — | — | | `contacts:read_sensitive` | ✓ | ✓ | ✓ | ✓ | ✓ | — | | `tags:write` | ✓ | ✓ | ✓ | ✓ | — | — | | `saved_searches:write` | ✓ | ✓ | ✓ | ✓ | ✓ | — | | `opportunities:read` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | | `opportunities:write` | ✓ | ✓ | — | ✓ | — | — | | `tasks:read` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | | `tasks:write` | ✓ | ✓ | — | ✓ | — | — | | `templates:write` | ✓ | ✓ | ✓ | — | — | — | | `broadcasts:read` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | | `broadcasts:write` | ✓ | ✓ | ✓ | — | — | — | | `broadcasts:send` | ✓ | ✓ | ✓ | — | — | — | | `automations:read` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | | `automations:write` | ✓ | ✓ | ✓ | — | — | — | | `automations:publish` | ✓ | ✓ | ✓ | — | — | — | | `automations:trigger` | ✓ | ✓ | ✓ | ✓ | — | — | | `forms:read` | ✓ | ✓ | ✓ | — | ✓ | ✓ | | `forms:write` | ✓ | ✓ | ✓ | — | — | — | | `forms:submissions_read` | ✓ | ✓ | ✓ | — | ✓ | ✓ | | `forms:connections_manage` | ✓ | ✓ | ✓ | — | — | — | | `pages:read` | ✓ | ✓ | ✓ | — | ✓ | ✓ | | `pages:write` | ✓ | ✓ | ✓ | — | — | — | | `pages:publish` | ✓ | ✓ | ✓ | — | — | — | | `booking:read` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | | `booking:write` | ✓ | ✓ | ✓ | ✓ | — | — | | `booking:manage_bookings` | ✓ | ✓ | ✓ | ✓ | — | — | | `esign:read` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | | `esign:write` | ✓ | ✓ | ✓ | ✓ | — | — | | `emails:send_single` | ✓ | ✓ | ✓ | ✓ | — | — | | `conversations:read` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | | `conversations:write` | ✓ | ✓ | ✓ | ✓ | — | — | | `suppressions:write` | ✓ | ✓ | ✓ | — | — | — | | `orders:read` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | | `orders:write` | ✓ | ✓ | — | ✓ | — | — | | `orders:refund` | ✓ | ✓ | — | — | — | — | | `products:read` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | | `products:write` | ✓ | ✓ | — | — | — | — | | `subscriptions:read` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | | `subscriptions:write` | ✓ | ✓ | — | ✓ | — | — | | `checkouts:read` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | | `checkouts:write` | ✓ | ✓ | ✓ | — | — | — | | `analytics:read` | ✓ | ✓ | ✓ | — | ✓ | ✓ | | `analytics:configure` | ✓ | ✓ | ✓ | — | — | — | | `analytics:journey_read` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | | `reports:read` | ✓ | ✓ | ✓ | — | ✓ | ✓ | | `reports:sales_read` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | | `reports:create` | ✓ | ✓ | — | — | ✓ | — | | `reports:export` | ✓ | ✓ | — | — | ✓ | — | | `settings:manage` | ✓ | ✓ | — | — | — | — | | `users:manage` | ✓ | ✓ | — | — | — | — | | `domains:manage` | ✓ | ✓ | — | — | — | — | | `api_keys:manage` | ✓ | ✓ | — | — | — | — | | `webhooks:manage` | ✓ | ✓ | — | — | — | — | | `integrations:manage` | ✓ | ✓ | — | — | — | — | | `apps:install` | ✓ | ✓ | — | — | — | — | | `apps:manage` | ✓ | ✓ | — | — | — | — | | `audit:read` | ✓ | ✓ | — | — | — | — | | `data:bulk_delete` | ✓ | ✓ | — | — | — | — | | `data:export_full` | ✓ | ✓ | — | — | — | — | | `tenant:billing` | ✓ | — | — | — | — | — | | `tenant:transfer` | ✓ | — | — | — | — | — | | `tenant:delete` | ✓ | — | — | — | — | — | Counts: Owner 62 permissions, Admin 59, Marketer 40, Sales 26, Analyst 21, Viewer 17. ### What each permission allows | Permission | Allows | | --- | --- | | `contacts:read` | See contacts and companies, tags and saved searches; read the workspace profile. Every role has it. | | `contacts:write` | Create, edit, archive and restore contacts and companies; apply and remove tags on contacts. | | `contacts:import` | Import contacts from CSV. | | `contacts:export` | Export contacts. | | `contacts:merge` | Merge duplicate contacts. | | `contacts:read_sensitive` | See unmasked values of sensitive custom fields. | | `tags:write` | Create, rename and delete tags (applying tags to a contact needs `contacts:write`). | | `saved_searches:write` | Create, update and delete saved searches. | | `opportunities:read` / `:write` | See / manage deals. | | `tasks:read` / `:write` | See / manage tasks and appointments. | | `templates:write` | Create and edit email templates. | | `broadcasts:read` / `:write` / `:send` | See broadcasts, suppressions and email settings / edit broadcasts / send them. | | `automations:read` / `:write` / `:publish` | See / edit / publish automations. | | `automations:trigger` | Fire API goals of automations (for example from integrations). | | `forms:read` / `:write` | See / edit forms. | | `forms:submissions_read` | Read decrypted submission values (personal data). | | `forms:connections_manage` | Manage the external connections of a form (webhooks, Google Sheets, email). | | `pages:read` / `:write` / `:publish` | See / edit / publish landing pages. | | `booking:read` | See calendars and bookings. | | `booking:write` | Manage calendars, event types and availability. | | `booking:manage_bookings` | Cancel or reschedule bookings made by contacts. | | `esign:read` | See signature templates and requests, and the **Signatures** tab of a contact. | | `esign:write` | Edit signature templates (PDF, parties, fields); send, remind and void requests, copy signing links, retry sealing. | | `emails:send_single` | Send a single email to a contact. | | `conversations:read` / `:write` | Read the shared inbox / reply, assign and close conversations. | | `suppressions:write` | Add or remove addresses on the suppression list. | | `orders:read` / `:write` | See orders, payments and invoices / create and edit orders and payments. | | `orders:refund` | Refund payments (moves money back). | | `products:read` / `:write` | See / manage products and promotions. | | `subscriptions:read` / `:write` | See / manage subscriptions. | | `checkouts:read` / `:write` | See [checkout pages](https://amabledata.com/docs/ecommerce/checkouts) and their stats / create and edit them. | | `analytics:read` | Open web analytics. | | `analytics:configure` | Manage sites, tracking domains, keys, alerts, sharing and ad connections. | | `analytics:journey_read` | See the website journey on a contact. | | `reports:read` | Open reports and report dashboards. | | `reports:sales_read` | Read sales reports; enough to open **Reports** and **Report dashboards**, limited to the sales reports. | | `reports:create` | Create and save reports and dashboards. | | `reports:export` | Export report results to CSV. | | `settings:manage` | General settings, custom fields, pipelines, e-commerce settings. | | `users:manage` | Members and invitations (owners only for the Owner role). | | `domains:manage` | Connect and verify domains. | | `api_keys:manage` | Create and revoke API keys. | | `webhooks:manage` | Manage outgoing webhooks. | | `integrations:manage` | Manage integrations. | | `apps:install` / `apps:manage` | Install marketplace apps / manage installed apps (settings, scopes, health, uninstall). | | `audit:read` | Read the audit log. | | `data:bulk_delete` | Bulk deletions. | | `data:export_full` | Full data export. | | `tenant:billing` | Billing and wallet (Cloud). | | `tenant:transfer` | Grant or remove the Owner role; manage backups. | | `tenant:delete` | Reserved to owners. | ### Sidebar items and the permission that shows them | Item | Permission | | --- | --- | | Conversations | `conversations:read` | | Contacts, Companies, Tags, Saved searches | `contacts:read` | | Deals | `opportunities:read` | | Tasks & calendar | `tasks:read` | | Broadcasts, Email templates, Suppressions, Email sending | `broadcasts:read` | | Automations | `automations:read` | | Forms | `forms:read` | | Landing pages | `pages:read` | | Calendars & bookings | `booking:read` | | Signatures | `esign:read` | | Orders, Payments, Invoices | `orders:read` | | Products, Promotions | `products:read` | | Subscriptions | `subscriptions:read` | | Every Analytics item | `analytics:read` | | Reports, Report dashboards | `reports:read` or `reports:sales_read` (a Sales member sees only the sales reports) | | Settings › General, Custom fields, Pipelines, E-commerce | `settings:manage` | | Settings › Users & roles | `users:manage` | | Settings › Domains | `domains:manage` | | Settings › Integrations | `integrations:manage` | | Settings › Apps | `apps:install` | | Settings › API keys | `api_keys:manage` | | Settings › Webhooks | `webhooks:manage` | | Settings › Audit log | `audit:read` | | Settings › Backups | `tenant:transfer` | | Settings › Billing & wallet | `tenant:billing` | | Dashboard, API reference, Support, Ideas board | Every member | ## Limits and permissions - Roles are fixed; you cannot add or remove permissions from a role. - Changing roles, inviting and removing members requires `users:manage` and a second-factor confirmation. - Granting or removing the Owner role requires `tenant:transfer` (owners only). - Invitations are rate limited per workspace (*Too many invitations: try again later*). ## Troubleshooting | Message | Cause | Fix | | --- | --- | --- | | *You cannot manage this role* | An admin tried to grant, change or remove the Owner role | Ask an owner. | | *There must always be at least one owner* | You tried to demote or remove the last owner | Make someone else owner first. | | *Confirmation with the second factor is required* | The action needs a step-up | Enter your authenticator or email code when asked. | | *Too many invitations: try again later* | Invitation rate limit | Wait and retry. | | *It no longer exists: the list has been refreshed* | The member or invitation was removed meanwhile | Nothing to do. | | A module is missing from the sidebar | Your role lacks the read permission | Ask an owner or admin to change your role. | | A sensitive field shows a masked value | Your role lacks `contacts:read_sensitive` | Ask for a role other than Viewer. | ## Related - [Members and roles](https://amabledata.com/docs/settings/members-and-roles) - [Accepting an invitation](https://amabledata.com/docs/account/invitations) - [API keys](https://amabledata.com/docs/settings/api-keys) - [MCP server](https://amabledata.com/docs/developers/mcp) - [Audit log](https://amabledata.com/docs/settings/audit-log) - [Custom fields](https://amabledata.com/docs/concepts/custom-fields) - [Workspaces](https://amabledata.com/docs/concepts/workspaces) --- # Sites Section: Core concepts URL: https://amabledata.com/docs/concepts/sites Summary: The websites you track and the settings that belong to each one: hostnames, time zone, currency, retention, attribution model, cookieless mode and the site secret. A **site** is a website you track with amabledata's web analytics. Each site has its own tracking snippet, its own analytics database and its own settings. Funnels, goals, alerts, share links, tracking domains, ad connections and site API keys all belong to a site. ## Overview - Sites are managed in the analytics settings (`/t//analytics/settings`), tab **Sites**. - Every analytics page has a **Site** selector at the top to choose which site you are looking at. - A workspace can have any number of sites. Use one site per website or brand; use several **hostnames** on one site when the same business runs on several domains or subdomains you want counted together. ## How it works ### Where the data lives Each site has its own analytics database (a Durable Object of the edge Worker in your Cloudflare account) with its visitors, sessions, events, goals, funnels and attribution. Raw rows older than the site's **retention** are archived to R2 and purged from the live database. ### Which events are accepted The edge Worker only accepts events for a site from its **Hostnames**. Each hostname also covers its subdomains: `example.com` accepts `www.example.com` and `shop.example.com`. Events from `localhost` are refused unless **Allow localhost** is on. ### Time zone and currency of a site - The site **Time zone** defines where a day starts and ends in the analytics dashboards and the hour of day in the insights (for example *Purchases by weekday and hour (site time)*). - The site **Currency** is the currency in which the analytics dashboards show revenue. - They are independent of the workspace time zone and currency. See [Money, dates and time zones](https://amabledata.com/docs/concepts/money-and-time-zones). ### Attribution model The site's **Attribution** setting is the default model of its dashboards: how revenue is credited to the sources of each customer's visits. You can switch the model on the dashboard at any time. | Model | Label | | --- | --- | | `first_touch` | First touch | | `last_touch` | Last touch | | `last_non_direct` (default) | Last non-direct | | `linear` | Linear | | `position_based` | Position based (40/20/40) | ### Cookie and cookieless mode - **Cookie mode** (default): the tracker stores a first-party visitor identifier, so returning visitors and multi-session journeys are recognised. - **Cookieless**: *No identifier is stored in the browser; visitors are counted with a daily rotating hash.* Visitors cannot be recognised across days. ### The site secret Each site has a **secret** used as a Bearer token by your servers to send server-side events (goals, payments, identify calls, server-side page views and crawler hits). It is shown **once**, when you create the site or roll it. The site list shows **No secret** when none is set. ### Site keys Separately from the secret, the **Keys** tab of the analytics settings creates **site API keys** that let other systems read the site's reports or send events through the public API. See [Analytics settings](https://amabledata.com/docs/analytics/settings). ## Step by step ### Add a site 1. Open the analytics settings and the **Sites** tab, then select **New site**. In a workspace without sites, **Analytics** › **Overview** shows *Track your first website* with **Add a site**. 2. Fill in the **Add a site** dialog (*Events are accepted only from these hostnames (and their subdomains).*): see the fields in [Reference](#reference). 3. Select **Create site**. 4. The dialog *`` is ready* (*Save the site secret for server-side events, then add the snippet to every page.*) shows the secret (*Copy it now: it will not be shown again.*) and the **Tracking snippet**. Copy both. 5. Install the snippet: see [Install the tracker](https://amabledata.com/docs/analytics/install-tracker). ### Edit a site 1. In **Sites**, select **Edit** on the site. 2. Change the fields in **Edit site** and select **Save**. You see *Site saved*. Changing the time zone or currency affects how dashboards group and show data from now on; stored events are not rewritten. ### Roll the secret 1. In **Sites**, select **Roll secret** on the site. 2. Confirm *Roll the secret of "``"?* (*The current secret stops working immediately: update your server integrations with the new one.*). 3. Copy the secret shown in *New secret for ``* (*Use it as Bearer token for server-side events.*). ### Delete a site 1. In **Sites**, select **Delete** on the site. 2. Confirm *Delete the site "``"?* (*Its analytics data, funnels, alerts and share links are deleted. This cannot be undone.*). You see *Site deleted*. Ingest stops immediately. Tracking domains of the deleted site are cleaned up by the background job. ## Reference ### Site fields | Field | Type | Required | Default | Rules | | --- | --- | --- | --- | --- | | **Name** | Text | Yes | — | 1 to 100 characters | | **Hostnames** | List of hostnames | Yes | — | 1 to 20; type one and press **Enter** (or a comma); pasted URLs are reduced to their hostname; each covers its subdomains | | **Time zone** | IANA time zone | Yes | Your browser's time zone (API default `UTC`) | Any valid IANA name | | **Currency** | ISO 4217 code | Yes | `EUR` | Three letters; suggestions: EUR, USD, GBP, CHF, JPY, CAD, AUD, SEK, NOK, DKK, PLN, CZK, BRL, MXN, INR | | **Retention (days)** | Number | Yes | 395 | `0` keeps raw data forever, otherwise 30 to 3650 | | **Attribution** | Model | Yes | Last non-direct | See the models above | | **Cookieless** | Switch | — | Off | — | | **Allow localhost** | Switch | — | Off | *Accept events from localhost while you develop.* | ### Site list Each row shows the name, a **Cookieless** badge when it applies, **No secret** when the site has none, and a summary line: time zone · currency · retention (*forever* or *`` days*) · attribution model · creation date. Actions: **Roll secret**, **Edit**, **Delete**. ### What belongs to a site | Item | Page | | --- | --- | | Tracking snippet and installation check | [Install the tracker](https://amabledata.com/docs/analytics/install-tracker) | | Goals and funnels | [Goals and funnels](https://amabledata.com/docs/analytics/goals-and-funnels) | | Alerts | [Alerts](https://amabledata.com/docs/analytics/alerts) | | Public share links | [Sharing](https://amabledata.com/docs/analytics/sharing) | | Tracking domains | [Tracking domains](https://amabledata.com/docs/tracking-domains/overview) | | Ad accounts | [Ad accounts](https://amabledata.com/docs/ads/ad-accounts) | ## Limits and permissions | Action | Permission | Roles | | --- | --- | --- | | See sites and analytics | `analytics:read` | Owner, Admin, Marketer, Analyst, Viewer | | Create, edit, delete sites; roll the secret | `analytics:configure` | Owner, Admin, Marketer | Members without `analytics:configure` see the settings read-only (*You can view these settings; changing them needs the analytics configuration permission.*) and, in an empty workspace, *Ask an admin of the workspace to add a site.* ## Troubleshooting | Symptom | Cause | Fix | | --- | --- | --- | | **Create site** stays disabled | Name empty, no valid hostname, currency not three letters, or retention out of range | Fill the name, add at least one hostname, use a 3-letter code, retention 0 or 30–3650. | | *invalid hostname* | The value is not a hostname | Enter `example.com`, not a path or an email. | | *unknown IANA time zone* | Invalid time zone | Pick one from the list. | | No events arrive | Snippet missing, or the page's hostname is not in **Hostnames** | Add the hostname; check the snippet. | | Events from your laptop are ignored | Localhost is refused by default | Turn on **Allow localhost** while developing. | | Server events are rejected | The site secret was rolled | Update your servers with the new secret. | ## Related - [Install the tracker](https://amabledata.com/docs/analytics/install-tracker) - [Analytics settings](https://amabledata.com/docs/analytics/settings) - [Contacts and identity](https://amabledata.com/docs/concepts/contacts-and-identity) - [Money, dates and time zones](https://amabledata.com/docs/concepts/money-and-time-zones) - [Tracker protocol](https://amabledata.com/docs/developers/tracker-protocol) --- # Contacts and identity Section: Core concepts URL: https://amabledata.com/docs/concepts/contacts-and-identity Summary: How people are recognised across CRM, email and analytics: contacts, anonymous visitors, how a visitor becomes linked to a contact, visitor merges and contact merges. amabledata keeps one record per person: the **contact**. Everything the person does, in the CRM, in your emails, on your website, in your shop, is attached to it. This page explains how amabledata recognises the same person across those places, including when they start as an anonymous website visitor. ## Overview There are two kinds of "person" records: | Record | Where | Created when | Identified by | | --- | --- | --- | --- | | **Contact** | CRM (**Contacts**) | You create it, import it, a form or booking creates it, an order or the API creates it | Emails (up to 5), phones (up to 5), name, custom fields | | **Visitor** | Web analytics (one per site) | A browser loads a page with the tracker | A random visitor ID (cookie mode) or a daily hash (cookieless mode) | A visitor is **anonymous** until it gets **linked** to a contact. From that moment, the contact page shows the **Website journey** (first visit, sources, top pages, timeline, linked visitors) and revenue attribution can credit the campaigns that brought the person. ## How it works ### How an anonymous visitor becomes linked to a contact A visitor is linked to a contact by one of these events. The contact's journey shows which one in *Linked via `` on ``*: | Link source (label) | What happens | | --- | --- | | **form submission** | A form submitted on a tracked page creates or updates a contact (matched by normalised email, otherwise by phone digits, following the form's update policy), and the submitting visitor is linked to it. | | **booking** | A booking made on a tracked page links the visitor to the contact who booked. | | **email click** | A tracked link in an amabledata email carries a signed contact token. When the person lands on your tracked site, the first page view sends the token and the visitor is linked to that contact. | | **site login / identify** | Your site calls the tracker's identify with an email (for example after login). If a contact with that email **already exists**, the visitor is linked to it. Identify never creates a contact. | | **order** | A CRM order or payment that carries the visitor links it to the customer. | | **API** | An integration links the visitor through the API. | The links are applied by a background synchronisation that runs every 5 minutes (and right after changes made from the app), so a link can take a few minutes to appear. :::note The journey empty state says it plainly: *Visitors are linked to contacts when they submit a form, click a tracked email link or are identified by your site.* ::: ### Identity keys and visitor merges (cross-device) The same person often shows up as several visitors: a phone and a laptop, two browsers, a funnel link and your website. Each site's analytics database keeps **identity keys** for its visitors: | Key | Source | | --- | --- | | `email` | Identify calls, form capture, payments, email landing links (also as a SHA-256 hash, so a hashed `he=` link parameter matches), and the emails of the linked contact | | `phone` | Normalised digits, from form capture (phone-only identifies), payments and the linked contact | | `session` | The tracker session | | `ip` | The network address (a key, never a merge rule on its own) | When two visitors share an email, a phone or a session, they are **merged**: the visitor seen first stays the **origin**, the other becomes its child. The mechanisms are `email`, `phone`, `session` and `manual`. Merges are: - **retroactive**: reports group visits by the origin, so a merge changes journeys and attribution also for conversions recorded before it; - **respectful of disconnections**: when two visitors are explicitly disconnected, later automatic merges do not join them again; - **non-destructive**: visitor rows are never rewritten. On the contact, **Merged visitors** lists them (*Same person recognized on another device or browser*). Because the emails and phones of a linked contact become identity keys of its visitors, a contact who opens your site on a second device and identifies there is recognised as the same person. ### Retention of anonymous data Visits (touches) of a visitor who is never identified expire after **90 days**. As soon as the visitor's group is identified (an email or phone key, or a CRM contact), its visits are kept for the site's normal retention. ### Deleting a person When a visitor is deleted for privacy reasons, its identity keys are put on a block list: future events carrying them are dropped, and no conversion carrying them is forwarded to ad platforms. ### Contacts in the CRM - A contact has up to **5 emails** (labels *work*, *personal*, *other*) and up to **5 phones** (types *mobile*, *work*, *home*, *fax*, *other*); the first email is the primary one used for matching imports and forms. - A contact has a **source type**: `manual`, `api`, `import`, `form`, `booking` or `other`. - Contacts in different workspaces are always separate, even with the same email. ### Merging duplicate contacts When the same person exists twice in the CRM, merge them from the contact page (**Merge**). *Pick the contact to keep. Empty fields are filled from the others; emails, phones, tags, notes, tasks and deals move to it, the others are archived.* Precisely: | Data | Result in the contact you keep | | --- | --- | | Empty fields (names, prefix and suffix, preferred name, job title, company, birthday, anniversary, website, spouse name, time zone, preferred language, owner, lead source) | Filled from the merged contacts, in order | | Fields already filled | Unchanged | | Emails and phones | Union, up to 5 each | | Addresses | Taken from the first merged contact only if the kept contact has none | | Tags | Union | | Empty custom fields | Filled from the merged contacts | | Notes, tasks, appointments, deals, timeline, conversations, signers of signature requests | Moved to the kept contact | | The merged contacts | Archived (soft-deleted, pointing to the kept one) and removed from search | | Web analytics | Visitors linked to the merged contacts follow the kept contact | A merge emits one `contact.merged` event (usable by automations and webhooks), plus `contact.updated` and a `contact.tag_applied` event for each new tag. ## Step by step ### See how a contact was recognised 1. Open the contact from **Contacts**. 2. Open the **Website journey** panel. It shows *First visit `` on ``*, the **First touch** and **Last non-direct touch**, **Time to conversion**, **Sources**, **Top pages**, **Linked visitors** with *Linked via ``*, and the **Timeline** (*Visited*, *Completed*, *Paid*, *Email*, *Order*, *Form*, *Booking*, *Identified as*). ### Merge duplicate contacts 1. Open one of the duplicates and select **Merge** (also available from the contact list for selected contacts). 2. Use **Add a contact to merge** (*Search by name or email…*) to add the others (up to 10 at once). 3. Choose the **Contact to keep** (marked *kept*). 4. Select **Merge `` contact(s)**. You see *Contacts merged*. ### Identify visitors from your site Call the tracker's identify with the user's email after they sign in or subscribe, so returning customers are linked to their contact. See [Install the tracker](https://amabledata.com/docs/analytics/install-tracker) and the [tracker protocol](https://amabledata.com/docs/developers/tracker-protocol). ## Reference | Item | Value | | --- | --- | | Emails per contact | Up to 5 | | Phones per contact | Up to 5 | | Contacts merged at once | Up to 10 into one | | Anonymous visits kept | 90 days | | Link sources | form submission, booking, email click, site login / identify, order, API | | Visitor merge mechanisms | email, phone, session, manual | | Sync of links | Every 5 minutes, and after changes made in the app | ## Limits and permissions | Action | Permission | Roles | | --- | --- | --- | | See contacts | `contacts:read` | All roles | | Merge contacts | `contacts:merge` | Owner, Admin, Marketer, Sales | | See the website journey on a contact | `analytics:journey_read` | All roles | | Open web analytics (visitors) | `analytics:read` | Owner, Admin, Marketer, Analyst, Viewer | A member without `analytics:journey_read` sees *Your role cannot see website activity.* (every role has it today). ## Troubleshooting | Symptom | Cause | Fix | | --- | --- | --- | | *No website activity linked to this contact yet* | The person never submitted a tracked form, clicked a tracked email link or was identified | Add identify calls on login, use tracked forms and email links. | | Identify does not link the visitor | No contact with that email exists | Create the contact first (or let a form create it). | | The link appears only after a few minutes | Links are applied by the background sync | Wait for the next run (at most 5 minutes). | | *a contact cannot be merged into itself* | The kept contact is also in the merge list | Remove it from the candidates. | | Cookieless site: returning visitors not recognised | Cookieless mode rotates the hash daily | Expected; identify or email clicks still link visits. | ## Related - [Contacts](https://amabledata.com/docs/crm/contacts) - [Contact detail](https://amabledata.com/docs/crm/contact-detail) - [Visitors](https://amabledata.com/docs/analytics/visitors) - [Lead journeys](https://amabledata.com/docs/ads/journeys) - [Sites](https://amabledata.com/docs/concepts/sites) - [Forms submissions](https://amabledata.com/docs/forms/submissions) --- # Custom fields Section: Core concepts URL: https://amabledata.com/docs/concepts/custom-fields Summary: Extra fields on contacts, companies, deals and orders: the 24 types, keys, tabs and groups, options, validation rules, sensitive fields and where values are used. **Custom fields** add your own data to records: a customer code on contacts, an industry on companies, a contract length on deals, a delivery slot on orders. They appear on the record pages, can be filled by imports, forms and the API, and can be used in searches, segments and email personalisation. ## Overview - Managed in **Settings** › **Custom fields** (`/t//settings/custom-fields`). See [Custom fields settings](https://amabledata.com/docs/settings/custom-fields) for the screen itself. - Available on four record types: **contacts**, **companies**, **deals** (opportunities) and **orders**, each with its own tab in the settings page (**Contacts**, **Companies**, **Deals**, **Orders**). - 24 field types, from plain text to multi-level drop-downs. ## How it works ### Key, label and type Each field has: - a **Label**, shown in the app (up to 255 characters, can change any time); - an **API key**, the stable identifier used by the API, imports and email fields: lowercase letters, digits and underscores, starting with a letter, up to 63 characters (for example `customer_code`); - a **Type**. *The key is used by the API, imports and email fields; key and type cannot change later.* To change the type, create a new field and move the values. ### Layout: tabs, groups and fields Fields are arranged per record type in **tabs**, each tab containing **groups**, each group containing fields in order. Fields not in any group are listed under **Fields without a group** (and shown in an **Other** tab on the record). Deleting a tab or group keeps its fields, ungrouped. | Item | Rule | | --- | --- | | Tab name | 1 to 100 characters | | Group name | 1 to 100 characters, belongs to one tab | | Position | Order inside the tab, group or list | ### Required and sensitive - **Required**: the field must have a value when someone creates a record. The create dialogs (**New contact**, **New company**, **New deal**, the **Deals** tab of a contact) and the **Customer** step of the order wizard show the required fields, marked `*`, and refuse to create the record while one is empty. API creates and import rows that create a new contact are refused too. Records that amabledata creates on its own are never blocked: contacts created by form submissions, bookings and incoming conversation messages, companies created from a **Company name** (imports and forms), and orders generated by subscriptions are created with the required fields empty. - **Sensitive (masked for viewers)**: values are masked for every role without the `contacts:read_sensitive` permission (the **Viewer** role), at the data layer, so they are masked in the app, the API and exports alike. **National ID / SSN** fields are sensitive by default. ### Fields owned by apps Marketplace apps can declare their own custom fields in their manifest. Such fields show which app owns them. ### Where values are used | Place | How | | --- | --- | | Record pages | Grouped by tab and group on contacts, companies and deals. Orders show only their required fields, on the **Customer** step of the order wizard; other order values are set and read through the API | | REST API | The `custom_fields` object of the record, keyed by the API key | | CSV import | Map a column to `custom.` | | Forms | Map a form field to a custom field | | Search and saved searches | Conditions on `custom.`; the operators depend on the type | | Segments | Saved searches used by broadcasts and automations | | Email personalisation | `{{ contact.custom. }}` in Liquid, for example `{{ contact.custom.vip }}` (see [Liquid reference](https://amabledata.com/docs/marketing/liquid-reference)) | | Contact merge | Empty custom fields of the kept contact are filled from the merged ones | ## Step by step ### Create a field 1. Open **Settings** › **Custom fields** and choose the record type. 2. Select **New field** (or **Add field** inside a group). 3. Fill in **Label**, **API key**, **Type** and **Group**, then the options of the type (below), **Required** and **Sensitive**. 4. Save. Existing records have no value until you fill it. ### Add options to a choice field 1. For **Dropdown**, **Radio**, **List box (multiple)** or **Drilldown**, use **Add option** and enter a **Label** and a **Value** for each. 2. For **Drilldown**, use **Add sub-option** to nest options, up to three levels. 3. Add at least one option (*Add at least one option.*). ### Delete a field 1. Select the field and delete it. 2. Confirm *Delete "``"?* (*Stored values are removed too. Fields of a deleted tab or group are kept without a group.*). ## Reference ### The 24 types | Type (label) | API name | Accepted value | Stored as | Options and limits | | --- | --- | --- | --- | --- | | Text | `TEXT` | String | Text, trimmed | **Max characters** (default 255) | | Text area | `TEXT_AREA` | String | Text | **Max characters** (default 10,000) | | Name | `NAME` | String | Text | **Max characters** (default 255) | | Email | `EMAIL` | Valid email, up to 254 characters | Lowercased | — | | Phone number | `PHONE_NUMBER` | Digits, spaces, `+ ( ) . -` | As entered | 5 to 20 digits | | Website | `WEBSITE` | `http(s)` URL; `https://` is added when missing | URL | Hostname with a dot; up to 2,048 characters | | National ID / SSN | `SOCIAL_SECURITY_NUMBER` | String | Uppercased | **Format**: *National ID (generic)*: 4 to 31 letters, digits, spaces or dashes; *US SSN (NNN-NN-NNNN)*: nine digits are formatted automatically, invalid ranges rejected. Sensitive by default. | | State / province | `STATE` | ISO 3166-2 code | Uppercased | Like `IT-MI` or `US-CA` | | User | `USER` | A member's user ID | Text | — | | Users (multiple) | `USER_LIST_BOX` | List of user IDs | List | Up to 200 values, duplicates removed | | Dropdown | `DROPDOWN` | One option (value or label, case-insensitive) | The option value | Up to 500 options | | Radio | `RADIO` | One option | The option value | Up to 500 options | | List box (multiple) | `LIST_BOX` | List of options | Option values | Up to 500 options, up to 200 selected | | Drilldown | `DRILLDOWN` | A path of 1 to 3 options (values or labels) | The path, shown as `A > B > C` | Up to 500 top options, 200 children per level, 3 levels | | Currency | `CURRENCY` | Number | Number | **Currency** (ISO 4217), **Decimals** (default 2, max 6), **Minimum**, **Maximum** | | Decimal number | `DECIMAL_NUMBER` | Number | Number | **Decimals** (default 6), **Minimum**, **Maximum** | | Percent | `PERCENT` | Number | Number | **Decimals** (default 2); 0 to 100 unless you set **Minimum**/**Maximum** | | Whole number | `WHOLE_NUMBER` | Integer | Number | **Minimum**, **Maximum** | | Year | `YEAR` | Four-digit year | Number | 1000 to 9999 | | Month | `MONTH` | 1 to 12, or a month name (at least 3 letters, English) | Number 1–12 | — | | Day of week | `DAY_OF_WEEK` | 1 (Monday) to 7 (Sunday), or a day name (at least 3 letters, English) | Number 1–7 | — | | Yes / no | `YES_NO` | `true`/`false`; text `yes`, `y`, `1`, `si`, `sì` / `no`, `n`, `0` | Boolean | — | | Date | `DATE` | `YYYY-MM-DD`, a real calendar date | Text | No time, no time zone | | Date and time | `DATE_TIME` | ISO 8601 with time zone (`Z` or `+02:00`) | UTC instant | Seconds and fractions optional | Numbers accept a comma or a dot as decimal separator. An empty value (or `null` in the API) clears the field. ### Imports and lists In CSV imports, values are read as text and converted: numbers, booleans and lists are parsed, multi-value cells (list box, users) are split on the import's **Separator for tags and lists** (default `;`), and drilldown paths are split on `>`. ### Field limits | Item | Limit | | --- | --- | | API key | `^[a-z][a-z0-9_]{0,62}$` | | Label | 1 to 255 characters | | Options per field | 500 | | Option value / label | 1–100 / 1–255 characters | | Max characters setting | 1 to 65,535 | | Decimals setting | 0 to 6 | ## Limits and permissions | Action | Permission | Roles | | --- | --- | --- | | Create, edit, reorder, delete fields, tabs and groups | `settings:manage` | Owner, Admin | | Fill values on contacts and companies | `contacts:write` | Owner, Admin, Marketer, Sales | | Fill values on deals | `opportunities:write` | Owner, Admin, Sales | | Fill values on orders | `orders:write` | Owner, Admin, Sales | | See sensitive values unmasked | `contacts:read_sensitive` | All roles except Viewer | ## Troubleshooting | Message | Cause | Fix | | --- | --- | --- | | *Use lowercase letters, digits and underscores, starting with a letter.* | Invalid API key | Rename it, for example `customer_code`. | | *Add at least one option.* | Choice field without options | Add options. | | *The minimum must not exceed the maximum.* | Wrong range | Fix **Minimum** and **Maximum**. | | `"" is not an option of ` | Value not among the options (import, API) | Use an existing option value or label. | | *expected a date YYYY-MM-DD* | Wrong date format | Use `2026-10-18`. | | *expected an ISO 8601 date-time with timezone* | Date-time without offset | Add `Z` or `+02:00`. | | *at most N decimal places* | Too many decimals | Round, or raise **Decimals**. | | *must be between 0 and 100* | Percent out of range | Enter 0–100, or set your own range. | | *expected an ISO 3166-2 code like IT-MI* | Wrong state format | Use country code, dash, subdivision. | | *expected NNN-NN-NNNN* | Invalid US SSN | Enter nine digits in a valid range. | | *phone number must have 5-20 digits* | Too short or long | Check the number. | ## Related - [Custom fields settings](https://amabledata.com/docs/settings/custom-fields) - [Importing contacts](https://amabledata.com/docs/crm/importing-contacts) - [Search and saved searches](https://amabledata.com/docs/concepts/search-and-saved-searches) - [Roles and permissions](https://amabledata.com/docs/concepts/roles-and-permissions) - [Form field types](https://amabledata.com/docs/forms/field-types) --- # Search and saved searches Section: Core concepts URL: https://amabledata.com/docs/concepts/search-and-saved-searches Summary: Quick search, global search, the advanced filter builder with its operators and groups, and saved searches reused as segments. amabledata has three ways to find records: the **global search** (⌘K / Ctrl+K) to jump to one record, the **quick search** of a list, and the **advanced search** builder to filter by any field. An advanced search can be **saved**, and a saved search can be reused as a **segment** by broadcasts and automations. ## Overview | Tool | Where | Finds | Best for | | --- | --- | --- | --- | | **Global search** | **Search…** in the top bar, or ⌘K / Ctrl+K anywhere | Contacts, companies, notes and orders | Opening one record fast | | **Quick search** | The search box of the **Contacts** and **Companies** lists (*Search name, email, phone…*) | Records of that list | Narrowing a list by text | | **Advanced search** | **Advanced search** on the list | Contacts, companies or orders matching conditions | Precise lists and segments | | **Saved searches** | **CRM** › **Saved searches** (`/t//searches`) | Stored advanced searches | Reuse, sharing, segments | ## How it works ### Free text Free text is matched with a full-text index, as a **prefix match per word**: `mar ros` finds "Mario Rossi". Global search ranks results by relevance; when the full-text index cannot answer a query, it falls back to a slower substring (trigram) search. ### The advanced search builder An advanced search is a document with: - the **record type** (contacts, companies or orders); - optional **free text**; - a **filter**: a group of conditions; - the **columns** to show, the **sort** and the page size. A group says **Match** *all* or *any* **of these conditions** (*How conditions combine*). Inside a group you can add: - **Condition**: a **Field**, an **Operator** and a **Value**; - **Tags**: *Has any of the tags*, *Has all the tags* or *Has none of the tags*; - **Group**: a nested group with its own all/any. Groups nest up to **three levels**. Fields include the built-in columns (name, email, owner, creation date and so on) and every custom field (marked *custom*, addressed as `custom.`). ### Operators The operators offered depend on the kind of field (text, number, date, yes/no, choice, multi-choice): | Operator | Label | Value | | --- | --- | --- | | `equals` | is | One value | | `not_equals` | is not | One value | | `contains` | contains | Text | | `not_contains` | does not contain | Text | | `starts_with` | starts with | Text | | `ends_with` | ends with | Text | | `is_empty` | is empty | None | | `is_not_empty` | is not empty | None | | `gt` | greater than | Number or date | | `gte` | at least | Number or date | | `lt` | less than | Number or date | | `lte` | at most | Number or date | | `between` | between | **From** and **To** | | `in` | is one of | *Values separated by commas* | | `not_in` | is none of | *Values separated by commas* | ### Saved searches and segments A saved search stores the record type, the free text, the filter, the columns and the sort (not the page). It is evaluated **live** every time it is opened or used: a contact who starts matching the conditions is included automatically, one who stops matching is excluded. *Saved searches can be reused as segments in broadcasts and automations.* Deleting one has consequences: *Broadcasts or automations using it as a segment stop matching contacts.* Visibility: - **Shared with the workspace** (default): every member can see and use it; - **Only me**: visible only to the person who created it. ## Step by step ### Find a record with global search 1. Press ⌘K (Mac) or Ctrl+K (Windows, Linux), or select **Search…** in the top bar. 2. Type at least one character (*Search contacts, companies, notes…*). Results are grouped by **Contacts**, **Companies**, **Notes** and **Orders**. 3. Select a result to open it. ### Build an advanced search 1. Open **Contacts** (or **Companies**) and select **Advanced search**. 2. Choose **Match** *all* or *any*. 3. Select **Condition**, **Choose a field**, choose the **Operator**, enter the **Value**. 4. Add more conditions, a **Tags** condition or a nested **Group** as needed. Remove them with **Remove condition** or **Remove group**. 5. Choose the **Columns** shown in the list (*Columns shown in the list*). 6. The list updates. Navigate with **Previous page** and **Next page**; the counter shows `– of `. ### Save a search 1. With the search applied, select **Save search**. 2. Enter the **Name** and choose **Shared with the workspace** or **Only me**. 3. Save. You see *Search saved*. To change it later, open it, adjust the conditions and select **Update "``"** (*Search updated*). Use **Rename** to change its name. ### Use a saved search 1. Open **CRM** › **Saved searches**. The list shows each search with **Records**, **Conditions** and **Visibility** (*Create saved searches from the contact or company list.* when empty). 2. Select **Open** to see the matching records, or choose the saved search as the audience of a [broadcast](https://amabledata.com/docs/marketing/broadcasts) or in an [automation](https://amabledata.com/docs/marketing/automations). ### Delete a saved search Open the actions menu of the search (*Actions for ``*), delete it and confirm *Delete "``"?*. You see *Search deleted*. ## Reference | Limit | Value | | --- | --- | | Record types | Contacts, companies, orders (global search also notes) | | Free text | Up to 200 characters | | Conditions per group | 50 | | Nesting | 3 levels of groups | | Values of `is one of` / `is none of` | 500 | | Tags per tag condition | 1 to 100 | | Columns | 50 | | Page size | 1 to 500 | | Global search results | Up to 100 (default 20) | | Saved search name | 1 to 255 characters | | Saved search description | Up to 2,000 characters | | Default visibility | Shared with the workspace | ## Limits and permissions | Action | Permission | Roles | | --- | --- | --- | | Search, open and execute saved searches | `contacts:read` | All roles | | Create, update, rename and delete saved searches | `saved_searches:write` | Owner, Admin, Marketer, Sales, Analyst | A member sees shared searches and their own private ones. Anyone with `saved_searches:write` who can see a shared search can update or delete it. ## Troubleshooting | Symptom | Cause | Fix | | --- | --- | --- | | Global search finds nothing for part of a word | Matching is per word prefix | Type the beginning of the word. | | A condition offers fewer operators | Operators depend on the field kind | Use an operator valid for that type. | | A broadcast's audience changed size | Saved searches are evaluated live | Expected. Use a tag to freeze a list. | | A broadcast or automation stopped matching anyone | The saved search was deleted | Choose another segment. | | A colleague cannot see your saved search | It is **Only me** | Change the visibility to **Shared with the workspace**. | ## Related - [Record search](https://amabledata.com/docs/crm/record-search) - [Command palette](https://amabledata.com/docs/crm/command-palette) - [Tags](https://amabledata.com/docs/crm/tags) - [Custom fields](https://amabledata.com/docs/concepts/custom-fields) - [Broadcasts](https://amabledata.com/docs/marketing/broadcasts) --- # Folders Section: Core concepts URL: https://amabledata.com/docs/concepts/folders Summary: Organising automations and landing pages in nested folders: creating, renaming, moving, dragging and deleting folders, and the limits. **Folders** keep long lists tidy. They are available in two lists: **Automations** and **Landing pages**. Each of the two has its own folder tree; a folder of automations never contains landing pages, and vice versa. ## Overview - Where: the folder panel on the left of **Marketing** › **Automations** and **Marketing** › **Landing pages** (use **Show folders** to open it on small screens). - What: each automation or landing page is in **one folder** or **unfiled**. - Folders can be nested up to **5 levels**. Folders only organise: moving an item into a folder never changes how it works (a published automation keeps running, a published page stays online). ## How it works ### The tree | Entry | Shows | | --- | --- | | **All** | Every item of the list | | **Unfiled** | Items without a folder | | A folder | The items directly in it, or also those of its subfolders with **Include subfolders** | Each folder shows its item count (*`` items*): the items directly in it, and the total including subfolders. Folders are ordered by their position, then by name. The breadcrumb (*Current folder*) shows where you are; **Top level** is the root. ### Names Folder names are 1 to 120 characters and must be **unique among the folders of the same parent**, ignoring upper and lower case: you can have `2026` under both `Newsletters` and `Webinars`, but not two `Newsletters` at the top level. ### Deleting a folder - An **empty** folder is simply removed (*The folder is empty and will be removed.*). - A folder with content shows *This folder contains `` subfolders and `` items.* You can choose **Move its contents to `` and delete the folder**: subfolders and items move up one level (to the parent folder, or to the top level), then the folder is deleted. Items are never deleted with a folder. ## Step by step ### Create a folder 1. Open **Automations** or **Landing pages**. 2. In the folder panel, select **New folder** (top level) or open a folder's actions menu (*Actions for ``*) and select **New subfolder**. 3. Enter the **Folder name** and select **Create**. You see *Folder created*. ### Rename a folder Open the folder's actions menu, select **Rename**, edit the name and select **Save** (*Folder renamed*). ### Move items into a folder 1. Select one or more items in the list. 2. Choose **Move to…**. The dialog *Move `` items* (or *Move "``"*) asks you to *Choose the destination folder.* 3. Select the folder (or **Unfiled**) and confirm with **Move here**. You see *Moved `` items to ``*. You can also drag items onto a folder (*Drag to a folder*, *Drag items or folders here*). ### Move a folder Drag the folder onto another folder or onto **Top level**, or use **Move to…** in its actions menu (*Move folder "``"*). You see *Folder moved*. A folder cannot be moved into itself or into one of its subfolders (*A folder cannot be moved into itself*), and the result cannot be deeper than 5 levels (*Folders can be nested at most 5 levels deep*). ### Delete a folder 1. Open the folder's actions menu and select **Delete folder**. 2. Confirm *Delete "``"?*. For a folder with content, choose to move its contents to the parent first. 3. Select **Delete**. You see *Folder deleted*. ## Reference | Limit | Value | | --- | --- | | Lists with folders | Automations, Landing pages | | Maximum depth | 5 levels (top-level folders are level 1) | | Folder name | 1 to 120 characters, unique per parent (case-insensitive) | | Items moved in one action | Up to 500 | | Folders per item | One (or unfiled) | In the REST API the trees are `/automationFolders` and `/pageFolders`, and the item lists accept `folder_id` (a folder ID or `none` for unfiled) and `include_subfolders`. See the [API reference](https://amabledata.com/docs/developers/api-reference). ## Limits and permissions | Action | Automations | Landing pages | | --- | --- | --- | | See folders | `automations:read` | `pages:read` | | Create, rename, move, delete folders; move items | `automations:write` (Owner, Admin, Marketer) | `pages:write` (Owner, Admin, Marketer) | ## Troubleshooting | Message | Cause | Fix | | --- | --- | --- | | *Folders can be nested at most 5 levels deep* | The move or creation would exceed 5 levels | Move it higher in the tree. | | *A folder cannot be moved into itself* | You dropped a folder into itself or a subfolder | Choose another destination. | | A name is refused | A sibling folder already has that name (any case) | Choose another name. | | A folder cannot be deleted | It is not empty and you did not choose to move its contents | Choose **Move its contents to `` and delete the folder**. | | Some selected items did not move | They were deleted meanwhile | Refresh the list. | ## Related - [Automations](https://amabledata.com/docs/marketing/automations) - [Landing pages](https://amabledata.com/docs/landing-pages/overview) - [Roles and permissions](https://amabledata.com/docs/concepts/roles-and-permissions) --- # Money, dates and time zones Section: Core concepts URL: https://amabledata.com/docs/concepts/money-and-time-zones Summary: How amounts, currencies, days and time zones are handled everywhere: minor units, ISO 4217 currencies, the workspace and site time zones, day boundaries in reports and analytics. Two things are easy to get wrong in a CRM: money (rounding, currencies) and time (what "today" means). amabledata follows a few simple rules everywhere. Knowing them explains why a report and a dashboard can show slightly different totals for "yesterday", and why an API amount of `1999` means 19.99. ## Overview | Rule | Short version | | --- | --- | | Money is an integer | Every amount is stored in **minor units** (cents) next to an ISO 4217 currency code. | | No conversion | amabledata never converts between currencies. Totals are always per currency. | | One time zone per context | Times are stored as UTC instants and shown or grouped in a time zone chosen by the context: the workspace, the site, the report, the contact. | | Days are local | A "day" in a report or dashboard runs from local midnight to local midnight in the chosen time zone. | ## How it works ### Money in minor units An amount is an **integer number of the currency's minor unit**, never a decimal number: | Currency | Minor-unit digits | 19.99 is stored as | Example | | --- | --- | --- | --- | | EUR, USD, GBP and most currencies | 2 | `1999` | `price_minor: 1999` = 19.99 | | JPY, KRW, CLP, ISK, VND and others | 0 | — | `price_minor: 1999` = ¥1,999 | | BHD, IQD, JOD, KWD, LYD, OMR, TND | 3 | `19990` | `price_minor: 19990` = 19.990 | In the REST API, money fields end with `_minor` (`price_minor`, `unit_price_minor`, `subtotal_minor`, `discount_minor`, `tax_minor`, `shipping_minor`, `total_minor`, `amount_minor`, analytics `revenue_minor`). The app shows them formatted in your language. The largest accepted amount is 100,000,000,000 minor units (one billion in major units for a two-decimal currency), which keeps integer arithmetic exact. **Tax rates** are in **basis points**: `2200` means 22%, from `0` to `10000` (100%). ### Currencies - Codes are three uppercase letters from **ISO 4217**, limited to active circulating currencies (for example `EUR`, `USD`, `GBP`, `CHF`, `JPY`). Fund codes, precious metals and test codes are not accepted. - **Withdrawn** codes (for example `HRK`, `SLL`, `ZWL`, `ANG`, `BGN`, `CUC`) are rejected for new data: *unknown or withdrawn ISO 4217 currency*. - The **workspace default currency** (**Settings** › **General** › **Default currency**, same value as the e-commerce settings) is used for new products and orders. Default: `EUR`. - Each **analytics site** has its own **Currency**, used for revenue on its dashboards. Default: `EUR`. - A **Currency** custom field has its own currency setting. ### No currency conversion When records use several currencies, amabledata keeps them separate: - **Reports** compute money measures for **one currency** at a time. The report builder's **Currency** field defaults to the workspace currency (*Empty = the workspace currency.*). When the period also contains data in other currencies, the result says *Money values cover `` only; also data in: ``.* - Orders, payments and subscriptions keep their own currency forever. ### Time is stored in UTC Every timestamp (creation dates, sends, events, payments) is stored as an absolute instant in UTC and shown in the time zone of the context. Two exceptions are **calendar values without a time**: birthdays, anniversaries and **Date** custom fields (`YYYY-MM-DD`) are civil dates with no time zone; they never shift. **Date and time** custom fields require an offset (`Z` or `+02:00`) and are stored as UTC. ### Which time zone is used where | Context | Time zone | Default | Where to set it | | --- | --- | --- | --- | | Workspace | Scheduled sends, dates in emails and automations, day boundaries of reports and dashboard widgets in the app | `UTC` | **Settings** › **General** › **Time zone** | | Automations | Timers, send windows and date triggers of contacts without a time zone (after the step, trigger and automation zones) | `UTC` | **Workspace time zone** in any automation's **Automation settings** (needs `settings:manage`); see [Automations](https://amabledata.com/docs/marketing/automations#time-zones) | | Broadcast scheduled in each recipient's time zone | The contact's time zone, or the workspace's when the contact has none (or an invalid one) | — | The contact's time zone field | | Analytics site | Day boundaries and hours on the site's dashboards and insights | Your browser's time zone when you create the site (API: `UTC`) | Site **Time zone** | | Reports run in the app (report page, builder preview, dashboard widgets, CSV export) | Day boundaries of the report | The **workspace** time zone | **Settings** › **General** › **Time zone** | | Reports run through the API | Day boundaries | The `timezone` of the definition or of the request, otherwise `UTC` | API parameter | | Analytics queries through the API | Day boundaries | The `timezone` parameter, otherwise the site's | API parameter | | Ad spend reconciliation | The day of the ad account | The ad account's time zone (reconciled once a day from 03:00 local) | The ad platform | ### Day boundaries in reports A report range is a list of **whole local days**, both ends included: - `from` starts at local midnight of the first day in the report's time zone; - `to` ends at local midnight after the last day; - daylight saving changes are handled: a day can last 23 or 25 hours. Presets are computed from **today** in that time zone: | Preset | Range | | --- | --- | | **Today** | Today | | **Last 7 days** | Today and the 6 days before | | **Last 30 days** | Today and the 29 days before | | **Last 90 days** | Today and the 89 days before | | **This month** | The 1st of this month to today | | **Last month** | The whole previous month | | **This quarter** | The first day of this quarter to today | | **This year** | 1 January to today | | **Last year** | The whole previous year | | **Last 12 months** (default) | The 1st of the month 11 months ago to today | | **All time** | 1 January 2000 to today | | **Custom range** | Your `from` and `to` dates | With an **Interval** (granularity) of **day**, **week** or **month**, the range is split into buckets: weeks start on **Monday**, months on the 1st; the first and last bucket can be partial. A report can have at most 400 buckets (*shorten the range or use a coarser granularity*). **Comparisons**: **Previous period** is the same number of days just before the range; **Previous year** is the same dates one year earlier (a date that does not exist one year earlier, such as 29 February, is clamped to the last day of that month). ### Day boundaries in analytics Analytics dashboards group by the **site's time zone**. Query dates are `YYYY-MM-DD` in the query time zone (or full ISO date-times), and `to` is inclusive. Without dates, the API defaults to the last 7 days. Charts label each bucket in local time. ## Step by step ### Set the workspace time zone and currency 1. Open **Settings** › **General** › **Regional settings**. 2. Choose the **Time zone** (search a city, region or offset such as `UTC+2`) and the **Default currency**. 3. Save. Changing the workspace time zone affects sends scheduled from then on, and the day boundaries of reports the next time they run; changing the currency affects new products and orders only. ### Read a report in another time zone Reports in the app always use the workspace time zone, so two colleagues in different countries see the same totals for the same "Last 7 days". To get the days of another time zone, run the report through the API with an explicit `timezone`. ## Reference | Item | Value | | --- | --- | | Money format | Integer minor units + ISO 4217 code | | Max amount | 100,000,000,000 minor units | | Tax rate format | Basis points, 0–10000 | | Default workspace currency | `EUR` | | Default workspace time zone | `UTC` | | Default site currency | `EUR` | | Default report preset | Last 12 months | | Week start | Monday | | Max report buckets | 400 | | Time zone names | IANA (`Europe/Rome`, `America/New_York`, `UTC`) | ## Limits and permissions - Changing the workspace time zone and currency requires `settings:manage` (Owner, Admin). - Changing a site's time zone and currency requires `analytics:configure` (Owner, Admin, Marketer). ## Troubleshooting | Symptom | Cause | Fix | | --- | --- | --- | | An API amount looks 100 times too big | Amounts are in minor units | Divide by 10 to the power of the currency's digits. | | *unknown or withdrawn ISO 4217 currency* | A withdrawn or invalid code | Use the current code (for example `EUR` instead of `HRK`). | | *expected an ISO 4217 code* | Not three uppercase letters | Use `EUR`, not `eur` or `€`. | | A report and the analytics dashboard disagree on "yesterday" | Workspace time zone (reports) versus site time zone (analytics) | Set the site **Time zone** to the workspace one, or compare in the same time zone. | | Revenue in a report is lower than expected | Other currencies are excluded | Read the note listing the other currencies and run the report per currency. | | *more than 400 day buckets* | Long range with a fine interval | Use **week** or **month**. | | *unknown timezone* | Not a valid IANA name | Pick a value from the list. | ## Related - [General settings](https://amabledata.com/docs/settings/general) - [Commerce settings](https://amabledata.com/docs/ecommerce/commerce-settings) - [Reports](https://amabledata.com/docs/reports/reports) - [Sites](https://amabledata.com/docs/concepts/sites) - [Broadcasts](https://amabledata.com/docs/marketing/broadcasts) --- # Dashboard Section: CRM URL: https://amabledata.com/docs/crm/dashboard Summary: The home page of the workspace: a widget dashboard with sales, subscriptions, contacts, email and pipeline at a glance. ## Overview The **Dashboard** is the first page you see when you open a workspace. It is a grid of report widgets (KPI tiles, charts, a funnel and a table) that summarizes the health of the business: revenue, recurring revenue, new contacts, email activity, open deals, best-selling products and recent broadcasts. - **Where:** sidebar group **CRM** › **Dashboard**. - **URL:** `/t//dashboard`. Opening `/t/` (or signing in) redirects here. - **Who uses it:** every member. Each widget is shown only when the member's role can read the report behind it, so a sales member and an owner can see different widgets on the same page. The dashboard is built with the same engine as [report dashboards](https://amabledata.com/docs/reports/report-dashboards). The page shows one of two things: | What you see | When | | --- | --- | | **The workspace home dashboard** (badge **Home page**) | An owner or admin marked a shared report dashboard as **Workspace home page**. | | **The built-in default** (badge **Default home**) | No dashboard is marked as the workspace home. The server assembles a default layout for you. | ## How it works ### The built-in default home When no dashboard is set as the workspace home, the server builds a default dashboard on the fly. It is not stored and cannot be edited directly; you can only copy it (see [Customize the dashboard](#customize-the-dashboard)). It contains, in this order on a 12-column grid: | Widget | Type | Report | Measure | Period | Width | | --- | --- | --- | --- | --- | --- | | Monthly sales | KPI | Monthly sales | Revenue | This month, compared with the previous period | 3 of 12 | | Subscription MRR | KPI | Subscription MRR | MRR | This month, compared with the previous period | 3 of 12 | | New contacts | KPI | New contacts | Count | This month, compared with the previous period | 3 of 12 | | Email engagement | KPI | Email engagement | Sent | Last 30 days, compared with the previous period | 3 of 12 | | Daily sales | Line chart | Daily sales | Revenue | As in the report | 8 of 12 | | Opportunities by stage | Funnel | Opportunities by stage | Open count | As in the report | 4 of 12 | | Subscription MRR | Line chart | Subscription MRR | MRR | As in the report | 6 of 12 | | Revenue by product | Bar chart | Revenue by product | Revenue, top 8 rows | As in the report | 6 of 12 | | Broadcast performance | Table | Broadcast performance | Sent, open rate, click rate, top 5 rows | As in the report | 12 of 12 | Widget titles are the report names. Widgets whose report your role cannot read are dropped and the remaining ones flow up to fill the rows. For example, a member with the **Sales** role (which can read sales reports only) does not see the contact and email widgets. ### The workspace home dashboard An owner or admin can mark any shared report dashboard as **Workspace home page**. From then on every member sees that dashboard here instead of the built-in default. Only one dashboard can be the home at a time: marking a new one clears the flag on the previous one. A home dashboard is always shared with the whole workspace. ### Widgets from installed apps If an installed app adds dashboard widgets, they appear as cards below the report widgets. See [Apps](https://amabledata.com/docs/settings/apps). ### Loading and errors While the dashboard loads you see four placeholder tiles and a wide placeholder chart. A widget whose report fails shows **Could not load this widget.** inside its card; the rest of the dashboard keeps working. ## Step by step ### Customize the dashboard You cannot edit the built-in default, but you can save a copy of it and rearrange the copy. 1. Open **CRM** › **Dashboard**. The title reads **Dashboard** with the badge **Default home**. 2. Click **Customize** (top right). The tooltip reads "Save a copy of this dashboard to rearrange its widgets and make it the home page." The button is shown only if your role can create reports (permission `reports:create`). 3. In the **Customize** dialog fill in: - **Name** (required, up to 200 characters). Default: `Dashboard`. - **Shared with the workspace**. Off means only you see it ("Off: only you see it."). - **Workspace home page** (owners and admins only). "Shown on the dashboard page of every member (owners and admins)." Turning it on also forces **Shared with the workspace** on. 4. Click **Save**. A toast confirms **Dashboard saved** and you land on the new dashboard under **Reports** › **Dashboards**, where you can use **Edit layout**, **Add widget** and **Settings**. See [Report dashboards](https://amabledata.com/docs/reports/report-dashboards). If you are an owner or admin, both switches start turned on, so saving makes your copy the workspace home immediately. For other roles the copy starts private. ### Edit the workspace home dashboard When a stored dashboard is the home, the page header shows its name, the **Home page** badge and **Shared**. If you can edit it (you created it or you are an owner or admin, and your role can create reports) you see **Edit layout**. 1. Click **Edit layout**. Widgets become draggable (**Drag to move**) and resizable (**Drag to resize**), and the toolbar shows **Add widget**, **Settings** and **Done**. 2. Drag and resize widgets, add new ones with **Add widget**, or remove one from its menu. Every layout change is saved automatically; if saving fails you see **Could not save the layout**. 3. Use **Settings** to rename the dashboard, change sharing or remove the **Workspace home page** flag. 4. Click **Done**. ### Go back to the built-in default Open the home dashboard's **Settings** (owners and admins) and turn off **Workspace home page**, then **Save**. The dashboard page falls back to the built-in default for everyone. ### Open all dashboards Keyboard users can press Tab at the top of the page to reveal the link **All dashboards**, which opens **Reports** › **Dashboards**. Mouse users can use that sidebar item directly. ## Reference ### Header badges and buttons | Element | Meaning | | --- | --- | | **Dashboard** title | Shown for the built-in default. A stored home dashboard shows its own name. | | **Home page** badge | This dashboard is the workspace home. | | **Default home** badge | This is the built-in default, assembled by the server. | | **Shared** / **Only me** badge | Visibility of a stored dashboard. | | **Customize** | Copy the built-in default (needs `reports:create`). | | **Edit layout** | Edit a stored dashboard (owner of the dashboard, or owner/admin of the workspace; needs `reports:create`). | ### Empty state A stored dashboard without widgets shows "This dashboard has no widgets. Add one to get started." and, if you can edit it, an **Add widget** button. ## Limits and permissions | Action | Who | | --- | --- | | See the dashboard | Every role. The page needs `reports:read` or `reports:sales_read`; all built-in roles have at least one of them. | | See a single widget | Your role must be able to read the report's data source (for example `orders:read` for sales widgets, `opportunities:read` for the pipeline funnel). | | **Customize** (copy the default) | `reports:create`: owner, admin, analyst. | | Mark a dashboard as **Workspace home page** | `settings:manage`: owner, admin. | | **Edit layout** of the home dashboard | The member who created it, or an owner/admin, with `reports:create`. | A workspace can hold up to 200 report dashboards. Widgets live on a 12-column grid; a widget cannot extend past column 12. See [Roles and permissions](https://amabledata.com/docs/concepts/roles-and-permissions) for the full matrix. ## Troubleshooting | Symptom | Cause | Fix | | --- | --- | --- | | "You do not have access to reports." | Your role has neither `reports:read` nor `reports:sales_read` (custom API scopes, for example). | Ask an owner or admin to change your role. | | A colleague sees widgets that you do not | Widgets are filtered by the reports each role may read. | Expected. Ask for a role with wider read access if you need them. | | **Customize** is missing | Your role cannot create reports (marketer, sales, viewer). | Ask an analyst, admin or owner to customize it. | | The **Workspace home page** switch is missing | Only owners and admins can set the home. | Ask an owner or admin. | | "Could not load this widget." | The widget's report failed or its data source is not readable by you. | Open the report from the widget menu to see the detailed error. | | "Could not save the layout" | The layout change was rejected (for example a widget pushed past column 12). | Move the widget back inside the grid and try again. | ## Related - [Report dashboards](https://amabledata.com/docs/reports/report-dashboards) - [Reports](https://amabledata.com/docs/reports/reports) - [Roles and permissions](https://amabledata.com/docs/concepts/roles-and-permissions) - [Apps](https://amabledata.com/docs/settings/apps) --- # Contacts Section: CRM URL: https://amabledata.com/docs/crm/contacts Summary: The contact list: quick search, advanced filters, columns, saved searches, sorting, pagination and bulk actions. ## Overview **Contacts** is the list of every person in your workspace: leads, customers, subscribers, people who booked a call or filled a form. From here you find people, filter them, save filters as segments, apply tags in bulk, merge duplicates, archive contacts and start an import. - **Where:** sidebar group **CRM** › **Contacts**. - **URL:** `/t//contacts`. Two optional URL parameters exist: `?saved=` opens a saved search, `?tag=` starts filtered on contacts that have one tag (this is what **View contacts** on the [Tags](https://amabledata.com/docs/crm/tags) page uses). - **Who uses it:** every role can read contacts; creating, editing, tagging, merging and importing depend on the role (see [Limits and permissions](#limits-and-permissions)). Clicking a row opens the [contact page](https://amabledata.com/docs/crm/contact-detail). ## How it works The list is a live query on the server. Every time you type in the quick search, change a filter, change the sort or pick other columns, the page sends one query (after a 250 ms pause in typing) and shows the first page of results. The same query format powers [Companies](https://amabledata.com/docs/crm/companies), saved searches, and the segments of [broadcasts](https://amabledata.com/docs/marketing/broadcasts) and [automations](https://amabledata.com/docs/marketing/automations). See [Record search and filters](https://amabledata.com/docs/crm/record-search) for the full query builder reference. Archived (deleted) contacts and contacts merged into another one never appear in the list. The screen has four parts: 1. **Saved searches** sidebar on the left (screens at least 1024 px wide; on smaller screens it is hidden). 2. **Toolbar**: quick search, **Advanced search**, **Columns**, and on the right **Import** and **New contact**. 3. The **advanced search panel** (the query builder), shown when **Advanced search** is on. 4. The **table**, with a footer showing the range and the page buttons. ## Step by step ### Find a contact quickly 1. Type in the box **Search name, email, phone…** (up to 200 characters). 2. The list refreshes as you type. Every word you type must match the beginning of a word in the contact. Accents are ignored, so `jose` finds `José`. The quick search looks at: first and last name, preferred and middle name, every email, every phone (as written and digits only), company name, job title, website, the city, region and country of the addresses, and the values of non-sensitive text-like custom fields (text, text area, name, email, phone, website, dropdown, radio, list box, drilldown, state). ### Filter with the advanced search 1. Click **Advanced search**. The panel opens under the toolbar. 2. Click **Condition** to add a field condition, choose a field (for example **Email status**), an operator (for example **is**) and a value. 3. Click **Tags** to add a tag condition (**Has any of the tags**, **Has all the tags** or **Has none of the tags**). 4. Click **Group** to nest a group of conditions with its own **Match all/any of these conditions**. 5. The **Advanced search** button shows a badge with the number of complete conditions. Incomplete conditions (no field, no value) are ignored until you finish them. The quick search and the advanced filter combine: a contact must match both. Full details of fields and operators: [Record search and filters](https://amabledata.com/docs/crm/record-search). ### Choose the columns 1. Click **Columns**. A panel titled "Columns shown in the list" opens. 2. Tick or untick fields. Custom fields carry a **custom** badge. 3. The table updates at once. The name column is always first and cannot be removed. Your choice is remembered in this browser, per workspace. Loading a saved search that stores columns replaces your current choice. Default columns: **Email**, **Phone**, **Company name**, **Owner**, **Tags**, **Created**. ### Sort Click a column header to sort by it; click again to reverse. Text columns start ascending, number and date columns start descending. Sorting happens on the server over all matching contacts, not only on the visible page. The default order is **Created**, newest first. **Tags** and **Emails** cannot be used for sorting. ### Move between pages The list shows 50 contacts per page. The footer reads, for example, `1–50 of 1,284`. Use the left and right arrows (**Previous page**, **Next page**). Any change to the search, filters, columns or sort goes back to the first page and clears the selection. ### Create a contact 1. Click **New contact**. 2. The dialog **New contact** says "Add the basics now; everything else can be edited on the contact page." Fill in any of: - **First name** - **Last name** - **Email** - **Phone** (country code picker plus number; "Enter 4–15 digits including the country code." appears if the number is not valid) - **Time zone** - **Language** - Every contact [custom field](https://amabledata.com/docs/settings/custom-fields) marked **Required**, each label followed by `*`. These must be filled in; the other custom fields are edited on the contact page. 3. Click **Create**. It is enabled once you enter a first name, a last name or an email. A missing or invalid required custom field is shown in red under the field and nothing is created. 4. A toast confirms **Contact created** and the new contact page opens. New contacts created here have **Source type** `Manual` and **Email status** `Unknown`. ### Apply or remove tags on many contacts 1. Tick the checkbox of each contact (hold Shift to select a range; the header checkbox selects every row on the page). 2. In the selection bar ("N selected") click **Apply tags** or **Remove tags**. 3. The dialog shows "N selected contact(s)." Pick one or more tags (type to search; with permission you can also create a tag with **Create “name”**). 4. Click **Apply** or **Remove**. A toast says "Tags updated on N contact(s)", counting only contacts that actually changed. Each tag added or removed writes a **Tag applied** or **Tag removed** entry in the contact's timeline and can trigger automations. ### Merge duplicates 1. Select two or more contacts and click **Merge** in the selection bar. 2. In the **Merge** dialog pick the **Contact to keep** (marked **kept**). You can remove a candidate with its **×** button or add more with **Add a contact to merge** (search by name or email, at least 2 characters, up to 8 results). 3. Click **Merge N contact(s)**. A toast confirms **Contacts merged**. What merging does is described on the [contact page](https://amabledata.com/docs/crm/contact-detail#merge-this-contact-with-others). ### Archive (delete) contacts 1. Select contacts and click **Delete** in the selection bar, or use **Delete** in a row's menu. 2. Confirm "Delete N items?" ("You can undo right after."). 3. The rows disappear and a bar at the bottom shows "N items deleted" with **Undo** for 6 seconds. **Undo** restores the contacts. Deleting archives the contact: it leaves lists, searches and segments, but its data is kept. Contacts that were merged into another one cannot be restored. ### Import contacts Click **Import** to open the [import wizard](https://amabledata.com/docs/crm/importing-contacts). ## Reference ### Toolbar | Element | What it does | Shown to | | --- | --- | --- | | **Search name, email, phone…** | Full-text quick search. | Everyone | | **Advanced search** | Shows or hides the query builder; badge = number of conditions. | Everyone | | **Columns** | Choose visible columns. | Everyone | | **Import** | Opens the import wizard. | `contacts:import` | | **New contact** | Opens the create dialog. | `contacts:write` | ### Columns you can show Built-in fields: **First name**, **Middle name**, **Last name**, **Preferred name**, **Prefix**, **Suffix**, **Job title**, **Website**, **Spouse name**, **Time zone**, **Language**, **Email** (primary), **Emails** (all), **Phone** (primary), **Company**, **Company name**, **Owner**, **Lead source**, **Source type**, **Email status**, **UTM source**, **UTM medium**, **UTM campaign**, **UTM term**, **UTM content**, **Score**, **Birthday**, **Anniversary**, **City**, **Region**, **Postal code**, **Country** (from the first address), **Created**, **Updated**, **Tags**, plus every contact custom field. On narrower screens the 3rd and 4th chosen columns hide below 1024 px and the following ones below 1280 px. ### Bulk actions | Action | Permission | Notes | | --- | --- | --- | | **Apply tags** | `contacts:write` | Adds the chosen tags to the selected contacts. | | **Remove tags** | `contacts:write` | Removes them. | | **Merge** | `contacts:merge` | Needs at least two selected contacts. | | **Delete** | `contacts:write` | Archives, with **Undo** for 6 seconds. | Selection only covers rows on the current page. ### Email status values | Value | Meaning | | --- | --- | | Unknown | Default for new contacts. | | Single opt-in | Agreed to receive marketing. | | Double opt-in | Confirmed the subscription. | | Unsubscribed | Opted out. Marketing emails are skipped. | | Bounced | The address bounced. All emails are skipped. | | Complained | Marked an email as spam. All emails are skipped. | | Not marketable | Must not receive marketing. Marketing emails are skipped. | ### Source type values **Manual**, **API**, **Import**, **Form**, **Booking**, **Other**. ### Empty state When nothing matches, the table shows "Nothing here yet." ### Export The contact list has no export button. To export contact data as CSV, use a contacts report in [Reports](https://amabledata.com/docs/reports/reports) (needs `reports:export`). ## Limits and permissions | Permission | Roles | Lets you | | --- | --- | --- | | `contacts:read` | All roles | Open the list, search, filter, open saved searches. | | `contacts:write` | Owner, admin, marketer, sales | Create, archive, bulk tag. | | `contacts:merge` | Owner, admin, marketer, sales | Merge. | | `contacts:import` | Owner, admin, marketer | Import. | | `saved_searches:write` | Owner, admin, marketer, sales, analyst | Save, rename, update and delete saved searches. | | `contacts:read_sensitive` | Owner, admin, marketer, sales, analyst | See unmasked sensitive custom fields and filter on them. | Limits: 50 rows per page; quick search up to 200 characters (only the first 10 words count); a contact can have up to 5 emails, 5 phones and 3 addresses; merge up to 10 contacts into one at a time. ## Troubleshooting | Symptom | Cause | Fix | | --- | --- | --- | | The **Saved searches** sidebar is missing | The window is narrower than 1024 px. | Widen the window, or open **CRM** › **Saved searches**. | | A contact I know exists does not show up | It is archived or merged, or the quick search word does not match the start of a word. | Clear the filters; search with the beginning of the name or email. | | **Create** stays disabled | No first name, last name or email. | Fill in at least one of them. | | "This field is required." under a custom field in **New contact** | A contact custom field is marked **Required**. | Fill it in, or make the field optional in [Custom fields settings](https://amabledata.com/docs/settings/custom-fields). | | "Enter 4–15 digits including the country code." | The phone number is not a valid international number. | Pick the right country code and type the number without the leading zero if your country drops it. | | "Your role does not allow this action. Ask an admin of the workspace." | The action needs a permission your role lacks. | Ask an owner or admin. | | "… is a sensitive field" error after adding a filter | You filtered or sorted on a sensitive custom field without `contacts:read_sensitive`. | Remove the condition, or ask for a role that can read sensitive data. | | "Could not delete. Nothing was changed." | The archive request failed. | Retry; check your connection. | | Columns reset after opening a saved search | The saved search stores its own columns. | Change the columns again, or update the saved search. | ## Related - [Contact page](https://amabledata.com/docs/crm/contact-detail) - [Importing contacts](https://amabledata.com/docs/crm/importing-contacts) - [Record search and filters](https://amabledata.com/docs/crm/record-search) - [Tags](https://amabledata.com/docs/crm/tags) - [Search and saved searches](https://amabledata.com/docs/concepts/search-and-saved-searches) - [Contacts and identity](https://amabledata.com/docs/concepts/contacts-and-identity) - [Roles and permissions](https://amabledata.com/docs/concepts/roles-and-permissions) --- # Contact page Section: CRM URL: https://amabledata.com/docs/crm/contact-detail Summary: Everything about one person: details, timeline, tags, notes, tasks, appointments, deals, orders, form submissions, emails, automations, website journey and custom fields. ## Overview The contact page gathers everything amabledata knows about one person on a single screen, and lets you edit it in place. - **Where:** open any row in **CRM** › **Contacts**, a contact link on a deal, task, calendar entry or company, or a result of the [command palette](https://amabledata.com/docs/crm/command-palette). - **URL:** `/t//contacts/`. The open tab is kept in the URL as `?tab=` (for example `?tab=notes`), so you can bookmark or share a link that lands on a specific tab. The **Activity** tab has no parameter. - **Who uses it:** everyone with `contacts:read`. Tabs and edit buttons appear according to your role. The page title in the browser tab is the contact's name. ## How it works The page is made of, from top to bottom: 1. **Header** with avatar, name, subtitle and actions. 2. **Details** card with the personal data, emails, phones, addresses and dates. 3. **App cards** added by installed apps (only when an app provides them). 4. **Conversations** card (only when the shared inbox is in use). 5. A line "Created *date* · updated *date*". 6. The **tab strip** with the timeline and all related records. ### Inline editing Every field shows its value and, if you can edit (`contacts:write`), a pencil button (**Edit *field name***) that appears on hover. Click it to turn the value into an editor: - Enter or the check button saves; Esc or the **×** button cancels. - The value is validated before saving; the error appears under the editor. - A successful save shows the toast **Saved**. - Emptying a text field and saving clears it. ### The display name The header name is first name plus last name. If both are empty the first email is used, and if there is no email the page shows **Unnamed contact**. The subtitle shows job title and company name (separated by ·), or the primary email when both are empty. The avatar shows the initials. ### The activity timeline Every change made by a person, an API key, an app or the system writes a domain event. Events that concern a contact are also written to its timeline, newest first. Each entry shows a label, a short detail, the date and who did it (a member's name, or **API** for API keys). See [Timeline entries](#timeline-entries) for the full list. ## Step by step ### Edit the details 1. Hover a field in the **Details** card and click its pencil. 2. Change the value and press Enter. The **Details** card has three columns: | Column | Fields | | --- | --- | | Personal | **Prefix**, **First name**, **Middle name**, **Last name**, **Suffix**, **Preferred name**, **Job title**, **Company** | | Reachability | **Emails**, **Phones**, **Address**, **Website** | | Dates and locale | **Birthday**, **Anniversary**, **Spouse name**, **Time zone**, **Language** | **Company** opens a company picker (type to search). The company name links to the [company page](https://amabledata.com/docs/crm/companies). ### Manage emails 1. Click the pencil next to **Emails**. 2. Edit addresses, set a **Label** (**Work**, **Personal**, **Other** or none), remove one with **×**, or add one with **Add email** (up to 5). 3. Press Enter. Every address must be valid, otherwise "Enter a valid email address." is shown. The first address is the **primary** one (badge **primary**): it is used for sending emails, for matching on import and as the **Email** column. There is no reorder control: to make another address primary, remove the addresses listed above it and add them again with **Add email**, so they end up after it. Duplicates (same address ignoring case) are dropped on save. Each address links to `mailto:`. ### Manage phones 1. Click the pencil next to **Phones**. 2. For each number pick the **Country code**, type the **Number**, optionally an extension (`ext.`) and a **Phone type** (**Mobile**, **Work**, **Home**, **Fax**, **Other**). 3. Use **Add phone** (up to 5) or **×** to remove, then press Enter. Numbers are normalized to international format using the workspace default country (see [General settings](https://amabledata.com/docs/settings/general)). An invalid number shows "Enter 4–15 digits including the country code." The display shows the country flag and links to `tel:`. ### Manage addresses 1. Click the pencil next to **Address**. The editor expands to the full row. 2. Choose the **Country**, then type in **Search address (street, number, city)…** and pick a suggestion to fill the fields, or fill **Street**, **Number**, **Street (line 2)**, **Postal code**, **City** and **Region / province** by hand. 3. Set the **Address type**: **Billing**, **Shipping** or **Other**. 4. Use **Add address** (up to 3) or **Remove**, then save. The country must be a 2-letter code ("Use a 2-letter country code (e.g. IT)."). Address suggestions come from OpenStreetMap or from an installed address app (see [Integrations](https://amabledata.com/docs/settings/integrations)). When nothing is found you see "No address found: fill in the fields by hand." and, when the service is down, "Address search is unavailable right now: fill in the fields by hand." The street number is shown before the street for countries that write it that way (for example US, GB, FR, AU). ### Add a note 1. Open the **Notes** tab. 2. Write in the rich-text editor ("Write a note…"). You can format text and add images. 3. Click **Add note**. A toast confirms **Note added**. Each note shows its date and author. Use **Pin** / **Unpin** to keep a note on top (pinned notes have a highlighted border), **Edit** to change it (then **Save** or **Cancel**), and the trash button (**Delete note**) to delete it right away, without confirmation. Notes are sorted pinned first, then newest first, 25 at a time with **Load more**. A note can be up to 256 KB. Note text is searchable from the [command palette](https://amabledata.com/docs/crm/command-palette). ### Add a task 1. Open the **Tasks** tab. 2. Type the title in **New task…**, optionally pick a **Due** date. 3. Click **Add**. A toast confirms **Task created**. A task created here is linked to the contact and due at 09:00 (your local time) on the chosen day. Tick the checkbox to complete it ("Mark “title” as done or open"); tick again to reopen it. Overdue open tasks show the due date in red. The row also shows the assignee and the priority when it is not **Normal**. For more options use [Tasks and calendar](https://amabledata.com/docs/crm/tasks-and-calendar). ### Schedule an appointment 1. Open the **Appointments** tab. 2. Type the title in **New appointment…**, pick the **Start** date and time and the **Duration (minutes)** (default 30, minimum 5, step 5). 3. Click **Add**. A toast confirms **Appointment scheduled**. The appointment is linked to the contact and owned by you. The list shows title, start and a status badge (**Completed** or **Cancelled**) when it is not **Scheduled**. Appointments booked by the contact through a [booking page](https://amabledata.com/docs/bookings/bookings) appear here too. ### Create a deal for the contact 1. Open the **Deals** tab. 2. Type the title in **New deal…** and an optional **Value** (decimal; comma or dot). As soon as you type a title, the deal [custom fields](https://amabledata.com/docs/settings/custom-fields) marked **Required** appear below (each label followed by `*`): fill them in. 3. Click **Add**. A missing or invalid required value is shown in red under its field and nothing is created; otherwise a toast confirms **Deal created**. The deal goes to the first open stage of the default pipeline, in EUR, owned by you. Each row shows the deal title (link to the deal), its stage badge and value. To choose pipeline, stage or currency, create it from [Deals](https://amabledata.com/docs/crm/deals). ### Tag the contact 1. Open the **Tags** tab. 2. In **Add tag** search and pick one or more tags (up to 100 at a time). With `tags:write` you can create a new tag with **Create “name”**. 3. Click **Apply**. A toast confirms **Tags applied**. The list shows each tag (click it to see every contact with that tag), when it was applied and by whom. Remove one with its **×** button (**Remove tag *name***). Use **Search this contact's tags** to filter; 50 tags load at a time with **Load more**, then "All tags loaded." appears. ### Add the contact to an automation 1. Open the **Automations** tab. 2. In **Choose a published automation** search ("Search published automations…") and pick one. 3. Click **Add to automation**. A toast confirms **Contact added**. To take the contact out of an active automation click **Remove from automation** on its row and confirm "Remove the contact from "*name*"?" ("Pending steps are cancelled. The contact can be added again later."). A toast confirms **Contact removed**. See [Automations](https://amabledata.com/docs/marketing/automations). ### Merge this contact with others 1. Click **Merge** in the header. 2. The dialog starts with this contact. Add the duplicates with **Add a contact to merge** (search by name or email, at least 2 characters). 3. Pick the **Contact to keep** and click **Merge N contact(s)**. If you keep another contact, the page moves to it. What happens on merge: - Empty fields of the kept contact (names, prefix, suffix, job title, company, birthday, anniversary, website, spouse name, time zone, language, owner, lead source, UTM values) are filled from the others, in the order they are listed. - **Score** becomes the highest score among them. - Emails and phones are combined without duplicates, up to 5 each, the kept contact's ones first. - Addresses are copied from the first other contact that has any, only if the kept contact has none. - Tags are combined. - Custom fields that are empty on the kept contact are filled; existing values are kept. - Notes, tasks, appointments, deals, timeline entries and signers of signature requests move to the kept contact; app data and conversations are merged too. - The other contacts are archived and marked as merged. They cannot be restored. Automations they were in end with "contact merged into another". - The kept contact's timeline gets **Contacts merged**. You can merge up to 10 contacts into one at a time. ### Archive the contact 1. Click **Delete** in the header. 2. Confirm "Delete *name*?" ("You can undo right after."). 3. You go back to the contact list. The toast "*name* deleted" offers **Undo** to restore the contact and reopen it. ## Reference ### Header actions | Button | Permission | Effect | | --- | --- | --- | | App actions (one per app) | Installed app with a contact action | Opens the app's screen in a dialog for this contact. | | **Merge** | `contacts:merge` | Opens the merge dialog. | | **Delete** | `contacts:write` | Archives the contact, with undo. | ### Tabs Tabs appear in this order. A number next to a tab is the count of related records (hidden when zero). | Tab | Shows | Permission to see | Badge | | --- | --- | --- | --- | | **Activity** | The timeline, 30 entries at a time with **Load more**. Empty: "No activity yet." | — | — | | **Tags** | The contact's tags. Empty: "This contact has no tags yet." | — | Number of tags | | **Notes** | Notes editor and list. Empty: "No notes yet." | — | Number of notes | | **Tasks** | Quick add and list. Empty: "No tasks." | `tasks:read` | Open tasks | | **Appointments** | Quick add and list. Empty: "No appointments." | `tasks:read` | Appointments | | **Deals** | Quick add and list. Empty: "No deals." | `opportunities:read` | Deals | | **Orders** | Orders and subscriptions panel. Empty: "No orders for this contact." | `orders:read` | Orders | | **Signatures** | Documents sent to the contact for signature. Empty: "No documents sent to this contact for signature." | `esign:read` | Signature requests the contact signs in | | **Form submissions** | Every form the contact submitted. Empty: "This contact has not submitted any form yet." | `forms:read` | Submissions | | **Emails** | Every email sent to the contact. Empty: "No emails sent to this contact yet." | — | Emails | | **Automations** | Current and past automation runs. | `automations:read` | Active / total | | **Journey** | The website journey panel. | `analytics:journey_read` | — | | **Owner and marketing** | Owner, email status, lead source, source type, score, UTM values. | — | — | | Custom field tabs | One tab per custom field layout tab that has fields, then **Other** for fields without a group. | — | — | Quick-add forms in the tabs appear only with the write permission of that record type (`contacts:write` for notes and tags, `tasks:write` for tasks and appointments, `opportunities:write` for deals, `automations:write` for automations). ### Owner and marketing fields | Field | Editor | Values | | --- | --- | --- | | **Owner** | Member picker | Any workspace member, or none. Assigning writes **Owner assigned**. | | **Email status** | List | Unknown, Single opt-in, Double opt-in, Unsubscribed, Bounced, Complained, Not marketable. Email sending updates it automatically on unsubscribes, bounces and spam complaints. | | **Lead source** | List | Lead sources of the workspace (created by imports or the API), or none. | | **Source type** | List | Manual, API, Import, Form, Booking, Other. | | **Score** | Text | Whole number from -1,000,000 to 1,000,000 ("Enter a whole number."). Changing it writes **Score changed**. | | **UTM source / medium / campaign / term / content** | Text | Up to 255 characters each. | ### Field limits | Field | Limit | | --- | --- | | First, middle, last, preferred name, spouse name | 100 characters | | Prefix, suffix | 30 characters | | Job title | 255 characters | | Website | 2,048 characters | | Time zone | IANA time zone, chosen from a list | | Language | Language code, chosen from a list | | Birthday, anniversary | Calendar date | | Emails | Up to 5, each up to 254 characters | | Phones | Up to 5; extension up to 10 characters | | Addresses | Up to 3; street and line 2 up to 255, number up to 20, city and region up to 100, postal code up to 20 | ### Orders tab Shows **Collected:** (paid minus refunded, per currency), the number of orders, and the latest 20 orders with number, date, status and total (link to each order). With more than 20, **View all orders** opens the order list filtered on the contact. Active subscriptions are listed below with status, amount, interval and next billing date. With `orders:write` a **New order** button opens a new order for the contact. See [Orders](https://amabledata.com/docs/ecommerce/orders). ### Signatures tab Lists the signature requests in which the contact is one of the signers, newest first, 20 at a time (more load at the bottom of the list). Each row shows the document name, the date it was sent, the party the contact signs as, "*n* of *total* signed" and the request status (**Sent**, **Partially signed**, **Completed**, **Declined**, **Voided**, **Expired**). Click a row to open the request. With `esign:write`, and when the contact has an email address, **Send for signature** opens the send dialog with the contact already chosen as signer of the first party. See [Send a document for signature](https://amabledata.com/docs/signatures/sending) and [Signature requests](https://amabledata.com/docs/signatures/requests). ### Form submissions tab Each row shows the form name (or **deleted form**), the date, the page it was sent from ("on *page*"), whether the submission **created the contact**, and a status: **Pending**, **Processed** or **Failed**. With `forms:submissions_read` click a row to open a drawer with **Submitted values** (sensitive fields show a lock, "Sensitive field, hidden for your role"), the **Source** and tracking data, and **Open in the form submissions**. Without that permission you see "Your role can see the submissions but not the submitted values." See [Form submissions](https://amabledata.com/docs/forms/submissions). ### Emails tab Every email sent to the contact, newest first: subject (or **(no subject)**), date, source (**Automation**, **Broadcast**, **Single email**, **Transactional**, **Test**), recipient address, open and click counts, and a delivery status: **Queued**, **Sent**, **Delivered**, **Deferred**, **Bounced**, **Dropped**, **Spam complaint**, **Skipped**, **Blocked**, **Failed** (problem statuses in red; hover for the reason). ### Automations tab Two sections, **In progress** and **History**. Each run shows the automation name (link), its version, the automation status if it is not active (**Draft**, **Stopped**, **Unpublished changes**, **Deleted**), the run status (**Active**, **Completed**, **Removed**, **Failed**), "Entered *date*" with how (**by a goal**, **added manually**, **from another automation**), the end date, the current position ("Now at *step*" with "next action *date*", "waiting for a goal", "paused (sending limit)" or "suspended (automation stopped)"), the goals reached and the outcome (for example "completed", "removed manually", "contact merged into another"). Empty states: "The contact is not in any automation right now." and "No past automations." When there are no published automations the picker says "There are no published automations yet." ### Journey tab The **Website journey** panel shows what the contact did on your tracked websites, across every site and device linked to them: - **First visit** date and site, with channel, source, campaign and entry page. - Totals: **Sessions**, **Pageviews**, **Goals**, **Revenue**, **Orders**, **Emails** (opened · clicked). - **First touch** and **Last non-direct touch**. - **Time to conversion** and the **Prediction** score (also shown as "Conversion score N/100" in the panel header). - **Sources**, **Top pages** and **Goals** (top 6 each). - **Funnel and ad touches**, **Merged visitors** (the same person recognized on another device or browser) and **Tags** from tracking. - **Linked visitors**: visitor IDs linked to the contact (hover for how they were linked: form submission, booking, email click, site login / identify, order, API). Click one to open the visitor. - **Timeline** of visits, completed goals, payments, emails, orders, forms, bookings and identifications. With no linked activity you see "No website activity linked to this contact yet" and "Visitors are linked to contacts when they submit a form, click a tracked email link or are identified by your site." If web analytics is not set up yet the tab says "The visitor journey of this contact will appear here once web analytics is set up." Full explanation: [Journeys](https://amabledata.com/docs/ads/journeys). ### Custom field tabs Custom fields defined for contacts appear as their own tabs, following the layout configured in [Custom fields settings](https://amabledata.com/docs/settings/custom-fields): one tab per layout tab, with its groups as sections, plus **Other** for fields without a group. A required field shows `*`; a sensitive field shows a lock. Sensitive values are masked for roles without `contacts:read_sensitive` and cannot be edited by them. Validation messages include "This field is required.", "At most N characters.", "Enter a number.", "Choose one of the available options." and the other type-specific messages listed in [Custom fields](https://amabledata.com/docs/concepts/custom-fields). When a tab has no fields it shows "No custom fields yet." ### Conversations card Shown when you have `conversations:read` and the workspace has a channel or the contact has conversations. It lists the contact's conversations ("No conversations with this contact yet.") and, with `conversations:write`, **New message** to start one. See [Inbox](https://amabledata.com/docs/conversations/inbox). ### Timeline entries | Entry | Produced by | | --- | --- | | Contact created / updated / archived / restored | Creating, editing (detail lists the changed fields), deleting and undoing a delete. | | Contacts merged | A merge into this contact. | | Tag applied / Tag removed | Tags added or removed by anyone (detail: tag name). | | Score changed | A new score. | | Owner assigned | A new owner. | | Note added / Note edited / Note deleted | Notes. | | Task created / updated / completed / reopened / deleted | Tasks linked to the contact. | | Appointment scheduled / updated / cancelled / deleted | Appointments. | | Appointment booked / Appointment rescheduled | Booking pages (detail: start time). | | Deal created / updated / moved to another stage / won / lost / deleted | Deals whose **Contact** is this contact. | | Form submitted | Form submissions (detail: first values). | | Document sent for signature / Document signed / Document signed by every party / Signature declined | [Signatures](https://amabledata.com/docs/signatures/overview): the invitation is sent to the contact, the contact signs, every party has signed (written on the timeline of each signer), the contact declines (detail: document · party · reason). | | Email sent / delivered / opened / link clicked / bounced / marked as spam / Unsubscribed from emails | Email sending (detail: subject, URL or reason). | | Order created / paid / cancelled; Payment recorded / failed; Refund recorded | E-commerce (detail: order number and amount). | | Subscription started / upgraded / downgraded / renewed / set to cancel / reactivated / paused / past due / ended; Trial started / converted | Subscriptions. | | Conversation started / assigned / closed / reopened; Message received / sent / status updated | Shared inbox. | Entry types this version does not know are shown with a readable fallback label built from the event name. ## Limits and permissions | Action | Permission | | --- | --- | | Open the page, see Activity, Tags, Notes, Emails, Owner and marketing, custom fields | `contacts:read` | | Edit fields, add/edit/delete notes, apply/remove tags, delete | `contacts:write` | | Create tags from the picker | `tags:write` | | Merge | `contacts:merge` | | See unmasked sensitive custom fields | `contacts:read_sensitive` | | Tasks and Appointments tabs / quick add | `tasks:read` / `tasks:write` | | Deals tab / quick add | `opportunities:read` / `opportunities:write` | | Orders tab / **New order** | `orders:read` / `orders:write` | | Signatures tab / **Send for signature** | `esign:read` / `esign:write` | | Form submissions tab / submitted values | `forms:read` / `forms:submissions_read` | | Automations tab / add and remove | `automations:read` / `automations:write` | | Journey tab | `analytics:journey_read` | See [Roles and permissions](https://amabledata.com/docs/concepts/roles-and-permissions). ## Troubleshooting | Symptom | Cause | Fix | | --- | --- | --- | | "This record does not exist or was deleted." | The contact was archived or merged, or the link is wrong. | Search for it; a merged contact lives on in the contact it was merged into. | | A tab I expect is missing | Your role lacks the tab's permission. | See the tab table above. | | "Enter a valid email address." | One of the emails is malformed. | Fix or remove it. | | "Enter 4–15 digits including the country code." | A phone is not a valid international number. | Pick the country code and retype the number. | | "Use a 2-letter country code (e.g. IT)." | Country of an address is not a 2-letter code. | Choose it from the country list. | | "Enter a whole number." on Score | Decimals or text in **Score**. | Use an integer. | | "contact was merged into … and cannot be restored" | **Undo** or restore on a merged contact. | Open the surviving contact instead. | | "Some values are not valid." | The server rejected a value. | Check the field mentioned in the error. | | "pipeline_id: no pipeline exists yet; create one first" when adding a deal | The workspace has no pipeline. | An owner or admin creates one in [Pipelines](https://amabledata.com/docs/settings/pipelines). | | "This field is required." under a custom field when adding a deal | A deal custom field is marked **Required** and must be filled at creation. | Fill it in, or make the field optional in [Custom fields settings](https://amabledata.com/docs/settings/custom-fields). | | The journey tab says web analytics is not set up | No tracker installed. | Install the tracker: [Install the tracker](https://amabledata.com/docs/analytics/install-tracker). | ## Related - [Contacts](https://amabledata.com/docs/crm/contacts) - [Companies](https://amabledata.com/docs/crm/companies) - [Deals and pipelines](https://amabledata.com/docs/crm/deals) - [Tasks and calendar](https://amabledata.com/docs/crm/tasks-and-calendar) - [Tags](https://amabledata.com/docs/crm/tags) - [Journeys](https://amabledata.com/docs/ads/journeys) - [Signatures](https://amabledata.com/docs/signatures/overview) - [Custom fields](https://amabledata.com/docs/concepts/custom-fields) - [Contacts and identity](https://amabledata.com/docs/concepts/contacts-and-identity) --- # Importing contacts Section: CRM URL: https://amabledata.com/docs/crm/importing-contacts Summary: Bring contacts in from a CSV file: file format, column mapping, duplicate matching, tags, custom fields, results and errors. ## Overview The import wizard loads contacts from a CSV file into the workspace. It creates new contacts, updates existing ones matched by email, creates missing companies, lead sources and tags on the fly, and reports every row it could not import. - **Where:** **CRM** › **Contacts** › **Import** (toolbar, top right). - **URL:** `/t//contacts/import`. - **Who can use it:** roles with `contacts:import` (owner, admin, marketer). Others see a permission notice. The wizard has four steps, shown as numbered pills at the top: **1. Upload**, **2. Map columns**, **3. Import**, **4. Result**. ## How it works 1. In the browser, the wizard reads only the first 64 KB of the file to show you the header and the first five rows, and guesses the mapping. 2. When you click **Start import**, amabledata creates an import job with your mapping and options, then streams the whole file to the server. 3. The server reads the file as it arrives and processes it in batches of 250 rows. Each row is validated in full before anything is written; a bad row is counted and reported but never stops the import. 4. The wizard polls the job every second to show progress, and shows the result when the upload finishes. ### File format | Property | Requirement | | --- | --- | | Type | CSV (`.csv`, `text/csv`) | | Header | The first row must be a header row with column names. | | Separator | Comma, semicolon or tab. Detected automatically from the header line: tab if it has more tabs than commas and semicolons, semicolon if it has more semicolons than commas, otherwise comma. | | Quoting | Standard CSV quoting: fields in double quotes may contain separators and line breaks; `""` inside quotes is a literal quote. | | Line endings | LF or CRLF. | | Encoding | UTF-8. A leading byte order mark (BOM) is ignored. Save files from spreadsheet apps as "CSV UTF-8". | | Size | Up to 50 MB. | | Rows | Up to 100,000 data rows. | | Columns | Up to 500 per row. | | Cell length | Up to 100,000 characters per cell. | Completely empty rows are skipped and not counted. Leading and trailing spaces around values and headers are removed. ### Duplicate matching With **Update contacts with the same email** turned on (the default), each row is matched against existing contacts by the first email column of the row (the one mapped to **Email**, or **Email 2** / **Email 3** if **Email** is empty). The match: - is case-insensitive, - compares with every email of every contact (not only the primary one), - ignores archived and merged contacts, - picks the oldest matching contact if several share the address. Rows without any email are always created as new contacts. With the option turned off, every row creates a new contact, even if the email already exists; amabledata does not block duplicate emails, so you can clean them up later with [Merge](https://amabledata.com/docs/crm/contacts#merge-duplicates). ### What an update changes When a row matches an existing contact: | Data | Behaviour | | --- | --- | | Name, job title, dates, owner, email status, score, UTM, other mapped fields | Overwritten with the row's value. Empty cells leave the existing value untouched. | | Emails | New addresses from the row are added after the existing ones (up to 5 in total). Existing addresses are never removed. | | Phones | New numbers from the row are added after the existing ones (up to 5 in total). A number the contact already has (same digits, ignoring spaces and symbols) is skipped. Existing phones are never removed. | | Address | The row's address (a **Billing** address) is added after the existing ones (up to 3 in total), unless the contact already has the same address (same street, number, line 2, city, region, postal code and country, ignoring case). Existing addresses are never removed. | | Company, lead source | Set to the row's company or lead source, when the cell is filled. | | Tags | Added. Imports never remove tags. | | Custom fields | Overwritten for filled cells; empty cells leave the value untouched. | | Source type | Not changed. | New contacts get **Source type** `Import`. ### Companies, lead sources and tags - **Company name**: the company is looked up by name, ignoring case, among non-archived companies; if it does not exist it is created (name cut to 255 characters), even when company custom fields are required (they stay empty). - **Lead source**: same rule, among lead sources. - **Tags** column: the cell is split with the separator you choose (default `;`); each name is looked up ignoring case (tags without a category first) and created when missing (name cut to 100 characters). - **Tag every imported contact**: the tags you pick here are applied to every row that is created or updated. Each tag application writes **Tag applied** on the contact's timeline and can start automations triggered by tags. ### Custom fields Columns mapped to a custom field are converted to the field's type in lenient mode: | Field type | Accepted cell values | | --- | --- | | Text, text area, name | Any text, within the field's maximum length (default 255, text area 10,000). | | Email | A valid address (stored lowercase). | | Phone number | Digits with optional `+`, spaces, `()`, `.` and `-`; 5 to 20 digits. | | Website | A URL; `https://` is added when the scheme is missing. | | Dropdown, radio | The option value or the option label, ignoring case. | | List box (multiple) | Several option values or labels separated by the separator for tags and lists. | | Users (multiple) | Several user IDs separated by that separator. | | User | A member's user ID. | | Drilldown | A path of 1 to 3 option values separated by `>` (for example `Europe > Italy > Milan`). | | Currency, decimal number, percent | A number; comma or dot as decimal separator; spaces ignored. Percent must be 0–100 unless the field sets its own range. | | Whole number | An integer, within the field's range. | | Year | A 4-digit year. | | Day of week | `1`–`7` (Monday = 1) or an English day name (at least 3 letters, for example `mon`). | | Month | `1`–`12` or an English month name (at least 3 letters). | | Yes / no | `true`, `yes`, `y`, `1`, `si`, `sì` or `false`, `no`, `n`, `0`. | | Date | `YYYY-MM-DD`. | | Date and time | ISO 8601 with time zone, for example `2026-03-01T09:30:00Z`. | | State / province | ISO 3166-2 code such as `IT-MI`. | | National ID / SSN | According to the field's format. | Required custom fields must be filled for rows that create a new contact; otherwise the row fails with "*key* is required". ## Step by step ### Import a CSV file 1. Open **CRM** › **Contacts** and click **Import**. 2. **Upload.** Drop the file on the area "Drop a CSV file here or click to choose one" or click it to choose a file. The hint reads "Comma, semicolon or tab separated, with a header row. Up to 100,000 rows / 50 MB." 3. **Map columns.** The table lists every header of your file with up to three **Sample values** and an **Import as** selector. Columns the wizard recognized are already mapped; the rest are set to **Do not import**. The line above the table shows the file name, "N columns" and "N mapped". 4. Change any **Import as** selector you need. Each target can be used by one column only; if you pick the same target twice the selectors turn red and you see "Each field can be used once: *targets*". 5. Set the options: - **Update contacts with the same email** (on by default). While it is on, the hint reads "Fields in the file overwrite the current ones; emails, phones and addresses are added to the existing ones." - **Tag every imported contact**: tags to add to every row. - **Separator for tags and lists**: 1 to 3 characters, default `;`. 6. Click **Start import**. It is enabled when at least one column is mapped and there are no duplicate targets. **Back** returns to the upload step. 7. **Import.** A progress bar and "N row(s) processed" update every second. The message reads "Importing… keep this page open." 8. **Result.** See [The result screen](#the-result-screen). :::caution[Keep the page open] The file is uploaded by your browser while the import runs. Closing the tab or navigating away stops the upload: the rows already processed stay imported, the rest are not. ::: ### Fix errors and import again 1. On the result screen, read the **Row** and **Error** of each failed row. 2. Fix those rows in your spreadsheet (you can delete the rows that succeeded). 3. Click **Import another file** and import the corrected file with **Update contacts with the same email** on, so rows that were imported before are updated instead of duplicated. ## Reference ### Import targets Pick these in **Import as**: | Target | Notes | | --- | --- | | **Do not import** | The column is ignored. | | **First name**, **Middle name**, **Last name** | Up to 100 characters. | | **Full name** | Split at the first space: the first word becomes the first name, the rest the last name. | | **Prefix**, **Suffix** | Up to 30 characters. | | **Preferred name**, **Spouse name** | Up to 100 characters. | | **Job title** | Up to 255 characters. | | **Website** | Up to 2,048 characters. | | **Time zone** | IANA name, for example `Europe/Rome`. | | **Language** | Language code, for example `it` or `en-US` (up to 16 characters). | | **Birthday**, **Anniversary** | `YYYY-MM-DD`. | | **Owner** | A member's user ID. | | **Email status** | One of `unknown`, `single_opt_in`, `double_opt_in`, `unsubscribed`, `bounced`, `complained`, `non_marketable`. | | **Score** | Whole number from -1,000,000 to 1,000,000. | | **Company name** | Finds or creates the company and links the contact. | | **Lead source** | Finds or creates the lead source. | | **Email**, **Email 2**, **Email 3** | Valid addresses, stored lowercase. The first filled one is the primary email and the one used for matching. | | **Phone**, **Phone 2**, **Phone 3** | 3 to 30 characters: digits, spaces, `+`, `(`, `)`, `.`, `-`. | | **Address: Street**, **Address: Number**, **Address: Street (line 2)**, **Address: City**, **Address: Region / province**, **Address: Postal code**, **Address: Country** | Together they form one **Billing** address. Country is a 2-letter code (made uppercase). | | **UTM source**, **UTM medium**, **UTM campaign**, **UTM term**, **UTM content** | Up to 255 characters each. | | **Tags** | Tag names separated by the separator. | | *Custom field* (**custom**) | Every contact custom field, by label. | ### Automatic mapping The wizard maps a column automatically when its header, ignoring case, accents, spaces and punctuation, is: - the exact target key (for example `given_name`, `email2`, `utm_source`, `address.locality`); - one of these known spellings (English and Italian): | Header | Mapped to | | --- | --- | | first name, given name, first, nome | First name | | last name, family name, surname, last, cognome | Last name | | full name, name, nome completo | Full name | | middle name | Middle name | | email, email address, mail | Email | | phone, phone number, telephone, telefono, mobile, cellulare | Phone | | company, company name, azienda, organization | Company name | | job title, title, ruolo | Job title | | website, sito web | Website | | birthday, compleanno, data di nascita | Birthday | | tags, tag | Tags | | street, address, indirizzo | Address: Street | | civico, numero civico, house number, street number | Address: Number | | city, città | Address: City | | region, state, provincia | Address: Region / province | | zip, postal code, cap | Address: Postal code | | country, country code, paese | Address: Country | | lead source, source | Lead source | | score | Score | | utm source, utm medium, utm campaign, utm term, utm content | The matching UTM field | - or the key or label of a contact custom field. Each target is guessed for the first matching column only; later columns with the same meaning are set to **Do not import**. ### The result screen | Element | Meaning | | --- | --- | | **Import completed** | The whole file was read. Problems with single rows are listed below; problems with the whole file never reach this screen (see [File-level errors](#file-level-errors)). | | **N rows** | Data rows read (empty rows excluded). | | **N created** | New contacts. | | **N updated** | Existing contacts matched by email. | | **N with errors** | Rows that were not imported (red when above zero). | | **Row** / **Error** table | The first 100 row errors. Row numbers count data rows from 1 (the header is not counted). | | **View contacts** | Opens the contact list. | | **Import another file** | Back to step 1. | ### Common row errors | Error text | Cause | | --- | --- | | `a contact needs a name, an email or a phone number` | The row has none of first name, last name, email, phone. | | `emails.0.email: …` | The first email is not a valid address. | | `phones.0.number: invalid phone number` | The phone has letters or is too short or long. | | `birthday: expected YYYY-MM-DD` | Date in another format (for example `01/03/1990`). | | `marketable_status: …` | **Email status** is not one of the allowed values. | | `score_value: …` | **Score** is not a whole number. | | `addresses.0.country_code: …` | Country is not a 2-letter code. | | `key: "value" is not an option of key` | A dropdown, radio or list box value matches no option. | | `key: expected a number` (or another type message) | A custom field cell does not fit its type. | | `key is required` | A required custom field is empty on a new contact. | ### File-level errors Errors about the whole file are shown in red at the top of the wizard, and the wizard goes back to **Map columns**. The rows processed before the error stay imported; the import job is marked as failed. | Error text | Cause | | --- | --- | | "The file is larger than 50 MB." | Checked in the browser before upload. | | "The file has no rows." | The file is empty or has only blank lines. | | "The file is too large: up to 50 MB and 100,000 rows. Split it into smaller files." | The server stopped the upload because it went over 50 MB or 100,000 data rows. Split the file. | | `CSV row with more than 500 columns` | Too many columns. | | `CSV field longer than 100000 characters` | One cell is too long, often because of an unclosed quote. | | `the CSV has no header row` | Nothing could be read from the file. | | `mapping: mapping has no target columns` | Every column is set to **Do not import**. | | `mapping: target "x" is mapped more than once` | Two columns use the same target (the wizard prevents this). | | `mapping: column "x": unknown custom field "custom.key"` | The custom field was deleted while you were mapping. Reload the page. | ## Limits and permissions | Item | Limit | | --- | --- | | Permission | `contacts:import` (owner, admin, marketer) | | File size | 50 MB | | Data rows | 100,000 | | Columns | 500 | | Cell length | 100,000 characters | | Batch size | 250 rows | | Reported errors | First 100 | | Tags applied to every contact | Up to 50 | | Separator for tags and lists | 1–3 characters | | Emails / phones per contact | 3 columns each in the import (a contact holds up to 5) | Imports are also available through the [REST API](https://amabledata.com/docs/developers/rest-api): `POST /imports` with the mapping, then `PUT /imports/{id}/csv` with the file. ## Troubleshooting | Symptom | Cause | Fix | | --- | --- | --- | | Accented letters look broken (`é`, `�`) | The file is not UTF-8. | Export again as "CSV UTF-8". | | All data ends up in one column | The separator was not detected because the header has none of `,` `;` tab. | Save the CSV with a standard separator. | | Many rows "updated" instead of created | Their email already exists. | Expected with **Update contacts with the same email**; turn it off to always create. | | Duplicates after import | The option was off, or rows had no email. | Use [Merge](https://amabledata.com/docs/crm/contacts#merge-duplicates). | | A tag from the file was applied from an unexpected category | Tag names are matched ignoring case; when several tags share the name, the uncategorized one wins, otherwise the oldest. | Rename one of the tags so names are unique, or use **Tag every imported contact** to pick the exact tag. | | A phone or address from the file was not added to an existing contact | The contact already had it, or already had 5 phones or 3 addresses. | Remove an old phone or address on the [contact page](https://amabledata.com/docs/crm/contact-detail), then import again. | | An outdated phone or address is still on the contact after an update | Imports only add phones and addresses; they never remove them. | Remove it on the [contact page](https://amabledata.com/docs/crm/contact-detail). | | The import stopped halfway | The tab was closed or the connection dropped. | Import the file again with updating on; already imported rows are updated, not duplicated. | | Permission notice instead of the wizard | Your role lacks `contacts:import`. | Ask an owner or admin. | ## Related - [Contacts](https://amabledata.com/docs/crm/contacts) - [Tags](https://amabledata.com/docs/crm/tags) - [Companies](https://amabledata.com/docs/crm/companies) - [Custom fields](https://amabledata.com/docs/concepts/custom-fields) - [Custom fields settings](https://amabledata.com/docs/settings/custom-fields) - [Contacts and identity](https://amabledata.com/docs/concepts/contacts-and-identity) - [REST API](https://amabledata.com/docs/developers/rest-api) --- # Companies Section: CRM URL: https://amabledata.com/docs/crm/companies Summary: Organisations and the people who work there: the company list, the company page, linked contacts, notes and activity. ## Overview A company is an organisation your contacts belong to. Each contact can be linked to one company; a company can have any number of contacts and deals. - **Where:** sidebar group **CRM** › **Companies**. - **URLs:** the list is `/t//companies` (`?saved=` opens a saved company search); a company page is `/t//companies/`. - **Who uses it:** every role can read companies. Creating, editing and deleting need `contacts:write`: companies share the contact permissions. ## How it works - The list uses the same search engine as [Contacts](https://amabledata.com/docs/crm/contacts): quick search, advanced filters, columns, server-side sort, saved searches and 50 rows per page. Tag conditions do not exist for companies (tags belong to contacts). - A contact is linked to a company from the contact's **Company** field, by creating a contact from the company page, or by the **Company name** column of an [import](https://amabledata.com/docs/crm/importing-contacts), which finds the company by name (ignoring case) or creates it. - Deleting a company archives it: it leaves the list and the search, contacts keep their link but the company no longer shows. Undo is available right after deleting, from the list and from the company page. - Companies created automatically from a **Company name** (in a contact import or a form submission) are created even when company custom fields are required; those fields stay empty until you fill them in. - The quick search covers name, website, email, phone, city, region, country, description and non-sensitive text-like custom fields. ## Step by step ### Create a company 1. Open **CRM** › **Companies** and click **New company**. 2. The dialog says "Contacts can be linked to it from their page." Fill in **Name** (required) and optionally **Website**. Company [custom fields](https://amabledata.com/docs/settings/custom-fields) marked **Required** also appear, each label followed by `*`, and must be filled in. 3. Click **Create**. A missing or invalid required value is shown in red under its field and nothing is created. Otherwise a toast confirms **Company created** and the company page opens. ### Edit a company On the company page, hover a field in **Details** and click the pencil. Enter saves, Esc cancels; a toast confirms **Saved**. | Field | Editor | Rules | | --- | --- | --- | | **Name** | Text | Required ("This field is required."), up to 255 characters. | | **Website** | URL | Up to 2,048 characters. | | **Email** | Email | Valid address, up to 254 characters. | | **Phone** | Phone | Up to 30 characters. | | **Extension** | Text | Up to 10 characters. | | **Fax** | Phone | Up to 30 characters. | | **Address** | Street, Street (line 2), City, Region / province, Postal code, Country | Country is 2 letters, uppercased as you type. | | **Description** | Multi-line text | Up to 5,000 characters. | | **Owner** | Member picker | Any member, or none. | The **Custom fields** card below lists the company custom fields defined in [Custom fields settings](https://amabledata.com/docs/settings/custom-fields), grouped in tabs as configured, plus **Other** for ungrouped fields. When none exist it shows "No custom fields yet." ### Add a contact to the company 1. On the company page open the **Contacts** tab. 2. Click **New contact**, fill in the dialog (first name, last name, email, phone, time zone, language) and click **Create**. 3. The new contact, already linked to the company, opens. To link an existing contact, open the contact and set its **Company** field. ### Add notes to the company Open the **Notes** tab, write in the editor and click **Add note**. Notes can be pinned, edited and deleted exactly as on the [contact page](https://amabledata.com/docs/crm/contact-detail#add-a-note). ### Delete companies - From the list: select rows (or use a row's menu) and click **Delete**, confirm "Delete N items?"; the bar "N items deleted" offers **Undo** for 6 seconds. - From the company page: click **Delete** in the header and confirm "Delete *name*?" ("You can undo right after."). You go back to the list and the toast "*name* deleted" offers **Undo**, which restores the company and reopens its page. ### Save a company search Use the **Saved searches** sidebar exactly as for contacts: **Save search**, **Update “name”**, rename and delete. See [Record search and filters](https://amabledata.com/docs/crm/record-search#save-a-search). ## Reference ### List toolbar | Element | Shown to | | --- | --- | | **Search name, email, phone…** | Everyone | | **Advanced search** (field conditions and groups only) | Everyone | | **Columns** | Everyone | | **New company** | `contacts:write` | ### List columns The **Name** column (with a building icon) is always first and sortable. Default columns: **Website**, **Email**, **Phone**, **Owner**, **Contacts**, **Created**. Also available: **Description**, **City**, **Region**, **Postal code**, **Country**, **Updated**, and every company custom field (badge **custom**). **Contacts** is the number of non-archived contacts linked to the company and can be sorted and filtered as a number. The default sort is **Created**, newest first. ### Bulk actions Only **Delete** (`contacts:write`), with confirmation and undo. ### Company page | Area | Content | | --- | --- | | Header | Building icon, name, "N contact(s)", **Delete** (`contacts:write`). | | **Details** card | The fields above. | | **Custom fields** card | Company custom fields. | | Footer | "Created *date*". | | **Contacts** tab | Up to 100 linked contacts with job title, each linking to its page; **New contact**. Empty: "No contacts in this company." | | **Notes** tab | Notes on the company. Empty: "No notes yet." | | **Activity** tab | The company timeline. Empty: "No activity yet." | ### Company timeline entries | Entry | Produced by | | --- | --- | | **Company created** | Creating the company (from the dialog, an import or the API). | | **Company updated** | Editing fields (detail: changed fields). | | **Company archived** | Deleting it. | | **Note added** / **Note edited** / **Note deleted** | Notes on the company. | Tasks, appointments and deals write their entries on the timeline of their contact, not on the company timeline. ## Limits and permissions | Action | Permission | Roles | | --- | --- | --- | | See companies | `contacts:read` | All roles | | Create, edit, delete, add notes | `contacts:write` | Owner, admin, marketer, sales | | See unmasked sensitive custom fields | `contacts:read_sensitive` | Owner, admin, marketer, sales, analyst | | Save searches | `saved_searches:write` | Owner, admin, marketer, sales, analyst | The **Contacts** tab shows the first 100 linked contacts. To see all of them, filter the contact list with the condition **Company** **is** *company*. ## Troubleshooting | Symptom | Cause | Fix | | --- | --- | --- | | **Create** is disabled | **Name** is empty. | Type a name. | | "This field is required." on Name | You emptied the name. | Companies always need a name. | | "This field is required." under a custom field in **New company** | A company custom field is marked **Required**. | Fill it in, or make the field optional in [Custom fields settings](https://amabledata.com/docs/settings/custom-fields). | | The **Tags** button is missing from the advanced search | Tags apply to contacts only. | Filter contacts by tag and by **Company** instead. | | A deleted company still appears on a contact | It does not: the contact's **Company** shows "—" once the company is archived. | Link the contact to another company. | ## Related - [Contacts](https://amabledata.com/docs/crm/contacts) - [Contact page](https://amabledata.com/docs/crm/contact-detail) - [Record search and filters](https://amabledata.com/docs/crm/record-search) - [Deals and pipelines](https://amabledata.com/docs/crm/deals) - [Custom fields settings](https://amabledata.com/docs/settings/custom-fields) --- # Deals and pipelines Section: CRM URL: https://amabledata.com/docs/crm/deals Summary: Track opportunities through the stages of your sales pipelines: the board, the list, the deal page and how stages, statuses and history work. ## Overview A deal (also called an opportunity) is a potential sale: a title, a value in a currency, an owner, optionally a contact and a company, and a position in a sales pipeline. Pipelines are made of stages, and moving a deal from stage to stage is how you track progress until it is won or lost. - **Where:** sidebar group **CRM** › **Deals**. - **URLs:** the board and list are `/t//deals`; a deal page is `/t//deals/`. - **Who uses it:** roles with `opportunities:read` see deals (all roles); owner, admin and sales can create, move and edit them (`opportunities:write`). Pipelines and their stages are created and edited by owners and admins in **Settings** › **Pipelines**. That screen is documented in [Pipelines settings](https://amabledata.com/docs/settings/pipelines); this page covers how pipelines and stages are used from the deals screens. ## How it works ### Pipelines and stages - A workspace can have several pipelines (for example "New business" and "Renewals"). One is the **Default** pipeline: the deals page opens on it, and deals created without a pipeline go there. The first pipeline you create becomes the default automatically. - A new pipeline comes with five stages unless you define your own: **New** (10%), **Qualified** (30%), **Proposal** (60%), **Won** (100%, kind Won) and **Lost** (0%, kind Lost). - Each stage has a name, a **Win probability** (0–100%), a **Stage kind** (**Open**, **Won** or **Lost**) and a position. Stages are shown left to right by position. - A new workspace has no pipeline. Until an owner or admin creates one, the deals page shows "No pipeline yet." and, for them, a link to **Pipelines**. ### Deal status A deal's status always equals the kind of its stage: | Stage kind | Deal status | Closed date | | --- | --- | --- | | Open | open | Cleared | | Won | won | Set to the moment it entered the stage | | Lost | lost | Set to the moment it entered the stage | Moving a deal into a Won stage marks it won, into a Lost stage marks it lost, back into an Open stage reopens it. If an admin changes the kind of a stage in the settings, every deal in that stage takes the new status. ### What a stage move records Each move (from the board, from the deal page or through the API): - updates the stage, the status and the "stage changed" date; - adds a row to the deal's stage history (from stage, to stage, who, when); - writes **Deal moved to another stage** on the timeline of the deal and of its contact, plus **Deal won** or **Deal lost** when the deal enters a Won or Lost stage; - emits events that [automations](https://amabledata.com/docs/marketing/automations) and [webhooks](https://amabledata.com/docs/developers/webhooks) can react to. Other edits write **Deal updated** with the list of changed fields. ### Deals in reports and on the dashboard Open deals per stage, with value and weighted value (value × win probability), feed the **Opportunities by stage** report and the pipeline funnel on the [Dashboard](https://amabledata.com/docs/crm/dashboard). See [Reports](https://amabledata.com/docs/reports/reports). ## Step by step ### Switch pipeline and view 1. Open **CRM** › **Deals**. The default pipeline is selected. 2. Choose another pipeline in the **Pipeline** selector on the toolbar. 3. Use the **Board** and **List** tabs in the page header to switch between the kanban board and the table. ### Create a deal 1. Click **New deal** (toolbar, top right). 2. The dialog shows the current pipeline name under the title. Fill in: - **Title** (required, up to 255 characters). - **Value**: amount with comma or dot as decimal separator; empty means 0; must not be negative. - **Currency**: 3-letter code, default **EUR**. - **Stage**: any stage of the pipeline, default the first one. - **Owner**: a member; empty means you. - **Expected close**: a date. - Every deal [custom field](https://amabledata.com/docs/settings/custom-fields) marked **Required**, each label followed by `*`. Only required fields appear here; fill in the others on the deal page. 3. Click **Create**. A missing or invalid required value is shown in red under its field and nothing is created. Otherwise a toast confirms **Deal created** and the deal appears on the board. You can also add a deal from the **Deals** tab of a [contact](https://amabledata.com/docs/crm/contact-detail#create-a-deal-for-the-contact); it goes to the first open stage of the default pipeline. ### Move a deal on the board 1. Drag a deal card (the cursor shows a grab hand). 2. Drop it on another stage column. The column highlights while you hover it. 3. The card moves immediately and a toast confirms "Moved to *stage*". If the server rejects the move, the card goes back and the error is shown. Dragging is available only with `opportunities:write`. Dropping a card on its own column does nothing. ### Work with the list The **List** tab shows the deals of the selected pipeline in a table. Click a header to sort, click a row to open the deal. With `opportunities:write` you can tick rows and **Delete** them (confirmation "Delete N items?", "You can undo right after."). The bar "N items deleted" offers **Undo** for 6 seconds, which restores the deals in their stages (a deal whose stage was deleted in the meantime goes to the first stage of the same kind, see [Delete a deal](#delete-a-deal)). When a restored deal lands in a pipeline other than the one you are viewing, the toast "Restored into the “*pipeline*” pipeline, because its stage or pipeline was deleted: it is not in the list you are viewing." offers **Show pipeline**, which switches the page to that pipeline. ### Edit a deal 1. Click a deal title on the board or a row in the list. 2. On the deal page hover a field in **Details** and click the pencil. 3. Change the value and press Enter (or Esc to cancel). A toast confirms **Saved**. Changing **Stage** here has the same effects as dragging on the board. A deal stays in its pipeline: the stage list only offers stages of the deal's pipeline. ### Record why a deal was lost Move the deal to a Lost stage. The **Lost reason** field appears in **Details**; click its pencil and type the reason (up to 500 characters). ### Plan the next step Fill **Next action** (free text, up to 500 characters) and **Next action on** (date and time) on the deal page. For a real reminder with an assignee, add a task in the deal's **Tasks** tab. ### Delete a deal On the deal page click **Delete** and confirm "Delete *title*?" ("The deal is removed from the pipeline and its reports."). You go back to the deals page and the toast "*title* deleted" offers **Undo**, which restores the deal and reopens its page. If the deal's stage (or its whole pipeline) was deleted in the meantime, the deal is restored into the first stage of the same kind (**Open**, **Won** or **Lost**, matching the deal's status): in its own pipeline if that pipeline still exists, otherwise in the default pipeline, otherwise in the first other pipeline that has such a stage. When the deal page's **Undo** brings it back in another pipeline, the toast "Its stage or pipeline was deleted: the deal was restored into the “*pipeline*” pipeline." says where it went. The restore fails only when no pipeline has a stage of that kind; the error is shown as a toast and the deal stays deleted. Through the API, restore a deleted deal with `POST /opportunities/{id}/restore` (`opportunities:write`), which follows the same rules. ## Reference ### Board | Element | Content | | --- | --- | | Column header | Stage name, a **Won** or **Lost** badge for closed stages, the number of deals. | | Column subtitle | Total value of the deals in the column · the stage's win probability (for example `€12,400.00 · 60%`). Values are summed per currency, never mixed: with several currencies the totals are joined by `+`, largest first (for example `€12,400.00 + $3,000.00 · 60%`). An empty column shows `€0.00`. | | Card | Deal title (link to the deal page), value, contact name (link), owner, expected close date. | | Empty column | "Drop deals here". | The board loads up to 2,000 deals per pipeline. ### List columns | Column | Sortable | Notes | | --- | --- | --- | | **Title** | Yes | | | **Stage** | Yes | Sorted by stage position. | | **Value** | Yes | Default sort, highest first. | | **Contacts** | No | Contact name. Hidden below 768 px. | | **Owner** | No | Hidden below 1024 px. | | **Expected close** | Yes | Hidden below 1024 px. | ### Deal page | Area | Content | | --- | --- | | Header | Title; value; pipeline name; stage badge "*stage* · *probability*%"; **Delete** (`opportunities:write`). | | **Details** | **Title**, **Value**, **Currency**, **Stage**, **Owner**, **Contact**, **Company**, **Expected close**, **Next action**, **Next action on**, and **Lost reason** when the deal is lost. | | **Custom fields** | Deal custom fields from [Custom fields settings](https://amabledata.com/docs/settings/custom-fields). | | **Stage history** | Every move as *from* → *to* with date and member, newest first, ending with "Created in *stage* · *date*". | | **Notes** tab | Notes on the deal (same editor as contacts). | | **Tasks** tab | Tasks linked to the deal, with quick add (needs `tasks:read`; adding needs `tasks:write`). | | **Activity** tab | The deal timeline. | ### Deal fields | Field | Type | Rules | | --- | --- | --- | | **Title** | Text | Required, 1–255 characters ("This field is required."). | | **Value** | Amount | Digits with up to 2 decimals ("Enter a number."). Stored in minor units (cents). | | **Currency** | 3-letter ISO code | "Use a 3-letter currency code (e.g. EUR)." Default EUR. | | **Stage** | Stage of the same pipeline | Moves the deal. | | **Owner** | Member | Default: the member who created the deal. | | **Contact** | Contact search | Type at least 2 characters; up to 8 suggestions with email. Empty the box and save to unlink. | | **Company** | Company search | Empty to unlink. | | **Expected close** | Date | | | **Next action** | Text | Up to 500 characters. | | **Next action on** | Date and time | | | **Lost reason** | Text | Up to 500 characters; shown only for lost deals. | ### Deal timeline entries | Entry | Produced by | | --- | --- | | **Deal created** | Creation (detail: title). | | **Deal updated** | Any field change other than the stage (detail: changed fields). | | **Deal moved to another stage** | A stage move. | | **Deal won** / **Deal lost** | Entering a Won or Lost stage. | | **Deal deleted** | Deletion (restoring a deal adds no entry). | | **Note added** / **Note edited** / **Note deleted** | Notes on the deal. | The same deal entries also appear on the timeline of the deal's contact. ## Limits and permissions | Action | Permission | Roles | | --- | --- | --- | | See deals, board, list, deal page | `opportunities:read` | All roles | | Create, drag, edit, delete and restore deals | `opportunities:write` | Owner, admin, sales | | Create and edit pipelines and stages | `settings:manage` | Owner, admin | | See the deal's Tasks tab / add tasks | `tasks:read` / `tasks:write` | | Limits: up to 30 stages when creating a pipeline with its stages; stage and pipeline names up to 100 characters; a pipeline or a stage can be deleted only when no deal uses it, and a pipeline always keeps at least one stage. Details in [Pipelines settings](https://amabledata.com/docs/settings/pipelines). ## Troubleshooting | Symptom | Cause | Fix | | --- | --- | --- | | "No pipeline yet." | The workspace has no pipeline. | An owner or admin clicks **Pipelines** (or opens **Settings** › **Pipelines**) and creates one. | | **New deal** is missing | Your role cannot write deals, or there is no pipeline. | Ask for the sales role, or create a pipeline. | | Cards cannot be dragged | No `opportunities:write`. | Ask an owner or admin. | | The card jumps back after a drop | The server rejected the move (for example the stage was deleted meanwhile). | Read the error toast; reload the page. | | **Create** stays disabled in **New deal** | Empty title, negative or non-numeric value, or invalid currency. | Fix the highlighted field. | | "This field is required." under a custom field in **New deal** | A deal [custom field](https://amabledata.com/docs/settings/custom-fields) is marked **Required**. | Fill it in, or make the field optional. | | "the pipeline stage of this opportunity no longer exists" after **Undo** | The deal's stage was deleted and no pipeline has another stage of the same kind (for example a won deal when no **Won** stage exists anywhere). | Add a stage of that kind in the pipeline settings, then restore the deal with `POST /opportunities/{id}/restore`, or create the deal again. | | A restored deal shows up in another pipeline or stage | Its original stage or pipeline was deleted, so it was restored into the first stage of the same kind, preferring its own pipeline, then the default one. The **Undo** toast names the pipeline. | Click **Show pipeline** in the toast (or pick the pipeline in the **Pipeline** selector), then move it to the stage you want; the restore cannot bring back a deleted stage. | | "stage still has opportunities" or "pipeline still has opportunities; move or delete them first" | You tried to delete a stage or pipeline in use. | Move or delete its deals first. | | A column shows several amounts joined by `+` | The column holds deals in different currencies; amounts are never converted. | Expected. Keep one currency per pipeline for a single total. | ## Related - [Pipelines settings](https://amabledata.com/docs/settings/pipelines) - [Contact page](https://amabledata.com/docs/crm/contact-detail) - [Companies](https://amabledata.com/docs/crm/companies) - [Tasks and calendar](https://amabledata.com/docs/crm/tasks-and-calendar) - [Reports](https://amabledata.com/docs/reports/reports) - [Automations](https://amabledata.com/docs/marketing/automations) - [Money and time zones](https://amabledata.com/docs/concepts/money-and-time-zones) --- # Tasks and calendar Section: CRM URL: https://amabledata.com/docs/crm/tasks-and-calendar Summary: To-dos with due dates, priorities and assignees, appointments, and the month and week calendar that shows both. ## Overview **Tasks & calendar** is where you keep track of follow-ups and meetings. - A **task** is a to-do: a title, an optional due date and time, a priority, an assignee, and optionally a contact or a deal it relates to. It is either **Open** or **Completed**. - An **appointment** is a time slot: a title, a start, an end, an owner and optionally a contact. Its status is **Scheduled**, **Completed** or **Cancelled**. - **Where:** sidebar group **CRM** › **Tasks & calendar**. - **URL:** `/t//tasks`. - **Tabs:** **List** (tasks) and **Calendar** (tasks and appointments), in the page header. - **Who uses it:** every role with `tasks:read` can look; owner, admin and sales (`tasks:write`) can create and change tasks and appointments. Tasks and appointments for a specific person are usually created from the [contact page](https://amabledata.com/docs/crm/contact-detail) (tabs **Tasks** and **Appointments**), and deal tasks from the [deal page](https://amabledata.com/docs/crm/deals). Appointments booked by contacts through [booking pages](https://amabledata.com/docs/bookings/bookings) show up here as well. ## How it works - Times are entered and displayed in your browser's time zone and stored in UTC. - A task with a due time in the past that is still open is **overdue**: its due date is shown in red. - Completing a task records who completed it and when; reopening clears that. - The calendar shows appointments that overlap the visible days and tasks whose due time falls in them. Tasks without a due date never appear in the calendar. - Every create, update, complete, reopen and delete writes an entry (**Task created**, **Task completed**, **Appointment scheduled**…) on the timeline of the linked contact, and emits events for [automations](https://amabledata.com/docs/marketing/automations) and [webhooks](https://amabledata.com/docs/developers/webhooks). Restoring a deleted task writes no entry and emits no event. ## Step by step ### Create a task 1. Click **New task** (top right; needs `tasks:write`). 2. Fill in: - **Title** (required, up to 255 characters). - **Due**: date and time (optional). - **Priority**: **Low**, **Normal** (default) or **High**. - **Assignee**: a workspace member (optional). 3. Click **Create**. A toast confirms **Task created**. Tasks created here are not linked to a contact. To link one, create it from the contact's **Tasks** tab. ### Schedule an appointment 1. Click **New appointment** (top right), or in the **Calendar** hover a day and click its **+** button (the start is preset to 09:00 that day). 2. Fill in: - **Title** (required, up to 255 characters). - **Start**: date and time (required). - **Duration (minutes)**: default 30, step 5, minimum 5. An empty or invalid value counts as 30. - **Owner**: a member; empty means you. 3. Click **Create**. A toast confirms **Appointment scheduled**. ### Complete or reopen tasks - In the **List** tab choose **Open** in the status filter, tick tasks and click **Complete** in the selection bar. - Choose **Completed**, tick tasks and click **Reopen**. - On a contact or deal page, tick or untick the checkbox next to the task. ### Delete tasks In the **List** tab tick tasks, click **Delete** and confirm "Delete N items?" ("You can undo right after."). The bar "N items deleted" offers **Undo** for 6 seconds, which restores the tasks. Through the API, restore a deleted task with `POST /tasks/{id}/restore` (`tasks:write`). ### Browse the calendar 1. Open the **Calendar** tab. 2. Choose **Month** or **Week** in the **View** selector. 3. Move with the **Previous** and **Next** arrows; **Today** jumps back to the current date. The title shows the month (month view) or the first day of the week (week view). 4. Use the **Owner** selector to show only one member's items, or **Everyone**. 5. Click an entry linked to a contact to open the contact. ## Reference ### List tab The toolbar has a **Status** selector: **Open** (default) or **Completed**. | Column | Sortable | Content | | --- | --- | --- | | **Title** | Yes | Struck through when completed. | | **Due** | Yes | Date and time, red when overdue. Default sort, earliest first. | | **Priority** | Yes | Badge **Low**, **Normal** or **High** (High is highlighted). Hidden below 768 px. | | **Assignee** | No | Member name. Hidden below 1024 px. | | **Contacts** | No | **Open contact** link when the task is linked to a contact. Hidden below 1024 px. | The list loads up to 1,000 tasks of the chosen status. Sorting happens on the loaded tasks. With `tasks:write` you can select rows (click a row, or Shift-click for a range) and use **Complete** / **Reopen** and **Delete**. ### Calendar tab | Element | Behaviour | | --- | --- | | Month view | Six full weeks, Monday first. Days of other months are dimmed; today is circled. Each day shows up to 3 entries, then "+N more". | | Week view | The seven days Monday to Sunday, up to 50 entries per day. | | Task entry | Checklist icon, amber background, due time and title; struck through if completed. | | Appointment entry | Clock icon, start time (none for all-day appointments) and title. Appointments that span several days appear on each day. | | **+** on a day | Opens **New appointment** at 09:00 that day (needs `tasks:write`). | | **Owner** | Filters appointments by owner and tasks by assignee. Default **Everyone**. | ### Task fields | Field | Values | Default | | --- | --- | --- | | Title | 1–255 characters | — | | Due | Date and time with time zone | None | | Priority | Low, Normal, High | Normal | | Assignee | Member | None | | Contact / deal | Set when created from a contact or deal page | None | | Status | Open, Completed | Open | Through the [REST API](https://amabledata.com/docs/developers/rest-api) tasks also accept a type (`todo`, `call`, `email`, `meeting`, `other`; default `todo`), a rich-text description and a company. ### Appointment fields | Field | Values | Default | | --- | --- | --- | | Title | 1–255 characters | — | | Start, end | Date and time; the end cannot be before the start; at most 31 days long | — | | Owner | Member | The creator | | Contact | Set when created from a contact page or by a booking | None | | Status | Scheduled, Completed, Cancelled | Scheduled | | Source | Manual, API, Booking | Manual (API when created with an API key) | Through the API appointments also accept description, location, all-day flag, time zone, company, deal and up to 50 attendees. ### Quick add on a contact or deal | Form | Fields | Result | | --- | --- | --- | | Contact › **Tasks** | **New task…**, **Due** (date) | Task linked to the contact, due at 09:00 local time. | | Deal › **Tasks** | **New task…**, **Due** (date) | Task linked to the deal. | | Contact › **Appointments** | **New appointment…**, **Start**, **Duration (minutes)** | Appointment linked to the contact, owned by you. | ## Limits and permissions | Action | Permission | Roles | | --- | --- | --- | | See tasks, appointments and the calendar | `tasks:read` | All roles | | Create, complete, reopen, delete, restore | `tasks:write` | Owner, admin, sales | The calendar loads at most 2,000 appointments and 2,000 tasks for the visible range, and a range can cover at most 92 days. ## Troubleshooting | Symptom | Cause | Fix | | --- | --- | --- | | **New task** and **New appointment** are missing | Your role lacks `tasks:write`. | Ask an owner or admin. | | A task is not in the calendar | It has no due date, or the **Owner** filter excludes its assignee. | Give it a due date; choose **Everyone**. | | **Create** is disabled for an appointment | Title or **Start** is empty. | Fill both. | | "end_at must not be before start_at" / "appointments cannot exceed 31 days" | Invalid times sent through the API. | Fix the start and end. | | Times look shifted | Your computer's time zone differs from the one you expect. | Check the system time zone; see [Money and time zones](https://amabledata.com/docs/concepts/money-and-time-zones). | ## Related - [Contact page](https://amabledata.com/docs/crm/contact-detail) - [Deals and pipelines](https://amabledata.com/docs/crm/deals) - [Bookings](https://amabledata.com/docs/bookings/bookings) - [Calendars](https://amabledata.com/docs/bookings/calendars) - [Automations](https://amabledata.com/docs/marketing/automations) --- # Tags Section: CRM URL: https://amabledata.com/docs/crm/tags Summary: Label contacts with tags, organise tags in categories and use them in filters, segments, imports and automations. ## Overview Tags are labels you put on contacts: `customer`, `webinar-2026`, `vip`, `newsletter`. A contact can have any number of tags. Tags drive filters and saved searches, broadcast and automation segments, and automation triggers. Tags can be grouped in **categories** (for example "Interests" or "Lifecycle"), which keeps long tag lists tidy and lets the same name exist in different categories. - **Where:** sidebar group **CRM** › **Tags**. - **URL:** `/t//tags`. - **Who uses it:** everyone can see tags; creating, editing and deleting tags needs `tags:write`; managing categories needs `settings:manage`; putting tags on contacts needs `contacts:write`. ## How it works - **Names** are unique within a category, ignoring case: you cannot have `VIP` and `vip` in the same category (or both without a category), but you can have `VIP` in two different categories. - **Applying** a tag to a contact records when and by whom. Each new application writes **Tag applied** on the contact's timeline; each removal writes **Tag removed**. Applying a tag the contact already has changes nothing. - **Deleting** a tag hides it everywhere at once: contacts stop having it, filters and segments stop matching it. The links are kept, so **Undo** brings the tag back with all its contacts. Deleting does not write **Tag removed** on each contact. - **Deleting a category** keeps its tags; they become tags without a category. - The **Contacts** count of a tag counts non-archived contacts only. ### Where tags are applied | Place | How | | --- | --- | | [Contact page](https://amabledata.com/docs/crm/contact-detail#tag-the-contact) › **Tags** tab | Pick tags and click **Apply**; remove with **×**. | | [Contacts](https://amabledata.com/docs/crm/contacts#apply-or-remove-tags-on-many-contacts) list | Select contacts, **Apply tags** / **Remove tags**. | | [Import](https://amabledata.com/docs/crm/importing-contacts) | A **Tags** column (names, created when missing) and **Tag every imported contact**. | | [Automations](https://amabledata.com/docs/marketing/automations) | Steps that add or remove tags. | | [Forms](https://amabledata.com/docs/forms/overview) and [booking pages](https://amabledata.com/docs/bookings/event-types) | Tags configured on the form or event type. | | [REST API](https://amabledata.com/docs/developers/rest-api) | `POST /tags/{id}/apply` and `/remove` with up to 1,000 contacts per call. | ### Where tags are used - The tag condition of the [query builder](https://amabledata.com/docs/crm/record-search): **Has any of the tags**, **Has all the tags**, **Has none of the tags**. - Saved searches, and therefore [broadcast](https://amabledata.com/docs/marketing/broadcasts) and [automation](https://amabledata.com/docs/marketing/automations) segments. - Automation triggers on a tag being applied or removed. - The **Tags** column of the contact list. ## Step by step ### Create a tag 1. Click **New tag** (toolbar, top right). 2. The dialog **New tag** says "Names are unique within a category." Fill in **Name** (required, up to 100 characters), **Category** (or **— None —**) and **Description** (up to 1,000 characters). 3. Click **Save**. A toast confirms **Saved**. You can also create a tag while picking tags anywhere: type a name that does not exist and choose **Create “name”**. The toast says **Tag “name” created**. This option appears only with `tags:write`. ### Edit a tag Click the row (with `tags:write`) or choose **Edit** in the row menu. The dialog **Edit tag** lets you change name, category and description. Renaming a tag renames it on every contact. ### Create a category 1. In the **Categories** panel on the left click the folder-plus button (**New category**). Needs `settings:manage`. 2. Fill in **Name** (required, up to 100 characters, unique ignoring case) and **Description**. 3. Click **Save**. Hover a category to see its pencil (**Edit category**) and trash (**Delete category**) buttons. Deleting asks "Delete the category “*name*”?" ("Its tags are kept without a category.") and confirms with **Category deleted**. ### Filter and search tags - Click **All tags**, **Without category** or a category in the left panel. - Type in **Search tags…**. Names starting with your text are listed first, then names containing it, ignoring case. - 100 tags load at a time; click **Load more** for the next ones. ### See the contacts of a tag Choose **View contacts** in the row menu. The contact list opens with the advanced search showing the condition **Has any of the tags** *tag*. ### Delete tags 1. Select one or more tags (or use **Delete** in a row menu). 2. Confirm "Delete N items?" ("You can undo right after."). 3. The bar "N items deleted" offers **Undo** for 6 seconds. ## Reference ### Tags page | Area | Content | | --- | --- | | **Categories** panel | **All tags**, **Without category**, then each category (alphabetical). Category buttons for `settings:manage`. | | Toolbar | **Search tags…**, **New tag** (`tags:write`). | | Table columns | **Name**, **Category** (— when none), **Contacts** (number of contacts), **Description** (hidden below 1024 px). All but Description are sortable; default **Name** A–Z. Sorting applies to the loaded tags. | | Row menu | **View contacts**, **Edit** (`tags:write`), **Delete** (`tags:write`). | | Empty table | "Nothing here yet." | ### Tag picker Used on the contact page, in bulk dialogs, in the import wizard, in the query builder and in automations. | Behaviour | Detail | | --- | --- | | Search | Server-side as you type, 25 results per page, prefix matches first. "Searching…", "No tag matches". | | Keyboard | ↑ ↓ move, Enter picks, Backspace removes the last chip, Esc closes. | | Create | **Create “name”** when no tag has exactly that name (needs `tags:write`; not offered in the query builder). | | Chips | Each selected tag is a chip with **Remove *name***. | ### Field limits | Field | Limit | | --- | --- | | Tag name | 1–100 characters, unique per category ignoring case | | Tag description | 1,000 characters | | Category name | 1–100 characters, unique ignoring case | | Category description | 1,000 characters | | Tags applied at once on one contact | 100 | | Tags in one query-builder condition | 100 | ## Limits and permissions | Action | Permission | Roles | | --- | --- | --- | | See tags and categories | `contacts:read` | All roles | | Create, edit, delete tags | `tags:write` | Owner, admin, marketer, sales | | Create, edit, delete categories | `settings:manage` | Owner, admin | | Apply or remove tags on contacts | `contacts:write` | Owner, admin, marketer, sales | ## Troubleshooting | Symptom | Cause | Fix | | --- | --- | --- | | `tag "x" already exists in this category` | Same name (ignoring case) in the same category. | Pick another name or another category. | | `tag category "x" already exists` | A category with that name exists. | Use the existing category. | | **Undo** fails after deleting a tag | Someone created a tag with the same name in the same category meanwhile. | Rename one of them, then restore through the API. | | **Create “name”** is not offered | You lack `tags:write`, or a tag with that name already exists. | Pick the existing tag, or ask for permission. | | Category buttons are missing | Only owners and admins manage categories. | Ask an owner or admin. | | "Without category" shows fewer tags than expected | It filters among the tags loaded so far. | Click **Load more**. | ## Related - [Contacts](https://amabledata.com/docs/crm/contacts) - [Contact page](https://amabledata.com/docs/crm/contact-detail) - [Record search and filters](https://amabledata.com/docs/crm/record-search) - [Importing contacts](https://amabledata.com/docs/crm/importing-contacts) - [Automation triggers and steps](https://amabledata.com/docs/marketing/automation-triggers-and-steps) --- # Record search and filters Section: CRM URL: https://amabledata.com/docs/crm/record-search Summary: The quick search, the query builder (fields, operators, tag conditions, groups), columns, sorting, paging and saved searches of the contact and company lists. ## Overview The [Contacts](https://amabledata.com/docs/crm/contacts) and [Companies](https://amabledata.com/docs/crm/companies) lists share one search view. It combines: - a **quick search** box for free text; - the **advanced search** (query builder) for precise conditions on any field, custom fields included, and on tags; - a **column chooser**, server-side **sorting** and **paging**; - a **Saved searches** sidebar to keep and reuse a search; - the **Saved searches** page that lists every saved search of the workspace. A saved search on contacts is also a **segment**: [broadcasts](https://amabledata.com/docs/marketing/broadcasts) and [automations](https://amabledata.com/docs/marketing/automations) can target the contacts it matches. The general idea is explained in [Search and saved searches](https://amabledata.com/docs/concepts/search-and-saved-searches); this page is the screen-by-screen reference. - **Where:** **CRM** › **Contacts**, **CRM** › **Companies**, **CRM** › **Saved searches**. - **URLs:** `/t//contacts`, `/t//companies`, `/t//searches`. Add `?saved=` to the first two to open a saved search. ## How it works Every change you make builds one query with: | Part | Meaning | | --- | --- | | Entity | Contacts or companies. | | Free text | The quick search text. | | Filter | A tree of conditions and groups. | | Columns | The fields shown. | | Sort | One field and a direction. | The query runs on the server 250 ms after you stop typing. A record must match the free text **and** the filter. Archived records are never included. ### Free text The quick search uses a full-text index. Your text is split into words (letters and digits; at most 10 words count); each word must match the **beginning** of a word in the record. Matching ignores case and accents. What is indexed: | Entity | Indexed content | | --- | --- | | Contact | Full name, preferred and middle name, all emails, all phones (as written and as digits only), company name, job title, website, city, region and country of the addresses, non-sensitive text-like custom fields. | | Company | Name, website, email, phone, city, region, country, description, non-sensitive text-like custom fields. | "Text-like" custom fields are: text, text area, name, email, phone number, website, dropdown, radio, list box, drilldown and state. ### Filter tree The root of the advanced search is a group. A group has **Match all** (every condition must be true) or **Match any** (at least one must be true) and contains conditions and nested groups. Groups nest up to three levels: the root, a group inside it, and a group inside that. Each group holds up to 50 items. Conditions that are not complete (no field, no value, an empty range) are skipped, so a half-filled builder never fails; the badge on **Advanced search** counts only complete conditions. ## Step by step ### Build a filter 1. Click **Advanced search**. The panel shows "Match **all** of these conditions". 2. Click **Condition**. Choose a field in **Choose a field**, then an operator, then type or pick the value. 3. Click **Condition** again to add more. Switch **all** to **any** if any condition is enough. 4. On contacts, click **Tags** to add a tag condition: choose **Has any of the tags**, **Has all the tags** or **Has none of the tags** and pick the tags. 5. Click **Group** to add a nested group. A new group starts with the opposite logic of its parent (an **any** group inside an **all** group, and vice versa) and one empty condition. Remove it with **Remove group**. 6. Remove a single condition with its trash button (**Remove condition**). Example: contacts who are customers in Italy or Spain and did not unsubscribe: ```text Match all of these conditions Tags: Has any of the tags customer Email status is not Unsubscribed Match any of these conditions Country is IT Country is ES ``` Changing the field of a condition keeps the operator when it is valid for the new field, otherwise it switches to the first valid one, and clears the value. ### Save a search 1. Build the search: free text, filter, columns and sort. 2. In the **Saved searches** sidebar click **Save search**. 3. The dialog says "Saved searches can be reused as segments in broadcasts and automations." Type a **Name** (up to 255 characters) and leave **Shared with the workspace** ticked to share it, or untick it to keep it to yourself. 4. Click **Save**. A toast confirms **Search saved** and the search becomes the active one (highlighted in the sidebar). The saved search stores the free text, the filter, the chosen columns and the sort. It does not store the page you were on. ### Open a saved search Click its name in the sidebar. The quick search, the filter (the advanced panel opens if there is one), the columns (if stored) and the sort are restored. Click **All records** to go back to an unfiltered list (it clears text and filter, and keeps columns and sort). You can also open one from **CRM** › **Saved searches** (see below), from a link with `?saved=`, or pick it as a segment in broadcasts and automations. ### Update a saved search 1. Open it, change the text, filter, columns or sort. 2. Click **Update “name”** under **Save search**. A toast confirms **Search updated**. Segments using it pick up the new conditions the next time they are evaluated. ### Rename, share or delete Hover the saved search and open its menu (**Actions for *name***): - **Rename** opens the name dialog, where you can also change **Shared with the workspace**. - **Delete** asks "Delete “*name*”?" ("Broadcasts or automations using it as a segment stop matching contacts.") and confirms with **Search deleted**. If it was the active search, the list goes back to **All records**. ### Manage all saved searches 1. Open **CRM** › **Saved searches**. The hint reads "Create saved searches from the contact or company list." 2. Click a row (or **Open** in its menu) to open the search in the contact or company list. 3. With `saved_searches:write`, select rows and click **Delete**, then confirm "Delete N items?" ("This cannot be undone."). There is no undo. ## Reference ### Operators | Operator label | Meaning | | --- | --- | | **is** / **is not** | Equal / different. **is not** also matches empty values. | | **contains** / **does not contain** | Text contains the value anywhere. For multi-value fields: has / does not have that value. **does not contain** also matches empty values. | | **starts with** / **ends with** | Text begins / ends with the value. | | **is empty** / **is not empty** | No value / any value. No value input. | | **greater than** / **at least** / **less than** / **at most** | `>`, `≥`, `<`, `≤` for numbers and dates. | | **between** | Inclusive range: two inputs, **From** "and" **To**. | | **is one of** / **is none of** | Matches any value in a list. **is none of** also matches empty values. | Text comparisons ignore case. ### Operators by field kind | Kind | Operators | | --- | --- | | Text | is, is not, contains, does not contain, starts with, ends with, is empty, is not empty, is one of, is none of | | Choice (enum) and reference (owner, company, lead source) | is, is not, is one of, is none of, is empty, is not empty | | Number | is, is not, greater than, at least, less than, at most, between, is one of, is none of, is empty, is not empty | | Date | is, is not, greater than, at least, less than, at most, between, is empty, is not empty | | Date and time (Created, Updated, date-time custom fields) | is, greater than, at least, less than, at most, between, is empty, is not empty | | Yes / no | is, is not, is empty, is not empty | | Multi-value (list box, users) | contains, does not contain, is one of, is none of, is empty, is not empty | ### Value inputs | Field | Input | | --- | --- | | Choice fields with known values (**Owner**, **Lead source**, **Source type**, **Email status**, dropdown/radio/list box/user custom fields) | A list; **is one of** / **is none of** use a multi-select. | | Yes / no | **Yes** / **No**. | | **Company** | Company search. | | Dates and date-times | Date picker. | | Numbers | Number input (comma or dot). | | Other text with **is one of** / **is none of** | Free text, "Values separated by commas". | ### Date semantics Dates in conditions are calendar days. On date-time fields (**Created**, **Updated**): - **is** *day* matches the whole day; - **greater than** *day* means after the end of that day, **at least** *day* means from its start; - **less than** *day* means before its start, **at most** *day* means until its end; - **between** includes both days entirely. Days are evaluated in UTC. ### Contact fields | Field | Kind | Filter | Sort | Column | | --- | --- | --- | --- | --- | | First name, Middle name, Last name, Preferred name, Prefix, Suffix | Text | Yes | Yes | Yes | | Full name (first + last) | Text | Yes | Yes | Name column | | Job title, Website, Spouse name, Time zone | Text | Yes | Yes | Yes | | Language | Choice | Yes | Yes | Yes | | Email (primary), Phone (primary) | Text | Yes | Yes | Yes | | Any email, Any phone | Text, checked against every email / phone (phones compared as digits) | Yes | No | No | | Company | Reference | Yes | Yes | Yes | | Company name | Text | Yes | Yes | Yes | | Owner, Lead source | Reference | Yes | Yes | Yes | | Source type, Email status | Choice | Yes | Yes | Yes | | UTM source, UTM medium, UTM campaign, UTM term, UTM content | Text | Yes | Yes | Yes | | Score | Number | Yes | Yes | Yes | | Birthday, Anniversary | Date | Yes | Yes | Yes | | City, Region, Postal code | Text (first address) | Yes | Yes | Yes | | Country | Choice (first address) | Yes | Yes | Yes | | Created, Updated | Date and time | Yes | Yes | Yes | | Tags | Multi-value | Use a **Tags** condition | No | Yes | | Emails (all) | Multi-value | No | No | Yes | | Custom fields | By type | Yes | Yes (not multi-value) | Yes | ### Company fields | Field | Kind | | --- | --- | | Name, Website, Email, Phone, Description, City, Region, Postal code | Text | | Country | Choice | | Owner | Reference | | Contacts (number of linked contacts) | Number | | Created, Updated | Date and time | | Custom fields | By type | ### Tag conditions (contacts only) | Match | True when the contact has… | | --- | --- | | **Has any of the tags** | at least one of the chosen tags. | | **Has all the tags** | every chosen tag. | | **Has none of the tags** | none of them. | Deleted tags are ignored. Up to 100 tags per condition. ### Results table | Feature | Detail | | --- | --- | | Page size | 50 rows. | | Footer | "*from*–*to* of *total*", with **Previous page** and **Next page**. | | Sort | Click a header; text starts A–Z, numbers and dates start highest/newest. Empty values sort first in ascending order. Default **Created**, newest first. | | Columns | **Columns** popover, remembered per browser and workspace. | | Reset | Any change to the query returns to page 1 and clears the selection. | ### Saved searches page columns | Column | Content | | --- | --- | | **Name** | Sortable; default sort A–Z. | | **Records** | **Contacts** or **Companies**. | | **Conditions** | Number of conditions (the free text counts as one). | | **Visibility** | **Shared with the workspace** or **Only me**. Hidden below 768 px. | | **Owner** | Who created it. Hidden below 1024 px. | | **Updated** | Last change. Hidden below 1024 px. | Empty state: "No saved searches yet." ### Visibility | Saved search | Who sees it | Who can rename, update, delete it | | --- | --- | --- | | Shared | Every member | Every member with `saved_searches:write` | | Only me | Its creator | Its creator (with `saved_searches:write`) | ## Limits and permissions | Item | Limit | | --- | --- | | Free text | 200 characters, first 10 words | | Conditions per group | 50 | | Group depth | 3 levels | | Values in **is one of** | 500 | | Text value | 1,000 characters | | Tags per tag condition | 100 | | Columns | 50 | | Saved search name | 255 characters | | Action | Permission | Roles | | --- | --- | --- | | Search, filter, open saved searches | `contacts:read` | All roles | | Save, update, rename, delete saved searches | `saved_searches:write` | Owner, admin, marketer, sales, analyst | | Filter or sort on sensitive custom fields | `contacts:read_sensitive` | Owner, admin, marketer, sales, analyst | Sensitive custom fields can be shown as columns by everyone, but their values are masked for roles without `contacts:read_sensitive`. ## Troubleshooting | Symptom | Cause | Fix | | --- | --- | --- | | A condition seems to be ignored | It is incomplete (missing value or second bound). | Complete it; the badge on **Advanced search** shows how many conditions count. | | "*field* is a sensitive field" | You filtered or sorted on a sensitive custom field without `contacts:read_sensitive`. | Remove the condition. | | `unknown field "custom.key" for contact` | A custom field used by a saved search was deleted. | Edit the saved search and remove the condition, then **Update**. | | `operator x is not valid for field (kind)` | The field changed type or the query came from the API with a wrong operator. | Pick an operator from the list. | | `expected a date YYYY-MM-DD` / `expected a number` | Wrong value for the field kind (API queries). | Use the expected format. | | **Save search** is missing | Your role lacks `saved_searches:write` (viewer). | Ask an owner or admin. | | The sidebar is missing | The window is narrower than 1024 px. | Widen the window, or use **CRM** › **Saved searches**. | | A broadcast segment stopped matching | Its saved search was deleted or changed. | Recreate or fix the saved search. | | The quick search finds nothing for part of a word | Words match from their beginning (`son` does not find `Johnson`). | Type the start of the word, or use **contains** in the advanced search. | ## Related - [Search and saved searches](https://amabledata.com/docs/concepts/search-and-saved-searches) - [Contacts](https://amabledata.com/docs/crm/contacts) - [Companies](https://amabledata.com/docs/crm/companies) - [Tags](https://amabledata.com/docs/crm/tags) - [Command palette](https://amabledata.com/docs/crm/command-palette) - [Broadcasts](https://amabledata.com/docs/marketing/broadcasts) - [Automations](https://amabledata.com/docs/marketing/automations) --- # Command palette Section: CRM URL: https://amabledata.com/docs/crm/command-palette Summary: Search contacts, companies, notes and orders from anywhere in the workspace with Cmd+K or Ctrl+K. ## Overview The command palette is the global search box of the workspace. It finds contacts, companies, notes and orders by any word they contain, from any page, and opens the result in one keystroke. - **Where:** the **Search…** button in the top bar of every workspace page (on wide screens it shows the label and the shortcut `⌘K`; on narrow screens only the magnifier icon). - **Shortcut:** ⌘ + K on macOS, Ctrl + K on Windows and Linux. The shortcut works on every page and toggles the palette open and closed. - **Who can use it:** every role with `contacts:read` (all built-in roles). ## How it works - The palette searches the workspace's full-text index, the same one used by the quick search of the [contact](https://amabledata.com/docs/crm/contacts) and [company](https://amabledata.com/docs/crm/companies) lists, but across several record types at once. - It searches 200 ms after you stop typing and returns up to 20 results, best matches first. Matches in the record's title (a contact's name, a company's name, a note's title) weigh more than matches in the rest of its content. - Each word you type must match the beginning of a word in the record; case and accents are ignored. Up to 10 words count. - Results are grouped by type, each with an icon: **Contacts**, **Companies**, **Notes**, **Orders**. Under each title a short snippet shows the matching text. ### What is searched | Type | Title | Also searched | | --- | --- | --- | | Contact | First and last name; the primary email when there is no name; "(no name)" when there is neither | Preferred and middle name, emails, phones, company name, job title, website, city, region, country, non-sensitive text-like custom fields | | Company | Name | Website, email, phone, city, region, country, description, non-sensitive text-like custom fields | | Note | Note title, or the first 80 characters of the note | Note text | | Order | Order number | Customer name and email, product names and SKUs, promo code, order notes, order custom fields | Archived contacts and companies, merged contacts and deleted notes are removed from the index and never appear. ## Step by step ### Find and open a record 1. Press ⌘/Ctrl + K, or click **Search…** in the top bar. 2. Type in **Search contacts, companies, notes…**. Before you type, the palette shows "Type to search. Press ⌘K / Ctrl+K anywhere." 3. Move through the results with ↑ and ↓ and press Enter, or click a result. 4. The palette closes and the record opens. Press Esc (or the shortcut again) to close the palette without opening anything. ## Reference ### What selecting a result opens | Result | Opens | | --- | --- | | Contact | The [contact page](https://amabledata.com/docs/crm/contact-detail). | | Company | The [company page](https://amabledata.com/docs/crm/companies). | | Note | The page of the contact the note belongs to; otherwise of its company; otherwise, for a note attached only to a deal, the [deal page](https://amabledata.com/docs/crm/deals). | | Order | The [order page](https://amabledata.com/docs/ecommerce/orders). | ### Messages | Message | When | | --- | --- | | "Type to search. Press ⌘K / Ctrl+K anywhere." | The search box is empty. | | "No results." | Nothing matches the words you typed. | ## Limits and permissions | Item | Value | | --- | --- | | Permission | `contacts:read` | | Results | 20, best first | | Query | 1–200 characters, first 10 words | | Typing delay before searching | 200 ms | Sensitive custom fields are never indexed, so their values cannot be found from the palette. ## Troubleshooting | Symptom | Cause | Fix | | --- | --- | --- | | The shortcut does nothing | Another app or a browser extension captures ⌘/Ctrl + K, or the focus is outside the page. | Click inside the page first, or use the **Search…** button. | | A contact is not found by part of a word | Words match from their beginning (`ann` finds `Annalisa`, `lisa` does not). | Type the start of the word. | | A contact is not found by a custom field value | The field is sensitive, or its type is not text-like (numbers, dates, yes/no are not indexed). | Use the advanced search on the [contact list](https://amabledata.com/docs/crm/record-search). | ## Related - [Record search and filters](https://amabledata.com/docs/crm/record-search) - [Contacts](https://amabledata.com/docs/crm/contacts) - [Companies](https://amabledata.com/docs/crm/companies) - [Search and saved searches](https://amabledata.com/docs/concepts/search-and-saved-searches) --- # Inbox Section: Conversations URL: https://amabledata.com/docs/conversations/inbox Summary: The shared inbox: one thread per contact and channel, with assignment, statuses, internal notes, delivery states and a conversations card on every contact. ## Overview The **Conversations** inbox is the place where your team reads and answers the messages that contacts send on your messaging channels (for example WhatsApp). Every channel is provided by an installed app; see [Channels](https://amabledata.com/docs/conversations/channels). Everyone with access to the inbox sees the same conversations, so it works as a shared inbox: you assign a conversation to a teammate, park it as pending, close it when it is done, and leave internal notes that the contact never sees. - **Where:** sidebar group **CRM** › **Conversations**. - **URL:** `/t//conversations`. The open view and the open conversation are kept in the address bar (`?view=mine&c=`), so you can bookmark or share a link to a thread with a teammate. - **Who:** members whose role has `conversations:read` see the inbox; replying, assigning and closing need `conversations:write` (see [Limits and permissions](#limits-and-permissions)). The inbox also appears on each contact: the contact page has a **Conversations** card with the contact's threads and a **New message** button to write first (see [Write first to a contact](#write-first-to-a-contact)). :::note Conversations only arrive from channel apps. Until an app that provides a channel is installed and active, the inbox is empty and shows: "Conversations arrive from channels like WhatsApp or SMS, provided by apps. Install a messaging app to start." with a **Browse apps** button that opens **Settings** › **Apps**. ::: ## How it works ### One conversation per contact address and channel A conversation (thread) is identified by a **channel** and an **address**: the phone number, email address or provider id that the contact uses on that channel. The same address on the same channel always lands in the same thread, so a contact who writes again weeks later continues the existing conversation. A contact who writes from two channels has two threads. Addresses are normalised before matching: - **Phone numbers** keep only digits; a leading `+` or `00` becomes `+` (so `0039 333 1234567` and `+39 333 1234567` are the same thread). A phone address needs at least 6 digits. - **Email addresses** are lowercased. - **Provider ids** are kept as they are. ### Linking to contacts When a message arrives from an address that has no thread yet, amabledata links the new thread to a contact: 1. a contact whose phone (or email, for email-based channels) matches the address; 2. otherwise a contact whose email matches the email the app passed along with the message; 3. otherwise a **new contact** is created with the name, email and phone the app provided (source type "other"). For channels that address contacts by provider id, a contact is created only if the app sent at least a name or an email; otherwise the thread stays without a contact and shows the raw address. Contact [custom fields](https://amabledata.com/docs/settings/custom-fields) marked **Required** never block this: the new contact is created with them empty. The thread header and list show the contact's display name (falling back to the address). When contacts are merged, their threads move to the surviving contact. When a contact is erased (right to erasure), all of their threads and messages are deleted. ### Statuses | Status | Meaning | How a conversation gets there | | --- | --- | --- | | Open | Needs attention. | Every new conversation starts open. A closed or pending conversation becomes open again when the contact writes. A closed one also reopens when a teammate sends a reply (not a note), or when someone clicks **Reopen**. | | Pending | Parked: you are waiting for something. | **Pending** button in the thread header (only shown while the conversation is open). | | Closed | Done. | **Close** button in the thread header (available while open or pending). | A pending conversation waits for the contact: when the contact writes again it goes back to **Open**, so it returns to the **Open** queue. Your own replies and notes leave it pending. Going from pending to open emits no `conversation.reopened` event (that event is only for closed conversations). ### Assignment Each conversation has at most one **Assignee**, chosen among the members of the workspace, or **Unassigned**. Assignment never changes the status. Anyone with `conversations:write` can assign or reassign any conversation, including to themselves. ### Messages A thread contains three kinds of messages: | Kind | Shown as | Notes | | --- | --- | --- | | Incoming | Grey bubble on the left. | Sent by the contact. Increases the unread counter. | | Outgoing | Coloured bubble on the right, with the author's name, time and a delivery icon. | Replies from the team, and messages the channel app sent on its own (for example an automation step, or a reply typed in the provider's own phone app). The latter show without an author name. | | Internal note | Amber bubble with a dashed border, labelled **Internal note** · author name. | Visible to your team only, never sent to the contact. Notes do not change the conversation's last message, preview, unread counter or status. | Outgoing messages sent as a template show a small **Template** label above the text (see [Reply window and templates](https://amabledata.com/docs/conversations/reply-window-and-templates)). ### Delivery states Outgoing messages move through these states. The channel app reports them; amabledata never steps back (a late "delivered" update does not overwrite "read"). | State | Icon / label | Meaning | | --- | --- | --- | | Sending | Clock | Saved and being handed to the channel app. | | Sent | Check mark | The channel app accepted the message. | | Delivered | Check mark | The provider delivered it to the contact's device. | | Read | Check mark in the accent colour | The contact read it. | | Not delivered | Red cross, plus "Not delivered: \" under the text | The app or the provider refused it. Write the message again after fixing the cause. | Incoming messages have the state **Received**; notes have the state **Note**. ### Unread counter - Every incoming message adds 1 to the conversation's unread counter (shown as a badge on the row, and the name is in bold). - Opening the conversation marks it as read automatically (the counter goes back to 0). - Sending a reply from the inbox also resets the counter. Messages that the channel app sent on its own leave it unchanged. ### Refresh The inbox has no live push connection: the list, the counters and the open thread refresh automatically **every 15 seconds**, and immediately after any action you take (reply, note, assignment, status change). The list of channels is cached for one minute. ### Events Every change produces an event that you can receive with [webhooks](https://amabledata.com/docs/developers/webhooks) and that installed apps with `conversations:read` can subscribe to. When the conversation has a contact, the event also appears on the contact's activity timeline. | Event | When | Timeline label | | --- | --- | --- | | `conversation.created` | A new thread is opened (first inbound message, or the team writes first). | Conversation started | | `conversation.assigned` | The assignee changes (including to unassigned). | Conversation assigned | | `conversation.closed` | The status becomes closed. | Conversation closed | | `conversation.reopened` | A closed conversation becomes open again. | Conversation reopened | | `message.received` | A contact's message arrives. | Message received | | `message.sent` | An outgoing message is accepted by the channel app, or the app records a message it sent on its own. | Message sent | | `message.status_changed` | The delivery state changes (delivered, read, failed). | Message status updated | The payload carries the conversation, the contact (or none) and the channel and, for message events, the message and the first 140 characters of its text. Delivery-state events also carry the new state and, for failures, the reason. ## Step by step ### Read your conversations 1. Open **CRM** › **Conversations**. 2. Pick a view from the tabs at the top: **Open**, **Mine**, **Unassigned**, **Pending** or **Closed**. The first three show a counter in brackets when it is not zero. 3. Click a row in the left column to open the thread on the right. The thread scrolls to the most recent message and the conversation is marked as read. 4. To see earlier messages, click **Older messages** at the top of the thread (50 messages are loaded at a time). To see more conversations, click **Load more** at the bottom of the list (50 per page). ### Reply to a contact 1. Open the conversation. 2. Type in the box at the bottom (placeholder "Write a reply…"). Line breaks are kept. 3. Click **Send**, or press **Ctrl + Enter** (**⌘ + Enter** on macOS). 4. Watch the delivery icon next to the time. If the channel refuses the message, a toast and the bubble show "Not delivered: \". If more than the channel's reply window has passed since the contact last wrote, free text is not accepted and the composer switches to templates. See [Reply window and templates](https://amabledata.com/docs/conversations/reply-window-and-templates). ### Add an internal note 1. Open the conversation and click **Internal note** under the text box. The composer turns amber and the placeholder becomes "Only your team sees notes". 2. Type the note and click **Add note** (or **Ctrl/⌘ + Enter**). 3. Click **Internal note** again to go back to normal replies. Notes can always be added, even when the reply window is closed. ### Assign a conversation 1. Open the conversation. 2. In the thread header, open the **Assignee** selector and choose a member, or choose **Unassigned** to remove the assignee. The conversation now appears in that member's **Mine** view. ### Mark as pending, close or reopen 1. Open the conversation. 2. Click **Pending** to park an open conversation, **Close** to close it, or **Reopen** on a closed conversation. ### Open the contact In the thread header, the contact's name is a link to the contact page. Under it you see the channel name and the address used on that channel. ### Write first to a contact You can start a conversation from the contact page, on any channel whose app is active. 1. Open the contact (**CRM** › **Contacts**, then the contact). 2. In the **Conversations** card, click **New message**. 3. If more than one channel is available, choose it in the selector (each option shows "channel · app name"). With a single channel the dialog shows "Sent via \." 4. Type the message, or, if the channel requires it, pick an approved template and fill its parameters (the dialog says "To write first, this channel requires an approved template."). 5. Click **Send**. The inbox opens on the new (or existing) thread. The address comes from the contact record: the primary phone number for phone-based channels, the primary email for email-based channels. If the contact has none, you get "The contact has no address for this channel." Add the phone or email to the contact and try again. If a thread with that address already exists on the channel, the message is added to it instead of opening a new one. ## Reference ### Inbox views | Tab | Shows | Counter in the tab | | --- | --- | --- | | **Open** | Conversations with status open. | Number of open conversations. | | **Mine** | Conversations assigned to you, in any status (closed ones included). | Your conversations that are not closed. | | **Unassigned** | Open conversations without an assignee. | Number of open, unassigned conversations. | | **Pending** | Conversations with status pending. | — | | **Closed** | Conversations with status closed. | — | All views are sorted by the time of the last message, newest first. Notes do not move a conversation up. ### Conversation row | Element | Content | | --- | --- | | Name | Contact name, or the raw address when no contact is linked. Bold when there are unread messages. | | Time | Time of the last message (today) or its date (earlier days), in your locale. | | Preview | First 140 characters of the last message, prefixed with "You:" when it was outgoing. | | Badge | Number of unread incoming messages. | | Footer | Channel name and, if assigned, the assignee's name. | ### Thread header | Control | What it does | Needs | | --- | --- | --- | | Contact name | Opens the contact page. | — | | Channel · address | Channel name and the contact's address on it. | — | | **Assignee** selector | Assigns to a member or **Unassigned**. | `conversations:write` (otherwise read-only) | | **Pending** | Sets the status to pending. Visible only while open. | `conversations:write` | | **Close** / **Reopen** | Closes the conversation, or reopens a closed one. | `conversations:write` (otherwise disabled) | ### Composer | Element | Details | | --- | --- | | Text box | 3 lines, up to **4,096 characters**. Leading and trailing spaces are trimmed; an empty message cannot be sent. Disabled when the reply window is closed and the channel has no templates. | | **Internal note** | Toggles note mode. | | **Template** | Shown only for channels that offer templates, while the reply window is open: switches the composer to the template picker. When the window is closed the picker is shown automatically. | | Hint | "Ctrl/⌘ + Enter to send". | | **Send** / **Add note** | Sends the reply or saves the note. Disabled while sending or when there is nothing to send. | The composer is hidden for members without `conversations:write`. ### Contact page card | Element | Details | | --- | --- | | Card title | **Conversations**. The card is hidden when you lack `conversations:read`, or when the workspace has no active channel and the contact has no thread. | | Thread list | Up to 20 threads of the contact: channel name, preview of the last message, status (Open, Pending, Closed). Click to open the thread in the inbox. | | Empty state | "No conversations with this contact yet." | | **New message** | Opens the **New message** dialog. Visible with `conversations:write` when at least one channel app is active (paused apps are not offered). | ### What is not available The inbox does not offer full-text search, attachments (images, files, voice notes), or custom filters beyond the five views. Messages are plain text. ## Limits and permissions | Action | Permission | Roles that have it | | --- | --- | --- | | See the inbox, read threads, open a thread (marks it read) | `conversations:read` | Owner, Admin, Marketer, Sales, Analyst, Viewer | | Reply, add notes, assign, change status, write first | `conversations:write` | Owner, Admin, Marketer, Sales | See [Roles and permissions](https://amabledata.com/docs/concepts/roles-and-permissions) for the full matrix. API keys need the same permissions as scopes. | Limit | Value | | --- | --- | | Message length | 4,096 characters | | Conversations per page | 50 | | Messages per page | 50 | | Threads listed on a contact | 20 | | Preview length | 140 characters | | Automatic refresh | every 15 seconds | | Time the channel app has to accept a reply | 10 seconds, then the message is marked not delivered | ## Troubleshooting | Symptom | Cause | Fix | | --- | --- | --- | | "Conversations arrive from channels like WhatsApp or SMS, provided by apps. Install a messaging app to start." | No channel app is installed. | Click **Browse apps** and install a messaging app. See [Channels](https://amabledata.com/docs/conversations/channels). | | "No conversations here." | The current view is empty. | Check the other tabs; **Mine** only shows conversations assigned to you. | | A message shows "Not delivered: the channel app is paused" | The app providing the channel is paused. | Resume it in **Settings** › **Apps**, then send again. | | "Not delivered: the channel app is not installed" | The app was uninstalled after the conversation started. | Reinstall the app; the thread then works again. | | "Not delivered: \" | The app or the provider refused the message (wrong number, provider error, timeout of 10 seconds…). The reason comes from the app. | Fix the cause the reason describes and send again. | | The channel name shows as a technical id (`app:key`) | The app that provided the channel is no longer installed. | Reinstall the app to restore the channel. | | "The contact has no address for this channel." | The contact has no primary phone (or email) for the chosen channel. | Add it to the contact, then write again. | | The text box is greyed out and an amber banner says the channel "cannot reopen the conversation until they write again" | The reply window is closed and the channel offers no templates. | Wait for the contact to write. See [Reply window and templates](https://amabledata.com/docs/conversations/reply-window-and-templates). | | "Something went wrong" toast | The request failed (network, or the server refused it). | Retry; reload the page if the thread changed meanwhile. | | A new message did not appear yet | The inbox refreshes every 15 seconds. | Wait a few seconds or reload. | | You cannot see the **Assignee** selector enabled, **Close**, or the composer | Your role lacks `conversations:write`. | Ask an owner or admin to change your role. | | "assigned_to: not a member of this workspace" (API) | The user id is not a member of the workspace. | Use the id of a current member. | ## Related - [Channels](https://amabledata.com/docs/conversations/channels) - [Reply window and templates](https://amabledata.com/docs/conversations/reply-window-and-templates) - [Contact detail](https://amabledata.com/docs/crm/contact-detail) - [Apps](https://amabledata.com/docs/settings/apps) - [Roles and permissions](https://amabledata.com/docs/concepts/roles-and-permissions) - [Webhooks](https://amabledata.com/docs/developers/webhooks) - [Apps SDK](https://amabledata.com/docs/developers/apps-sdk) --- # Channels Section: Conversations URL: https://amabledata.com/docs/conversations/channels Summary: Messaging channels come from installed apps: which channels exist today, how to connect WhatsApp, and how a channel app exchanges messages with the inbox. ## Overview A **channel** is a messaging service, such as a WhatsApp number, whose conversations land in the [inbox](https://amabledata.com/docs/conversations/inbox). amabledata has no built-in messaging channel: every channel is provided by an **app** installed from **Settings** › **Apps**. When you install an app that declares a channel, the channel appears in the inbox and on the contact page; when you pause or remove the app, its channel stops sending. - **Where you connect channels:** sidebar group **Settings** › **Apps** (`/t//settings/apps`). The empty inbox also links there with **Browse apps**. - **Where you use them:** **CRM** › **Conversations**, and the **Conversations** card of each contact. - **Who:** installing apps needs `apps:install`; configuring them needs `apps:manage` (owners and admins). Using the channels needs the conversations permissions (see [Limits and permissions](#limits-and-permissions)). In the app catalog, an app that brings a channel lists "Conversation channel: \" under **What it adds**. ## How it works ### Channels available today | Channel | App | Address used | Reply window | Templates | | --- | --- | --- | --- | --- | | WhatsApp | **[Kapso WhatsApp](https://amabledata.com/docs/apps/kapso-whatsapp)** (official app, free; needs a Kapso account, WhatsApp conversations are billed by Meta through Kapso) | Phone number | 24 hours | Yes, approved WhatsApp templates | Kapso WhatsApp is the only official app that provides a channel; its templates page, automation blocks and triggers are documented on [its own page](https://amabledata.com/docs/apps/kapso-whatsapp). Other channels can be added by any app built with the [Apps SDK](https://amabledata.com/docs/developers/apps-sdk): the platform supports channels of kind WhatsApp, SMS, Telegram, Messenger and "other", addressed by phone number, email address or a provider id. Private apps can be installed from a manifest URL with **Install from URL**. ### What a channel defines Each app can provide up to **5 channels**. For each one it declares: | Property | Meaning | | --- | --- | | Name | Shown in the inbox rows, thread header and contact card (localised). | | Kind | `whatsapp`, `sms`, `telegram`, `messenger` or `other`. | | Address | How the channel reaches a contact: `phone` (default), `email` or `external_id` (a provider id). Writing first uses the contact's primary phone or primary email accordingly; provider-id channels cannot be used to write first. | | Reply window | Optional, 1 to 720 hours: free text is accepted only this long after the contact's last message. A channel with a reply window must also offer templates. | | Templates | Optional: the app lists the approved templates the team can send. | The channel id used in the API and in webhook payloads is `:`, for example `kapso:whatsapp`. ### Message flow - **Incoming:** the app receives the message from its provider and posts it to amabledata. The inbox finds or creates the thread and the contact. The same provider message id is stored only once, so retries never duplicate messages. - **Replies:** when a teammate sends a reply, amabledata calls the app right away, which sends it through the provider. The app has 10 seconds to accept it; otherwise, or if it refuses, the message is marked **Not delivered** with the reason the app gave. - **Delivery updates:** the app reports delivered, read or failed states as the provider sends them. The inbox shows them on each message. - **Messages sent outside the inbox:** messages the app sends on its own (an automation step, or a reply typed in the provider's phone app) are recorded in the thread without being sent again, and do not reset the unread counter. If the app was granted `contacts:read`, each reply it receives also carries the contact's id and name; otherwise only the address. ### App status and channels | App status | Effect on its channels | | --- | --- | | Active | Fully working. | | Paused | Still listed and existing threads stay readable, but replies fail with "the channel app is paused", and the channel is not offered in **New message** on contacts. | | Uninstalling / uninstalled | The channel disappears from the list as soon as you click **Uninstall**; existing threads stay in the inbox, show the technical channel id instead of the name, and replies fail with "the channel app is not installed". Reinstalling the same app restores them. | ## Step by step ### Connect WhatsApp with Kapso WhatsApp 1. Create a project and an API key on [Kapso](https://app.kapso.ai) (**Project** › **API keys** in Kapso). 2. In amabledata open **Settings** › **Apps**, find **Kapso WhatsApp** (category Messaging) and click **Install**. 3. Review the permissions it asks for (read and write contacts, write conversations, trigger automations), tick the consent box "I allow Kapso WhatsApp to access this workspace with the permissions above." and confirm. You are redirected to the app to finish the setup. 4. Open the app's **Settings** screen, paste the Kapso API key and save. The app checks the key and lists the numbers already in your Kapso project. 5. Choose a number, or connect a new one: a Kapso setup page opens in a new tab where you log in with Facebook and pick or verify the number (a new number, or the WhatsApp Business app you already use on your phone, which keeps working in parallel). When it finishes, the tab returns to the app, which connects the number. 6. Open **CRM** › **Conversations**. Messages sent to the number now appear here. Kapso WhatsApp also adds a **WhatsApp templates** page (to submit templates to Meta for review), the **Send WhatsApp template** automation action, and the **WhatsApp message received**, **WhatsApp marketing stopped** and **WhatsApp marketing resumed** automation triggers. Kapso's sandbox number works for trying the inbox, but WhatsApp templates need a real number. ### Pause or remove a channel 1. Open **Settings** › **Apps** and find the app under **Installed apps**. 2. Click **Pause** to stop sending temporarily (**Resume** turns it back on), or **Uninstall** to remove the app and its channels. Conversations and their messages are kept in amabledata in both cases. ### List the channels with the API `GET /api/v2/t//conversations/channels` returns the channels of the installed apps (active or paused), with their id, app, name, kind, address type, whether the app is paused, the reply window in hours (or null) and whether templates are available. It needs `conversations:read`. See [REST API](https://amabledata.com/docs/developers/rest-api). ## Reference ### Channel object (API) | Field | Type | Description | | --- | --- | --- | | `id` | string | `:`. | | `app_id` | string | Id of the app. | | `key` | string | Key of the channel inside the app. | | `app_name` | string | Name of the app. | | `name` | object | Localised name (`en`, optional `it`). | | `kind` | string | `whatsapp`, `sms`, `telegram`, `messenger`, `other`. | | `address_field` | string | `phone`, `email` or `external_id`. | | `icon_url` | string or null | Icon of the app. | | `paused` | boolean | True when the app is paused. | | `reply_window_hours` | integer or null | Hours of free text after the contact's last message; null means always. | | `templates` | boolean | True when the app serves templates. | ### Endpoints for channel apps Channel apps call these endpoints with their app token; all need the `conversations:write` scope. Details are in [Apps SDK](https://amabledata.com/docs/developers/apps-sdk). | Endpoint | Purpose | Body | | --- | --- | --- | | `POST /apps/messages/inbound` | A message received from a contact. | `channel`, `external_id` (1–200 chars), `from` (1–200), `text` (up to 4,096), optional `contact` (`given_name`, `family_name` up to 100 chars, `email`), optional `sent_at` (ISO 8601). Answers `201`, or `200` with `duplicate: true` for a known `external_id`. | | `POST /apps/messages/outbound` | A message the app sent on its own. | `channel`, `external_id`, `to`, `text`, optional `template`, optional `status` (`sent` default, `delivered`, `read`, `failed`), optional `sent_at`. | | `POST /apps/messages/status` | Delivery update of a reply sent from the inbox. | `channel`, `external_id`, `status` (`sent`, `delivered`, `read`, `failed`), optional `error` (up to 500 chars). Answers `404` when no message has that `external_id`. | ## Limits and permissions | Action | Permission | Roles | | --- | --- | --- | | Install an app that provides a channel | `apps:install` | Owner, Admin | | Configure, pause or uninstall it | `apps:manage` | Owner, Admin | | See channels and conversations | `conversations:read` | Owner, Admin, Marketer, Sales, Analyst, Viewer | | Reply and write first | `conversations:write` | Owner, Admin, Marketer, Sales | | Limit | Value | | --- | --- | | Channels per app | 5 | | Reply window | 1–720 hours (when declared) | | Time for the app to accept a reply | 10 seconds | | Time for the app to list templates | 8 seconds | ## Troubleshooting | Symptom | Cause | Fix | | --- | --- | --- | | The inbox says "Install a messaging app to start." | No app providing a channel is installed (or all were removed). | Install a channel app from **Settings** › **Apps**. | | Replies fail with "Not delivered: the channel app is paused" | The app is paused (by an admin, or automatically because it stopped accepting events). | Resume the app in **Settings** › **Apps**. | | Replies fail with "Not delivered: the channel app is not installed" | The app was uninstalled. | Reinstall it. | | No messages arrive after installing Kapso WhatsApp | The app setup is not finished: no API key saved or no number connected. | Open the app's **Settings** screen, save the key and connect a number. | | **New message** is missing on a contact | No active channel, or your role lacks `conversations:write`. | Activate a channel app, or ask an admin for the right role. | | An app answer is `unknown_channel` (developers) | The channel key is not declared in the app's manifest. | Use a key from `extensions.channels`. | ## Related - [Inbox](https://amabledata.com/docs/conversations/inbox) - [Reply window and templates](https://amabledata.com/docs/conversations/reply-window-and-templates) - [Apps](https://amabledata.com/docs/settings/apps) - [Apps SDK](https://amabledata.com/docs/developers/apps-sdk) - [Automation triggers and steps](https://amabledata.com/docs/marketing/automation-triggers-and-steps) --- # Reply window and templates Section: Conversations URL: https://amabledata.com/docs/conversations/reply-window-and-templates Summary: When a channel accepts free-text replies, when it requires an approved template, and how to pick, fill and send a template from the inbox. ## Overview Some messaging channels accept free-text messages from a business only for a limited time after the contact's last message. WhatsApp is the best-known case: you can reply freely for 24 hours; after that, you can only send a **template** that Meta approved in advance. amabledata applies these rules for you in the [inbox](https://amabledata.com/docs/conversations/inbox) and in the **New message** dialog of each contact, so that you never send a message the provider would refuse. - **Where:** the composer at the bottom of a thread in **CRM** › **Conversations** (`/t//conversations`), and **New message** in the **Conversations** card of a contact. - **Who:** anyone with `conversations:write` (see [Limits and permissions](#limits-and-permissions)). - **Which channels:** only channels whose app declares a reply window. Today this is WhatsApp through the **Kapso WhatsApp** app (24 hours). Channels without a reply window accept free text at any time. See [Channels](https://amabledata.com/docs/conversations/channels). ## How it works ### The reply window Each channel may declare a reply window, from 1 to 720 hours. For such a channel: - The window **opens** every time the contact sends a message, and stays open for the declared number of hours after that message. - While the window is open, you can send free text (and, optionally, a template). - When the window is **closed**, free text is refused: you can only send an approved template. - A conversation in which the contact never wrote (for example one that you start from the contact page) counts as closed: you must start it with a template. - Sending a template does **not** reopen the window. It reopens only when the contact answers. - Internal notes are never sent, so they are always allowed. The check is based on elapsed time since the contact's last incoming message, and it is enforced both in the composer and on the server: a free-text reply sent through the API to a closed window is refused. A channel that declares a reply window must also offer templates; that way a closed conversation can always be reopened. ### Templates A template is a message prepared and approved on the provider's side (for WhatsApp, reviewed by Meta). amabledata does not store templates: every time you need them, it asks the channel app for the templates that can be sent **right now** (approved and supported). Each template has: - a **name**, a **language** and a **category** (for WhatsApp: marketing, utility or authentication); - a body text with placeholders written as `{{key}}`; - a list of **parameters** (up to 20), each with a key and, optionally, an example value. You create and manage templates in the channel app. With Kapso WhatsApp, open the app's **WhatsApp templates** page to submit templates to Meta and follow their review. ### What the contact receives When you send a template, amabledata passes the template id and the parameter values to the app, which builds the provider message from its own copy of the template. The thread first shows the preview text you saw in the composer, marked with a small **Template** label; if the app returns the final rendered text, the thread updates to show exactly what the contact received. ### Composer behaviour | Situation | What the composer shows | | --- | --- | | Channel without reply window | Free-text box. No banner. | | Reply window open, channel offers templates | Free-text box, plus a **Template** button to send a template anyway. | | Reply window closed, channel offers templates | Amber banner "More than \{hours\} hours since the contact last wrote: the channel only accepts an approved template until they answer." and the template picker instead of the text box. | | Reply window closed, channel offers no templates | Amber banner "More than \{hours\} hours since the contact last wrote: this channel cannot reopen the conversation until they write again." The text box is disabled. | | Note mode (**Internal note** pressed) | Free-text box for the note, no banner, whatever the window. | `{hours}` is the channel's reply window (24 for WhatsApp). ## Step by step ### Reply with a template when the window is closed 1. Open the conversation in **CRM** › **Conversations**. The amber banner tells you the window is closed and the template picker is shown. 2. Open the selector **Choose a template**. Each option reads "name · language · category". 3. Fill every parameter field. Each field is labelled with the parameter key, and shows the example value when the template has one ("key · example"). 4. Check the **Preview** box under the fields: it shows the body with your values. Placeholders you have not filled stay visible as `{{key}}`. 5. Click **Send**. It is enabled only when a template is selected and every parameter has a value. After sending, the composer resets. When the contact answers, the window opens again and the normal text box comes back. ### Send a template while the window is open 1. Open the conversation and click **Template** under the text box (the button is shown only for channels that offer templates and only while the window is open). 2. Choose the template, fill the parameters and check the preview. 3. Click **Send**. To go back to free text without sending, click **Template** again. ### Start a conversation with a template 1. Open the contact and click **New message** in the **Conversations** card. 2. Choose the channel if more than one is available. 3. If the channel has a reply window and the contact has not written on it recently, the dialog says "To write first, this channel requires an approved template." and shows the template picker. Choose the template and fill its parameters. 4. Click **Send**. The inbox opens on the conversation. If the contact wrote recently on that channel (within the window), the dialog shows a normal text box instead. ## Reference ### Template picker | Element | Details | | --- | --- | | **Choose a template** | Required. Lists the templates the app returned (at most 500). | | Parameter fields | One per parameter, all required, up to 1,000 characters each. Leading and trailing spaces are trimmed. | | **Preview** | The template body with the values filled in. | | Loading | "Loading…" while the app answers. | | No templates | "No approved template yet: create one from the channel app and wait for the review." | | App not answering | "The channel app does not answer: templates cannot be loaded right now." | The list of templates is kept for one minute in your browser, then asked again to the app. ### Template object (API) `GET /api/v2/t//conversations/channels//templates` returns `{ "data": [...] }` with these fields. It needs `conversations:read`. | Field | Type | Limits | | --- | --- | --- | | `id` | string | 1–200 characters. | | `name` | string | 1–200 characters. | | `language` | string or null | Up to 20 characters. | | `category` | string or null | Up to 40 characters. | | `text` | string | Up to 4,096 characters, with `{{key}}` placeholders. | | `params` | array | Up to 20 items `{ "key", "example" }`; `key` is 1–64 letters, digits or `_`; `example` up to 200 characters or null. | Entries that do not match these rules are skipped. ### Sending a template (API) Replies (`POST /api/v2/t//conversations//messages`) and new conversations (`POST /api/v2/t//conversations`) accept a `template` object instead of, or together with, `text`: ```json { "text": "Hi Anna, your order 1042 has shipped.", "template": { "id": "order_shipped", "params": { "name": "Anna", "order": "1042" } } } ``` | Field | Rules | | --- | --- | | `template.id` | Required, 1–200 characters. | | `template.params` | Object of key → value; keys 1–64 letters, digits or `_`; values up to 1,000 characters. Default `{}`. | | `text` | Optional with a template: the preview to show in the thread until the app returns the final text. Up to 4,096 characters. | | `note` | Cannot be combined with a template. | See [REST API](https://amabledata.com/docs/developers/rest-api) for authentication and conventions. ## Limits and permissions | Action | Permission | Roles | | --- | --- | --- | | See templates of a channel | `conversations:read` | Owner, Admin, Marketer, Sales, Analyst, Viewer | | Send templates and free text | `conversations:write` | Owner, Admin, Marketer, Sales | | Create or edit templates | Done in the channel app (for Kapso WhatsApp, its **WhatsApp templates** page). | — | | Limit | Value | | --- | --- | | Reply window | 1–720 hours, as declared by the channel (WhatsApp: 24) | | Templates listed | 500 per channel | | Parameters per template | 20 | | Parameter value | 1,000 characters | | Time for the app to list templates | 8 seconds | ## Troubleshooting | Symptom | Cause | Fix | | --- | --- | --- | | The text box is replaced by **Choose a template** | The reply window is closed: the contact last wrote more than the window ago, or never wrote. | Send an approved template, or wait for the contact to write. | | "No approved template yet: create one from the channel app and wait for the review." | The app has no template that can be sent now (none created, or all still in review or rejected). | Create a template in the channel app and wait for the provider's approval. | | "The channel app does not answer: templates cannot be loaded right now." | The app did not answer within 8 seconds, answered with an error, or is paused. | Retry later; check that the app is active in **Settings** › **Apps**. | | **Send** stays disabled with a template selected | A parameter is empty. | Fill every parameter field. | | "Not delivered: \" on a template message | The app or the provider refused it (for example a missing parameter or a template no longer approved). | Fix the cause the reason describes and send again. | | "template: the reply window of this channel is closed: send a template to reopen the conversation" (API) | Free text sent to a closed window. | Send a `template` instead. | | "text: text or template is required" (API) | Neither `text` nor `template` was sent. | Provide one of them. | | "template: notes cannot be templates" (API) | `note: true` combined with a template. | Send the note without the template. | ## Related - [Inbox](https://amabledata.com/docs/conversations/inbox) - [Channels](https://amabledata.com/docs/conversations/channels) - [Contact detail](https://amabledata.com/docs/crm/contact-detail) - [Automation triggers and steps](https://amabledata.com/docs/marketing/automation-triggers-and-steps) - [Apps SDK](https://amabledata.com/docs/developers/apps-sdk) --- # Broadcasts Section: Email marketing URL: https://amabledata.com/docs/marketing/broadcasts Summary: Send one email campaign to an audience of tags and saved searches: the three-step wizard, test sends, scheduling by time zone, throttling, pause and cancel, and the delivery report. ## Overview A **broadcast** is a single email sent once to an audience of contacts: a newsletter, a product announcement, an event invitation. You build it in a three-step wizard (**Recipients**, **Email**, **Review & schedule**), send it now or schedule it, and then follow its delivery, opens, clicks, bounces, complaints and unsubscribes in the report. Where to find it: - Sidebar: **Marketing › Broadcasts** - URL: `/t//broadcasts` (list) and `/t//broadcasts/` (wizard or report) Who uses it: marketers create and send broadcasts; every other role can open the list and the reports in read-only mode (see [Limits and permissions](#limits-and-permissions)). Broadcasts are for one-off campaigns. For emails that react to what a contact does (a form submission, a tag, a purchase) use [Automations](https://amabledata.com/docs/marketing/automations) instead. ## How it works ### Lifecycle and statuses Every broadcast has one status, shown as a badge in the list and in the report toolbar. | Status | Badge | What it means | What moves it on | | --- | --- | --- | --- | | `draft` | **Draft** | Being edited in the wizard. Nothing is sent. | **Send now** or **Schedule** in the last step moves it to Scheduled. | | `scheduled` | **Scheduled** | Recipients are fixed and waiting for their send time. | The first batch handed to the sending queue moves it to Sending. **Pause** moves it to Paused, **Cancel broadcast** to Cancelled. | | `sending` | **Sending** | Batches are being handed to the sending queue. | When the last recipient is queued it becomes Sent. **Pause** and **Cancel broadcast** work as above. | | `paused` | **Paused** | No new batch is queued. Also set automatically when sending is suspended (see [Sending settings](https://amabledata.com/docs/marketing/email-sending-settings#automatic-suspension)). | **Resume** returns it to Scheduled (if nothing was sent yet) or Sending. **Cancel broadcast** ends it. | | `sent` | **Sent** | Every recipient has been handed to the sending queue. Delivery events keep arriving afterwards. | Final. | | `cancelled` | **Cancelled** | Stopped by a user. Contacts not yet reached never receive it. | Final. | Only a **Draft** can be edited. Once scheduled, the content, audience and sender are frozen: to change them, cancel the broadcast and create a new one. ### What happens when you schedule When you confirm **Send now** or **Schedule**, the server: 1. Re-checks every blocking condition (verified sending domain, sender address, physical address, content that compiles, at least one eligible recipient, sending credit). If one fails, nothing is scheduled and you see the reason. 2. **Materialises the recipient list**: the audience is resolved to the contacts that are eligible right now, and each one gets its own send time. Contacts added to a tag or a saved search after this moment do **not** receive the broadcast. 3. Moves the broadcast to **Scheduled** and arms a background timer for the earliest send time. From then on a scheduler wakes up whenever recipients are due and hands them to the sending queue in batches of 100. The progress bar in the report counts how many recipients have been handed to the queue (**\{enqueued\} of \{total\} handed to the sending queue**). Delivery itself is tracked per message. ### Checks made again at send time Each message is checked once more when the sending queue processes it, so late changes are respected: - An address that unsubscribed, bounced or complained after you scheduled is **skipped**. - A contact whose **Email status** became Unsubscribed, Bounced, Complained or Not marketable is **skipped**. - A contact deleted in the meantime, or left without an email address, is **skipped**. - If the broadcast was paused, the message waits and is retried every 5 minutes; if it was cancelled, the message is skipped. - If the sending domain stopped being verified, the message is **blocked**. - [Dynamic Content snippets](https://amabledata.com/docs/marketing/email-templates#dynamic-content-snippets) are rendered at that moment, so a snippet you edit after scheduling changes what later recipients get. Skipped and blocked messages are counted in the **Skipped** box of the report. ### Throttling, warm-up and rate limits Three independent limits decide how fast a broadcast goes out: - **Max emails per hour** (optional, per broadcast): when set, the scheduler queues at most one sixtieth of that value per minute (rounded down, at least 1). Empty means no per-broadcast limit: up to 1,000 recipients are queued per scheduler run, with a new run about every second. - **Max emails per minute** (workspace setting, default 600): the sending queue never hands more than this to the provider in one minute; extra messages are retried in the next minute. - **Warm-up cap** (automatic): a new workspace can send 50 emails on its first day of real sending, then 100, 200, 400, 800, 1,500, 3,000, 5,000, 10,000, 20,000, 40,000 and 80,000; from the thirteenth day there is no warm-up cap. Messages above the daily cap wait for the next day (UTC). See [Warm-up](https://amabledata.com/docs/marketing/email-sending-settings#warm-up). ### Time zones You can send in three ways (see [Review and schedule the broadcast](#review-and-schedule-the-broadcast-step-3)): - **Send now**: every recipient is due immediately. - **At a date and time**: one instant for everybody, entered in the time zone you choose (default: the workspace timezone from **Settings › Email sending**). The wizard shows the same moment in your own browser time. - **At a local time in each contact’s timezone**: the date and time are applied in each contact's own **Time zone**. Contacts without a valid time zone use the workspace timezone. If that local time has already passed in a zone, those contacts are sent **immediately**, never a day late. After scheduling, the wizard lists the resulting send times grouped by zone (**Send times**: date and time · zone · number of contacts). Daylight saving time is handled: 09:00 in `Europe/Rome` is always 09:00 local time, whatever the UTC offset on that date. ### Open and click tracking Every real broadcast message is tracked automatically: - Each `http` or `https` link in the HTML body is rewritten to a signed redirect on your tracking origin (`/r/`); the destination is inside the signed token, so the redirect cannot be abused. Links that already point to the tracking origin (such as the unsubscribe link) are left alone. - A 1×1 transparent image (`/o/`) is added at the end of the HTML body to record opens. - A click also counts as an open, even if the recipient's mail client blocks images. The tracking origin is your verified tracking domain if you have one, otherwise the default edge address of your installation (see [Tracking domains](https://amabledata.com/docs/tracking-domains/overview)). The recipient-facing pages are described in [Email links and unsubscribe](https://amabledata.com/docs/public/email-links). ### Unsubscribe link and headers Every broadcast carries an unsubscribe link. The email footer block always renders it (it cannot be removed), and if your content has no footer block a default footer with an **Unsubscribe** link is added automatically. Each message also carries the `List-Unsubscribe` and `List-Unsubscribe-Post: List-Unsubscribe=One-Click` headers, so mailbox providers can show their own one-click unsubscribe button. Every unsubscribe adds the address to the [suppression list](https://amabledata.com/docs/marketing/suppressions) and sets the contact's **Email status** to Unsubscribed. ## Step by step ### Create a broadcast 1. Open **Marketing › Broadcasts**. 2. Click **New broadcast** (top right). It is visible only if your role has `broadcasts:write`. A draft named **Untitled broadcast** is created immediately, with a blank email that already contains an empty paragraph and a footer with the **Unsubscribe** link, and the wizard opens on the **Recipients** step. 3. Work through the three steps described below. The draft is saved automatically about 0.7 seconds after each change: the indicator in the top-right corner shows **Saving…**, then **Draft saved**. If a save fails it shows **Not saved — retrying on the next change** and an error toast; your next edit retries the save. You can leave at any time with **Back** (top left) and continue later: open the draft from the list and the wizard reopens on the step you were on (remembered for the current browser tab). ### Choose the recipients (step 1) 1. **Name**: the internal name of the broadcast, shown in the list and reports (recipients never see it). Required to continue: if you clear it, **Next** shows **Give the broadcast a name**. Up to 200 characters. 2. In the **Send to** card, choose who receives it. You need at least one tag **or** one saved search: - **Contacts with tags**: pick up to 50 existing tags (you cannot create tags here). The selector on the left decides how they combine: **any of the tags** (a contact needs at least one) or **all the tags** (a contact needs every one). - **Contacts in saved searches (segments)**: pick up to 10 saved searches of contacts. Only saved searches on contacts are listed. See [Search and saved searches](https://amabledata.com/docs/concepts/search-and-saved-searches). As the hint says, **Contacts matching the tags or any of the saved searches receive the email**: the tag rule and the saved searches are combined with OR. 3. Optionally, in the **Exclude** card, remove people from the audience: - **Contacts with any of these tags**: up to 50 tags. - **Contacts in these saved searches**: up to 10 saved searches. A contact who matches any exclusion is removed even if they match an inclusion. 4. Check the **Estimated recipients** card on the right. It refreshes after every audience or content change and shows: - **\{count\} will receive it**: the eligible recipients. - **\{count\} in the segment**: everyone matching the audience. - **Excluded: \{noEmail\} without email · \{suppressed\} suppressed · \{unmarketable\} not marketable**. Until you pick a tag or saved search it reads **Choose tags or saved searches to see who receives it.** 5. Click **Next**. If nothing is included you see **Choose at least one tag or saved search**; if the audience has nobody eligible you see **Nobody in this audience can receive the email**. A contact is **eligible** when they have an email address, their **Email status** is not Unsubscribed, Bounced, Complained or Not marketable, and their address is not on the [suppression list](https://amabledata.com/docs/marketing/suppressions). The primary email address is used; if no address is marked primary, the first one is used. ### Write the email (step 2) The left column holds the sender and content, the right column a live preview. 1. **Sender** card: - **From address**: read-only. It is the workspace **Sender address** from **Settings › Email sending**; use the **Change in email settings** link to edit it. If none is set, the card shows **Set a sender address in the email settings** in red and you cannot continue. - **Sender name**: the display name for this broadcast (up to 100 characters). Empty means the workspace **Sender name** is used. - **Reply-to**: where replies go for this broadcast. Empty means the workspace **Reply-to** is used (or no Reply-to header at all if that is empty too). 2. **Content** card: - **Subject**: required (up to 300 characters). Liquid is allowed, for example `Hi {{ contact.first_name | default: "there" }}`. Line breaks are removed. - **Preheader**: the preview text that inboxes show next to the subject (placeholder: *Preview text shown next to the subject in the inbox*). It is stored as a hidden preheader block at the top of the email; it is saved about 0.6 seconds after you stop typing or when you leave the field. - **Start from a template**: choose one of your [email templates](https://amabledata.com/docs/marketing/email-templates) (default **Blank email**) and click **Load**. The template body **replaces** the current content; its subject is copied only if your subject is still empty. Later edits to the template do not affect this broadcast. - The email editor: write the content with text, headings, lists, quotes, links, buttons, columns, spacers, conditions and merge fields. Type `{{` to insert a field. See [Email templates › The email editor](https://amabledata.com/docs/marketing/email-templates#the-email-editor) and [Personalisation (Liquid)](https://amabledata.com/docs/marketing/liquid-reference). 3. In the **Preview** card on the right: - **Preview as**: search a contact to see the email with their real data, or leave it empty for sample data (Ada Lovelace, owner Marco Rossi, company Analytical Engines Srl). Click the small × to go back to sample data. - **Desktop** / **Mobile**: switch the preview width (mobile is 375 px). - **HTML** / **Plain text**: see both parts of the email. A plain-text version is generated automatically from your content. 4. Click **Next**. The step blocks with **Write a subject**, **Set a sender address in the email settings**, **Write the email content** (no text, image or button) or **Fix the invalid links**. A link is valid when it is an `http://` or `https://` URL with a real host name (containing a dot), a `mailto:` or `tel:` link, or anything containing Liquid (`{{`). Empty links are invalid. ### Send a test 1. In step 2, click **Send test** in the **Preview** card. The draft is saved first. 2. In the **Send a test email** dialog, tick the **Recipients**: any members of this workspace (you are pre-selected). Up to 10 members per test. 3. **Fill fields with** shows which data fills the merge fields: the contact chosen in **Preview as**, or **Sample data** (your own name and email). 4. Click **Send test**. The toast **Test sent to \{emails\}** confirms it. Test emails: - go only to workspace members, never to contacts (the server enforces this); - have `[Test]` in front of the subject; - have no click or open tracking, and their unsubscribe link is a placeholder that does nothing; - can be sent **before** your sending domain is verified (but not while sending is suspended); - do not count towards bounce and complaint health, and do not appear in the broadcast report. ### Review and schedule the broadcast (step 3) 1. Read the **Pre-send checklist**. Each line is green (ok), amber (warning, you can still send) or red (blocking): | Check | Ok | Warning | Blocking | | --- | --- | --- | --- | | Sending domain | **Sending domain verified** | **Sending domain not verified (allowed in development only)** | **Sending domain not verified** | | Sender | **Sender: \{address\}** | — | **No sender address** | | Physical address | **Physical address in the footer** | — | **Physical address missing in the email settings** | | Unsubscribe | **Unsubscribe link present** | **No unsubscribe block: a default footer link is added** | — | | Subject | **Subject set** | — | **Subject missing** | | Preheader | **Preheader set** | **No preheader: inboxes show the first line of text** | — | | Links | **Links look valid** | — | **Invalid links: \{list\}** | | Recipients | **\{n\} recipients** | **Recipients not estimated yet** | **No recipient can receive it** | | Credit | **Sending credit available** | **Sending credit not checked yet** | **Not enough sending credit: \{reason\}** | | Warm-up (only when relevant) | — | **Warm-up: only \{n\} emails left today, the rest go out in the next days** | — | | Spam words | **No common spam words** | **Words that may trigger spam filters: \{list\}** | — | The spam check looks for common phrases (such as “act now”, “buy now”, “click here”, “free”, “guaranteed”, “limited time”, “risk-free”, “winner”, “100%”, “$$$”, “!!!” and their Italian equivalents) in the subject and visible text, and flags a subject written entirely in capitals (6 letters or more). It is advice only. If the server reports a blocking problem, an alert reads **Cannot send yet: \{reason\}**. 2. Check the **Summary**: name, subject and number of recipients. 3. In the **Schedule** card choose when: - **Send now**. - **At a date and time**: set **Date** (default tomorrow), **Local time** (default 09:00) and **Time zone** (default the workspace timezone). Below the fields the wizard shows **Sends at \{time\} (your time)**. If the moment is already past it warns **This time has passed: the broadcast starts right away.** - **At a local time in each contact’s timezone**: set **Date** and **Local time**; each contact receives it at that wall-clock time in their own zone. 4. Optionally set **Max emails per hour (empty = no limit)**: a whole number, minimum 10 (smaller values are raised to 10), maximum 1,000,000. 5. Click **Send now** or **Schedule** (the label follows your choice). The button is disabled while any checklist line is red or the server says the broadcast cannot be sent, and it is visible only with the `broadcasts:send` permission. 6. Confirm in the **Send this broadcast?** dialog (*It will go to \{count\} contacts. You can pause or cancel it while it is sending.*). The toast **Broadcast scheduled** confirms it, the **Send times** list appears, and the page switches to the report. ### Follow the report Open a broadcast that is no longer a draft to see its report. While it is **Scheduled** or **Sending** the page refreshes every 5 seconds. - The toolbar shows **Back**, the status badge and, with `broadcasts:send`, the actions **Pause** (Scheduled or Sending), **Resume** (Paused) and **Cancel broadcast** (Scheduled, Sending or Paused). - The progress card shows **\{enqueued\} of \{total\} handed to the sending queue** with a progress bar and, while live, **Next batch at \{time\}**. - Eight boxes show the totals (see [Report metrics](#report-metrics)). - The **Links** table lists every tracked link with **Link**, **Clicks** and **Unique clicks**, most clicked first. Before any click it reads **No links tracked yet.** ### Pause, resume or cancel 1. Open the broadcast report. 2. Click **Pause** to stop queuing new batches. Messages already handed to the queue still go out; messages that reach the queue while paused wait and retry every 5 minutes. 3. Click **Resume** to continue. Resuming is refused while sending is blocked (for example the domain is no longer verified or sending is suspended); the error explains why. 4. Click **Cancel broadcast** and confirm (*Cancel this broadcast? Contacts not reached yet will not receive it.*) to stop for good. Pending recipients are marked cancelled. ### Delete a broadcast In the list, select one or more rows, click **Delete** and confirm (**Delete \{name\}?** or **Delete \{count\} items?**). Only **Draft**, **Sent** and **Cancelled** broadcasts can be deleted; a Scheduled, Sending or Paused broadcast must be cancelled first. Deleting removes the broadcast from the list; it does not recall messages already sent. ## Reference ### Broadcast list columns | Column | Content | Notes | | --- | --- | --- | | **Name** | Internal name | Sortable | | **Status** | Status badge | — | | **Recipients** | Number of materialised recipients, `—` for drafts | Hidden on small screens | | **Sent** | Messages accepted by the provider | Sortable | | **Opened** | Unique opens ÷ sent, as a percentage | Hidden below large screens | | **Clicked** | Unique clickers ÷ sent, as a percentage | Hidden below large screens | | **Created** | Creation date and time | Sortable, default sort newest first | The list refreshes every 15 seconds. When there are no broadcasts it shows **No broadcasts yet.** Click a row to open it. ### Report metrics All counts are per message (one message per recipient). Rates are divided by **Sent** and shown with one decimal. | Box | Counts messages that… | Rate shown | | --- | --- | --- | | **Sent** | were accepted by the sending provider | — | | **Delivered** | the receiving server accepted | Delivered ÷ Sent | | **Opened** | were opened at least once (pixel loaded or a link clicked) | Opened ÷ Sent | | **Clicked** | had at least one link clicked | Clicked ÷ Sent | | **Bounced** | hard-bounced (the address does not exist) | Bounced ÷ Sent | | **Unsubscribed** | led to an unsubscribe (link, one-click header, or provider) | Unsubscribed ÷ Sent | | **Complaints** | were reported as spam by the recipient | — | | **Skipped** | were never sent: skipped (suppressed, no email, not marketable, cancelled, credit denied, contact deleted), blocked (sending not allowed) or failed after retries | — | A message refused by the receiving server for reputation or content reasons (a soft bounce or block) is not counted as **Bounced** and does not suppress the address; it simply never becomes **Delivered**. ### Audience fields | Field | Type | Limits | | --- | --- | --- | | Include tags | tag list + match (**any of the tags** / **all the tags**) | max 50 tags | | Include saved searches | contact saved searches | max 10 | | Exclude tags | tag list (any) | max 50 | | Exclude saved searches | contact saved searches | max 10 | ### Broadcast fields | Field | Required | Default | Limit | | --- | --- | --- | --- | | Name | yes | **Untitled broadcast** | 200 characters | | Subject | yes (to send) | empty | 300 characters | | Sender name | no | workspace sender name | 100 characters | | Reply-to | no | workspace reply-to | valid email, 254 characters | | Body | yes (to send) | blank email with footer | 512 KB of stored content | | Max emails per hour | no | no limit | 10 – 1,000,000 | ### Schedule options | Option | API `mode` | Inputs | | --- | --- | --- | | **Send now** | `now` | — | | **At a date and time** | `at` | ISO date-time (entered as date, time and time zone) | | **At a local time in each contact’s timezone** | `contact_tz` | `local_date` (YYYY-MM-DD), `local_time` (HH:MM, 24 h) | ### REST API All paths are relative to `/api/v2/t/` (see [REST API](https://amabledata.com/docs/developers/rest-api)). | Method and path | Permission | Purpose | | --- | --- | --- | | `GET /broadcasts` | `broadcasts:read` | List (newest first, `limit` 1–200, default 50, optional `status`) | | `POST /broadcasts` | `broadcasts:write` | Create a draft | | `GET /broadcasts/{id}` | `broadcasts:read` | Get one | | `PATCH /broadcasts/{id}` | `broadcasts:write` | Update a draft | | `DELETE /broadcasts/{id}` | `broadcasts:write` | Delete a draft, sent or cancelled broadcast | | `GET /broadcasts/{id}/estimate` | `broadcasts:read` | Recipients, exclusions, warm-up, credit and the first blocking reason | | `POST /broadcasts/{id}/test` | `broadcasts:write` | Test send to members (`user_ids` max 10, optional `contact_id`) | | `POST /broadcasts/{id}/schedule` | `broadcasts:send` | Schedule; returns the send-time buckets | | `POST /broadcasts/{id}/pause` · `/resume` · `/cancel` | `broadcasts:send` | Control a running broadcast | | `GET /broadcasts/{id}/stats` | `broadcasts:read` | Totals, rates and per-link clicks | Scheduling, pausing, resuming and cancelling are written to the [audit log](https://amabledata.com/docs/settings/audit-log). ## Limits and permissions | Action | Permission | Roles that have it | | --- | --- | --- | | See the list, wizard (read-only) and reports | `broadcasts:read` | Owner, Admin, Marketer, Sales, Analyst, Viewer | | Create, edit, delete, send tests | `broadcasts:write` | Owner, Admin, Marketer | | Schedule, send, pause, resume, cancel | `broadcasts:send` | Owner, Admin, Marketer | Without `broadcasts:write` the wizard fields are disabled and **New broadcast** is hidden; without `broadcasts:send` the **Send now** / **Schedule** button and the report actions are hidden. Other limits: 50 tags and 10 saved searches per include/exclude list, 512 KB of email content, 10 members per test send, a throttle between 10 and 1,000,000 emails per hour, plus the workspace [rate limit, warm-up and sending credit](https://amabledata.com/docs/marketing/email-sending-settings#reference). ## Troubleshooting | Symptom | Cause | Fix | | --- | --- | --- | | Red banner **Email sending is blocked** at the top of the wizard | No verified sending domain | Click **Set up a sending domain** and verify one in [Domains](https://amabledata.com/docs/settings/domains). | | **Cannot send yet: the sending domain is not verified yet** | Same as above | Verify a sending domain. Test sends still work. | | **Cannot send yet: the sender address is not on a verified domain** | The **Sender address** uses a domain that is not your verified sending domain (or a subdomain of it) | Change the sender address in **Settings › Email sending** or verify its domain. | | **Cannot send yet: set a sender address in Email sending** | No workspace sender address | Set **Sender address** in [Sending settings](https://amabledata.com/docs/marketing/email-sending-settings). | | **Cannot send yet: add the physical address in Email sending** | Broadcasts require a postal address in the footer | Fill **Physical address** in Sending settings. | | **Cannot send yet: sending is suspended (bounce or complaint rate too high)** | Automatic suspension | Clean your list, then **Resume sending** in Sending settings. | | **Cannot send yet: not enough email credit** / **email credit exhausted, sending paused** | The sending credit check failed | Top up or upgrade (see [Billing and wallet](https://amabledata.com/docs/settings/billing-and-wallet)). | | **Cannot send yet: the email content has errors** | The content does not compile, usually invalid Liquid | Fix the Liquid shown in the preview; see [Liquid reference](https://amabledata.com/docs/marketing/liquid-reference#troubleshooting). | | **Nobody in this audience can receive the email** | Everyone matched has no email, is not marketable or is suppressed | Check the exclusion counts in **Estimated recipients**. | | Recipients count lower than the saved search count | Contacts without email, suppressed or not marketable are excluded | Expected. | | Fewer messages than expected went out today | Warm-up cap or rate limit | Wait: the rest goes out the next day(s). See the warm-up line of the checklist. | | **Something went wrong: test emails can only go to members of this tenant** | A selected user is not a member | Pick only workspace members. | | A contact did not get it although they were in the audience | They were added after scheduling, unsubscribed or bounced before their send time, or have no primary email | Check the contact's email history in the contact page. | | Only draft broadcasts can be edited (409) via API | The broadcast was already scheduled | Cancel it and create a new one. | | **cancel the broadcast before deleting it** | You tried to delete a Scheduled, Sending or Paused broadcast | Cancel it first. | ## Related - [Email templates](https://amabledata.com/docs/marketing/email-templates) - [Personalisation (Liquid)](https://amabledata.com/docs/marketing/liquid-reference) - [Sending settings and domains](https://amabledata.com/docs/marketing/email-sending-settings) - [Suppressions](https://amabledata.com/docs/marketing/suppressions) - [Automations](https://amabledata.com/docs/marketing/automations) - [Email links and unsubscribe](https://amabledata.com/docs/public/email-links) - [Tags](https://amabledata.com/docs/crm/tags) - [Search and saved searches](https://amabledata.com/docs/concepts/search-and-saved-searches) - [Roles and permissions](https://amabledata.com/docs/concepts/roles-and-permissions) --- # Email templates Section: Email marketing URL: https://amabledata.com/docs/marketing/email-templates Summary: Design reusable emails with the template editor, preview them for real contacts, send tests, and build Dynamic Content snippets with Liquid. ## Overview **Email templates** are reusable email designs: a subject and a body you can load into a [broadcast](https://amabledata.com/docs/marketing/broadcasts) or use in an automation **Send email** step. The same page also holds **Dynamic Content**: reusable snippets of text with Liquid logic that you drop into any email. Where to find it: - Sidebar: **Marketing › Email templates** - URL: `/t//templates` (tabs **Templates** and **Dynamic Content**) and `/t//templates/` (editor) Everyone can browse templates; creating and editing requires `templates:write` (see [Limits and permissions](#limits-and-permissions)). ## How it works ### Templates A template stores: - a **Name** (internal), - a **Subject** (may contain Liquid), - the **body**, a structured document produced by the email editor (it stays re-editable), - optionally a default sender name and reply-to (settable through the API). When you save, amabledata **compiles** the body into email-safe HTML (table layout, inline styles, fixed width) plus a plain-text version, and caches the result. The **Status** column tells you whether that compiled version is current: | Badge | Meaning | | --- | --- | | **Ready** | The cached HTML matches the current body, subject and workspace physical address. | | **Needs fixes** | The body could not be compiled (for example broken Liquid). The draft is still saved, but sending with this template fails until you fix it. | A template is also recompiled automatically when the workspace **Physical address** changes, because the address is printed in every footer. How templates are used: - **Broadcasts** copy the template body into the broadcast when you click **Load** in the wizard. Later template edits do **not** change that broadcast. - **Automation Send email steps** set to **Template** reference the template: every email sent by the step uses the template as it is at send time, so edits apply to future sends immediately. Deleting a template removes it from the list and the pickers. An automation step that still points to it keeps queuing emails, but each of those messages ends as failed with a content error and nobody receives it, so update those steps first. ### Dynamic Content snippets A **snippet** is a named piece of Liquid text, for example a greeting that changes with the contact's language or a VIP offer. Each snippet has a **Key** such as `vip_offer` and is used in any email as the field `{{ snippets.vip_offer }}`. - Snippets are rendered separately for each recipient, **before** the email, using the same data (contact, company, owner, unsubscribe link). - The output is inserted as **plain text**: HTML tags written in a snippet appear literally. Use the email editor for formatting. - Snippets cannot reference other snippets. - A snippet that fails at send time (syntax error, time limit) renders empty instead of breaking the email. - Changes are live: every email that references a snippet uses its current content at send time, including scheduled broadcasts and running automations. There is no version history. To change a snippet safely, create a new key (for example `vip_offer_v2`), test it, switch your emails over, then delete the old one. - Each snippet has 500 ms of render time per recipient. ### Rendering pipeline For every recipient, an email goes through the same steps whether it comes from a template, a broadcast or an automation: 1. The document is compiled into HTML, text and subject templates (cached per content version). 2. The recipient's data is collected (see [Personalisation (Liquid)](https://amabledata.com/docs/marketing/liquid-reference#merge-fields)), the referenced snippets are rendered, and the Liquid is resolved in a sandbox. In the HTML part every value is HTML-escaped. 3. The HTML is sanitised, links are rewritten for click tracking and the open pixel is appended (real sends only). The in-app preview uses the same renderer and the same data, so what you see is what the recipient gets. ## Step by step ### Create a template 1. Open **Marketing › Email templates** (tab **Templates**). 2. Click **New template**. A template named **Untitled template** is created with an empty paragraph and a footer, and the editor opens. 3. Fill in: - **Name**: internal name, 1–200 characters. - **Subject**: up to 300 characters, Liquid allowed (for example `Your order, {{ contact.first_name }}`). 4. Write the body in the editor (see [The email editor](#the-email-editor)). 5. Click **Save**. The toast **Saved** confirms it and the page header shows **Ready** or **Needs fixes**. The template editor does **not** autosave. Click **Save** before leaving the page. ### Edit, preview and test a template 1. Click a row in the template list to open the editor. 2. Use the **Preview** panel on the right: - **Preview as**: search a contact (*Search a contact…*) to render the email with their data; without a contact, sample data is used (Ada Lovelace, owner Marco Rossi, company Analytical Engines Srl). - **HTML** / **Plain text** tabs. 3. Click **How it works** to open the Liquid guide. 4. Click **Send test**: the template is saved first, then the **Send a test email** dialog opens. Tick workspace members under **Recipients** (you are pre-selected, up to 10), check **Fill fields with** (the contact chosen in **Preview as** or **Sample data**), and click **Send test**. Tests have `[Test]` in the subject, no tracking, a placeholder unsubscribe link, and work even before your sending domain is verified. 5. Click **Save**. ### Delete templates In the template list, select one or more rows, click **Delete** and confirm (**Delete \{name\}?** or **Delete \{count\} items?**). ### Create a Dynamic Content snippet 1. Open the **Dynamic Content** tab. If you have no snippets yet, the page shows **Write it once, personalize it for everyone** with buttons **How it works** and **New snippet**. 2. Click **New snippet**. 3. Fill in: - **Name**: what colleagues see in the field picker (1–200 characters). - **Key**: lowercase letters, digits and `_`, starting with a letter, up to 63 characters. Other characters are converted to `_` as you type. The hint shows how to insert it, for example `{{ snippets.vip_offer }}`. The key **cannot be changed** later and must be unique. - **Content (Liquid)**: up to 20,000 characters of text and Liquid. The code editor numbers lines, highlights Liquid, and checks the syntax as you type: **Liquid syntax is valid.** or the error with its line and column. 4. Use the **Liquid helper** panel on the right to pick fields, build conditions and preview the snippet for any contact (see [Liquid helper](https://amabledata.com/docs/marketing/liquid-reference#the-liquid-helper)). 5. Click **Save**. The **Save** is ignored while the name is empty or the key is invalid. ### Edit or delete a snippet Click a snippet row (or its **Edit** row action) to open **Edit snippet**; only the name and content can change. To delete, select rows, click **Delete** and confirm. Emails that still reference a deleted snippet render it empty. ### Insert a snippet in an email In any email editor type `{{` and pick the snippet from the **Dynamic Content** group, or click it in the Liquid helper (**Fields** tab). ## The email editor The same editor is used for templates, broadcasts and automation emails. ### Toolbar | Group | Controls | | --- | --- | | History | Undo, Redo | | Blocks | Heading (levels 1–3), lists (bulleted, numbered, task list), blockquote | | Marks | Bold, italic, underline, strikethrough, inline code, highlight color, link | | Alignment | Left, center, right | | **Insert** menu | Email blocks and Liquid blocks (below) | | **`{{ }}` Liquid helper** | Opens the helper drawer | | **Image link** | When an image is selected: the URL the image links to | ### Insert menu | Item | What it adds | | --- | --- | | **Button** | A call-to-action button with **Label**, **Link**, **Alignment** (**Left**, **Center**, **Right**), **Color** and **Text color** | | **Divider** | A horizontal rule | | **Spacer** | Vertical space; **Height** in pixels (rendered between 4 and 160) | | **Two columns** / **Three columns** | Side-by-side columns | | **Header** | A header block at the top of the email (only one; hidden from the menu once present) | | **Preheader** | The inbox preview text block at the top (only one) | | **Insert field** | Starts a merge field (same as typing `{{`) | | **Condition** | A block shown only when a condition is true, with an optional **Otherwise** part | | **Liquid code** | A raw Liquid block (*Advanced: raw Liquid, rendered for each recipient.*) | ### Merge fields (chips) Type `{{` (the placeholder reminds you: *Write something, or type `{{` to insert a field…*) and choose a field. It appears as a chip. Click the chip to set a **Fallback** (*Shown when the field is empty*). Date fields get a date format and tag lists are joined with commas automatically. Plain text typed as `{{ … }}` without a chip stays literal: insert Liquid with a chip, a condition block, a Liquid code block or the helper. ### Condition blocks A condition block has an **If** line with three kinds of condition: - **Tag**: **has tag** / **does not have tag** and the tag name. - **Field**: a field, an operator (**is**, **is not**, **contains**, **is greater than**, **is less than**, **is empty**, **is not empty**) and a **Value**. - **Liquid expression**: any Liquid condition, for experts. Use **Add “otherwise”** / **Remove “otherwise”** to toggle the else part. Buttons, images and formatting inside a condition block work normally. ### Footer and unsubscribe New emails start with a footer block. The footer always ends with the unsubscribe link (*The unsubscribe link is always added and cannot be removed.*); you can change its **Unsubscribe link text** (default **Unsubscribe**). If you delete the footer, marketing emails get a default footer automatically. The workspace **Physical address** is printed in the footer. ## Reference ### Template list columns | Column | Content | | --- | --- | | **Name** | Template name (sortable) | | **Subject** | Subject or `—` (hidden on small screens) | | **Status** | **Ready** or **Needs fixes** | | **Updated** | Last change (sortable, default newest first; hidden below large screens) | Empty state: **No templates yet. Create one to reuse it in broadcasts and automations.** ### Snippet list columns | Column | Content | | --- | --- | | **Name** | Snippet name (sortable, default A→Z) | | **Key** | The field to use, for example `{{ snippets.vip_offer }}` | | **Updated** | Last change | ### Fields and limits | Item | Limit | | --- | --- | | Template name | 1–200 characters | | Template subject | 300 characters | | Template sender name (API) | 100 characters | | Template body | 512 KB of stored content | | Snippet key | `^[a-z][a-z0-9_]{0,62}$`, unique, immutable | | Snippet name | 1–200 characters | | Snippet content | 20,000 characters | | Snippet render time | 500 ms per recipient | | Members per test send | 10 | ### REST API Paths relative to `/api/v2/t/`. | Method and path | Permission | Purpose | | --- | --- | --- | | `GET /emailTemplates` | `broadcasts:read` | List, most recently updated first | | `POST /emailTemplates` | `templates:write` | Create (`name`, `subject`, `body`, `from_name`, `reply_to`) | | `GET /emailTemplates/{id}` | `broadcasts:read` | Get one | | `PATCH /emailTemplates/{id}` | `templates:write` | Update | | `DELETE /emailTemplates/{id}` | `templates:write` | Delete | | `POST /emailTemplates/{id}/test` | `templates:write` | Test send to members | | `GET /emailSnippets` | `broadcasts:read` | List every snippet | | `POST /emailSnippets` | `templates:write` | Create (`key`, `name`, `body`) | | `GET /emailSnippets/{id}` | `broadcasts:read` | Get one | | `PATCH /emailSnippets/{id}` | `templates:write` | Update `name` / `body` | | `DELETE /emailSnippets/{id}` | `templates:write` | Delete | ## Limits and permissions | Action | Permission | Roles | | --- | --- | --- | | Open templates and snippets (read-only) | `broadcasts:read` | Owner, Admin, Marketer, Sales, Analyst, Viewer | | Create, edit, delete, test templates and snippets | `templates:write` | Owner, Admin, Marketer | | Preview with a real contact | `contacts:read` | All roles | Sensitive custom fields are masked in previews for roles without `contacts:read_sensitive`; real sends always use the real value. ## Troubleshooting | Symptom | Cause | Fix | | --- | --- | --- | | Template shows **Needs fixes** | The body does not compile, usually a Liquid syntax error (unclosed `{% if %}`, unknown filter) | Open the template, check the preview and the Liquid helper's **Preview** tab for the error position, fix and save. | | A field shows literally as `{{ contact.first_name }}` in the email | It was typed as plain text | Re-insert it as a chip (type `{{` and pick it) or use a Liquid code block. | | HTML tags appear as text in a snippet's output | Snippets are inserted as plain text | Put the formatting in the email editor around the snippet. | | A snippet renders empty | It failed for that recipient, or the key no longer exists | Preview the snippet for that contact in the snippet editor. | | **snippet key … already exists** | Keys are unique | Choose another key. | | Automation emails end as failed with a content error such as “template … does not compile” or “template … not found” | The referenced template is broken or deleted | Fix the template or choose another in the step. | | **email body exceeds 512 KB** | The document is too large (often pasted images or huge HTML) | Use linked images and shorter content. | ## Related - [Personalisation (Liquid)](https://amabledata.com/docs/marketing/liquid-reference) - [Broadcasts](https://amabledata.com/docs/marketing/broadcasts) - [Triggers and steps reference](https://amabledata.com/docs/marketing/automation-triggers-and-steps#send-email) - [Sending settings and domains](https://amabledata.com/docs/marketing/email-sending-settings) - [Custom fields](https://amabledata.com/docs/concepts/custom-fields) --- # Personalisation (Liquid) Section: Email marketing URL: https://amabledata.com/docs/marketing/liquid-reference Summary: Every merge field, filter and tag you can use in email subjects, bodies and Dynamic Content snippets, how values are escaped and dated, the Liquid helper, and the sandbox limits. ## Overview amabledata personalises emails with **Liquid**, a small template language. `{{ … }}` prints a value and `{% … %}` runs logic (conditions, loops, variables). You can use Liquid in: - the **subject** of broadcasts, templates and automation emails; - the **body** of any email, through field chips, condition blocks and **Liquid code** blocks in the [email editor](https://amabledata.com/docs/marketing/email-templates#the-email-editor); - **Dynamic Content** snippets (**Marketing › Email templates › Dynamic Content**); - text inputs of automation **App action** steps (a reduced set of fields, see [Triggers and steps](https://amabledata.com/docs/marketing/automation-triggers-and-steps#app-action)). This page is the complete reference for what the sending engine accepts. The same information is available in the app: the **Liquid helper** (button `{{ }} Liquid helper` in the editor toolbar) and the guide behind **How it works**. ## How it works For each recipient, amabledata builds a **render context** (the data listed in [Merge fields](#merge-fields)), renders the referenced snippets, and resolves the Liquid of the subject, the HTML body and the plain-text body in a **sandbox**: - **No files, no network.** `include`, `render` and `layout` exist as tags but find nothing. Use snippets instead. - **Only listed data is readable.** Object internals such as `constructor` or `__proto__` are invisible. - **Unknown filters are errors.** A typo in a filter name stops the email from compiling. - **Unknown variables are not errors.** A variable that does not exist, or has no value for this contact, prints nothing. - **Escaping.** In the HTML part every `{{ … }}` output is HTML-escaped, so contact data can never inject markup. The subject and the plain-text part are not escaped. The final HTML also goes through a whitelist sanitiser. - **Bounded.** Each render has a time and memory budget (see [Limits](#limits-and-permissions)). The preview in the app uses the same sandbox and the same context (with an example unsubscribe link), so a template that previews correctly sends correctly. ## Merge fields ### Contact | Field | Liquid | Type | Value | | --- | --- | --- | --- | | **Contact ID** | `{{ contact.id }}` | text | The contact's id | | **First name** | `{{ contact.first_name }}` | text | The preferred name if set, otherwise the given name | | **Last name** | `{{ contact.last_name }}` | text | Family name | | **Full name** | `{{ contact.full_name }}` | text | Given name and family name joined by a space | | **Email** | `{{ contact.email }}` | text | Primary email (or the first one) | | **Phone** | `{{ contact.phone }}` | text | First phone number | | **City** | `{{ contact.city }}` | text | City of the first address | | **Region / state** | `{{ contact.region }}` | text | Region of the first address | | **Country code** | `{{ contact.country }}` | text | Country code of the first address, e.g. `IT` | | **Job title** | `{{ contact.job_title }}` | text | — | | **Website** | `{{ contact.website }}` | URL | — | | **Time zone** | `{{ contact.time_zone }}` | text | IANA zone such as `Europe/Rome`, or empty | | **Score** | `{{ contact.score }}` | number | Lead score | | **Tags** | `{{ contact.tags }}` | list | Names of the contact's tags | | Custom fields | `{{ contact.custom. }}` | depends | One entry per contact custom field, by key (group **Custom fields**) | Missing standard values are empty text. A custom field with no value for the contact is missing entirely: use a fallback. ### Custom field types | Custom field type | Liquid value | | --- | --- | | Text, Text area, Name, Email, Phone number, Dropdown, Radio, State, User, Social security number | text | | Whole number, Decimal number, Currency, Percent, Day of week, Month, Year | number | | Date, Date and time | date (use the `date` filter) | | List box, Drilldown, User list box | list | | Website | URL | | Yes/No | true / false | Sensitive custom fields (for example social security numbers) are masked in previews for roles without `contacts:read_sensitive` (the field shows a lock: *Sensitive: masked for your role*). Real sends always use the real value: avoid sensitive fields in emails. ### Company, owner and system | Field | Liquid | Value | | --- | --- | --- | | **Company name** | `{{ company.name }}` | Name of the contact's company (empty when there is none) | | **Company website** | `{{ company.website }}` | Company website | | **Owner name** | `{{ owner.name }}` | Name of the contact's owner (a workspace member) | | **Owner email** | `{{ owner.email }}` | Owner's email | | **Owner signature** | `{{ owner.signature }}` | Reserved: currently always empty | | **Unsubscribe link** | `{{ unsubscribe_url }}` | The recipient's personal unsubscribe URL | | **Current date** | `{{ "now" \| date: "%d/%m/%Y" }}` | The current date is not a variable: use the literal `"now"` with `date` | | Snippets | `{{ snippets. }}` | The rendered [Dynamic Content snippet](https://amabledata.com/docs/marketing/email-templates#dynamic-content-snippets) (group **Dynamic Content**) | The editor groups these as **Contact**, **Custom fields**, **Company**, **Owner**, **Dynamic Content** and **Email and date**. Test sends without a contact use **sample data** built from your own user: your name split into first and last name, your email, no tags and no custom fields, with you as owner. ## Tags The tags available in templates are: `if`, `elsif`, `else`, `unless`, `case`, `when`, `for`, `break`, `continue`, `cycle`, `tablerow`, `assign`, `capture`, `increment`, `decrement`, `raw`, `comment`, `liquid`, `echo`. `include`, `render` and `layout` parse but find no files. ### Conditions ```liquid {% if contact.score > 80 %} You are one of our best customers. {% elsif contact.tags contains "Trial" %} Your trial is running. {% else %} Welcome! {% endif %} ``` - Operators: `==`, `!=`, `>`, `<`, `>=`, `<=`, `contains` (text or list), `and`, `or`. - There are no parentheses, and `and` / `or` are evaluated right to left: split complex logic into nested `if` blocks. - **Empty text counts as true.** To test that a field has a value write `{% if contact.first_name != blank %}`, not `{% if contact.first_name %}`. - `unless` is the opposite of `if`: `{% unless contact.tags contains "VIP" %}…{% endunless %}`. - `case` compares one value with several: ```liquid {% case contact.country %} {% when "IT", "SM" %}Ciao {% when "FR" %}Bonjour {% else %}Hello {% endcase %} ``` ### Loops ```liquid {% for tag in contact.tags limit: 3 %} {{ tag }}{% unless forloop.last %}, {% endunless %} {% else %} No interests yet. {% endfor %} ``` - `limit:` and `offset:` keep loops short; `{% else %}` runs when the list is empty. - Inside the loop: `forloop.index` (from 1), `forloop.first`, `forloop.last`, `{% break %}`, `{% continue %}`. - Ranges: `{% for i in (1..3) %}`. - Lists support `size`, `first` and `last`: `{{ contact.tags.size }}`, `{{ contact.tags.first }}`. ### Variables and whitespace ```liquid {%- assign name = contact.first_name | default: "there" -%} {%- capture greeting -%}Hi {{ name }}{%- endcapture -%} {{ greeting }} ``` `assign` stores a value, `capture` stores rendered text. A dash inside the delimiters (`{%-`, `-%}`, `{{-`, `-}}`) removes the spaces and line breaks around the tag, so logic on its own lines does not leave blank lines. ## Filters Filters transform a value, `{{ value | filter: argument }}`, and can be chained. Only these filters exist; any other name is a syntax error. | Group | Filters | | --- | --- | | Text | `append`, `prepend`, `capitalize`, `upcase`, `downcase`, `strip`, `lstrip`, `rstrip`, `strip_html`, `strip_newlines`, `newline_to_br`, `normalize_whitespace`, `squish`, `truncate`, `truncatewords`, `replace`, `replace_first`, `replace_last`, `remove`, `remove_first`, `remove_last`, `split`, `slice`, `slugify`, `number_of_words`, `array_to_sentence_string` | | Escaping and encoding | `escape`, `escape_once`, `xml_escape`, `cgi_escape`, `uri_escape`, `url_encode`, `url_decode`, `base64_encode`, `base64_decode`, `raw` | | Numbers | `plus`, `minus`, `times`, `divided_by`, `modulo`, `abs`, `ceil`, `floor`, `round`, `at_least`, `at_most`, `to_integer` | | Lists | `join`, `first`, `last`, `size`, `sort`, `sort_natural`, `reverse`, `uniq`, `compact`, `concat`, `map`, `where`, `where_exp`, `reject`, `reject_exp`, `find`, `find_exp`, `find_index`, `find_index_exp`, `has`, `has_exp`, `group_by`, `group_by_exp`, `sum`, `sample`, `push`, `pop`, `shift`, `unshift` | | Dates | `date`, `date_to_string`, `date_to_long_string`, `date_to_rfc822`, `date_to_xmlschema` | | Other | `default`, `json`, `jsonify`, `inspect`, `sha256`, `hmac_sha256` | Common examples: ```liquid {{ contact.first_name | default: "there" }} {{ contact.first_name | capitalize }} {{ contact.city | upcase }} {{ contact.email | downcase }} {{ contact.custom.bio | truncate: 80 }} {{ contact.custom.bio | truncatewords: 12, "…" }} {{ contact.tags | join: ", " }} {{ contact.tags | size }} {{ contact.custom.price | times: 0.9 | round: 2 }} {{ "now" | date: "%d/%m/%Y" }} ``` ### Fallbacks with `default` `default` replaces a missing, empty or false value: ```liquid Hi {{ contact.first_name | default: "there" }}, ``` Field chips in the editor have a **Fallback** setting that writes this for you. ### Dates and time zones `date` takes a strftime format and, optionally, a time zone as second argument: ```liquid {{ contact.custom.renewal_date | date: "%d/%m/%Y" }} {{ contact.custom.webinar_at | date: "%A %-d %B, %H:%M", contact.time_zone }} {{ "now" | date: "%Y" }} ``` - Without a zone, dates use the **workspace timezone** from **Settings › Email sending** (UTC if none is set), in the preview exactly as in the sent email. - Pass `contact.time_zone` to show the time in the recipient's zone. If the contact has no zone (or an unknown one), the workspace timezone is used instead of failing. - Pass a fixed IANA zone such as `"Europe/Rome"`. - Dates without a time (`YYYY-MM-DD`, such as Date custom fields) are never shifted to the previous or next day by a zone. - Format codes: `%d` day (01–31), `%-d` day without zero, `%m` month, `%B` month name, `%b` short month, `%A` weekday, `%Y` year, `%H:%M` time, `%I %p` 12-hour time, `%s` Unix seconds. - Month and weekday names are in English. For other languages use a `case` on `date: "%m"`. The date builder in the Liquid helper offers these presets: `%d/%m/%Y`, `%m/%d/%Y`, `%Y-%m-%d`, `%-d %B %Y`, `%A %-d %B`, `%d/%m/%Y %H:%M`, `%H:%M`, `%Y`. ## The Liquid helper Open it with `{{ }} Liquid helper` in the editor toolbar (a drawer next to the editor) or in the right panel of the snippet editor. *Pick fields, build conditions and preview them for a real contact. Inserting puts the code at the editor cursor.* | Tab | What it does | | --- | --- | | **Fields** | Every field of the render context, searchable (*Search fields…*), grouped as above. **Fallback for inserted fields** sets a fallback for the next insert. Click a field to insert it at the cursor (*Dates get a format, tags are joined with commas.*). Masked sensitive fields show a lock. | | **Build** | Generators that write Liquid for you: **Fallback**, **Format date**, **If / else**, **Has tag**, **Loop**, **Case**. Each shows the **Generated Liquid** (or *Complete the form to generate the code.*), with **Copy**, **Insert** and **Try in preview**. | | **Preview** | Renders Liquid for a contact (**Preview for contact**, or sample data from your own user). Choose **Expression** (what you type here) or **Whole email** / **This snippet**, and the **Output format**: **Text** or **HTML (escaped)**. Shows the **Output**, syntax errors as *Line \{line\}, column \{column\}:*, variables *Not in the render context (typo?):* and variables *Empty for this contact (fallback used if set):*. | | **Guide** | The searchable in-app guide to Dynamic Content and Liquid. | Builder options: - **Fallback**: **Field**, **Fallback**, **Transform** (**None**, `capitalize`, `upcase`, `downcase`) and **Max characters** (adds `truncate`). - **Format date**: **Field**, **Format** preset or **Custom format**, **Time zone**: **Workspace timezone (default)**, **Contact’s time zone**, or **Fixed time zone** with an **IANA zone**. - **If / else**: one or more conditions with **Operator** (**is**, **is not**, **contains**, **is greater than**, **is less than**, **is at least**, **is at most**, **is empty**, **is not empty**, **contact has tag**), **Combine conditions** (**all (and)** / **any (or)**), **Then show**, **Add “else if”**, **Otherwise show**. - **Has tag**: **Tag**, **Then show**, **Otherwise show**, and **Show when the contact does NOT have the tag**. - **Loop**: **List**, **Item name**, **Limit**, **Separator**, **For each item show**, **If the list is empty show**. - **Case**: **Field**, one or more **Values, comma separated** with their text (**Add “when”**), and the otherwise text; **Field options** lists the choices of dropdown custom fields. ## Recipes Greeting with fallback: ```liquid Hi {{ contact.first_name | default: "there" }}, ``` Text by language (store the language in a custom field such as `language`): ```liquid {% case contact.custom.language %} {% when "it" %}Ciao {{ contact.first_name }}! {% when "fr" %}Bonjour {{ contact.first_name }} ! {% else %}Hello {{ contact.first_name }}! {% endcase %} ``` Block only for contacts with a tag: ```liquid {% if contact.tags contains "Webinar 2026" %} Your recording is ready. {% endif %} ``` Countdown to a date, shown in the contact's zone: ```liquid {%- assign now_s = "now" | date: "%s" | plus: 0 -%} {%- assign end_s = contact.custom.renewal_date | date: "%s" | plus: 0 -%} {%- assign days = end_s | minus: now_s | divided_by: 86400 -%} {% if days > 0 %}Your plan renews in {{ days }} days, on {{ contact.custom.renewal_date | date: "%d/%m/%Y", contact.time_zone }}.{% endif %} ``` ## Reference ### Where each part is escaped | Part | HTML-escaped | Notes | | --- | --- | --- | | Email HTML body | yes | `raw` disables escaping for one output; the final HTML is sanitised anyway | | Plain-text body | no | Generated from the same document | | Subject | no | Line breaks are removed | | Snippet output | rendered as text, then escaped once by the email's `{{ snippets. }}` in the HTML part | HTML in a snippet shows literally | ### REST API | Method and path | Permission | Purpose | | --- | --- | --- | | `GET /api/v2/t//liquid/schema` | `broadcasts:read` | Fields (including custom fields and snippets), filters, tags and limits | | `POST /api/v2/t//liquid/preview` | `broadcasts:read` | Render a template (max 200,000 characters) for a contact or sample data; returns output, positioned errors, used, missing and unknown variables | | `GET /api/v2/t//email/previewContext?contact_id=…` | `contacts:read` | The render context of a real contact and the default `date` zone | ## Limits and permissions | Limit | Value | | --- | --- | | Snippet and helper template size | 200,000 characters | | Render time | 1,000 ms per template part per recipient | | Snippet render time | 500 ms per snippet per recipient | | Memory | about 10 MB per render (whole compiled emails: up to 32 MB) | Using the helper and previews requires `broadcasts:read`; previews with a real contact also need `contacts:read`. Editing snippets requires `templates:write`. ## Troubleshooting | Symptom | Cause | Fix | | --- | --- | --- | | *Error:* or *Line N, column M:* in the preview; template **Needs fixes**; broadcast **Cannot send yet: the email content has errors** | Liquid syntax error: unclosed `{% if %}`/`{% for %}`, a stray `{{`, or an unknown filter | Open the helper **Preview** tab, go to the reported line, fix it. Check the filter name against [Filters](#filters). | | *Not in the render context (typo?): contact.firstname* | The variable does not exist | Use the exact path, e.g. `contact.first_name`, or pick it from **Fields**. | | *Empty for this contact (fallback used if set):* | The field has no value for the selected contact | Add a fallback with `default`. | | `{% if contact.first_name %}` is true for contacts without a name | Empty text is truthy in Liquid | Use `!= blank`. | | A date is one day off | A date-time value is shown in a different zone | Pass the wanted zone as second argument of `date`; date-only values are never shifted. | | Month names are in English | strftime names are English only | Use `case` on `date: "%m"`. | | Render stops with a time or memory error | A very large loop | Add `limit:` to loops. | | `{% include %}` / `{% render %}` renders nothing | The sandbox has no files | Use a Dynamic Content snippet. | ## Related - [Email templates](https://amabledata.com/docs/marketing/email-templates) - [Broadcasts](https://amabledata.com/docs/marketing/broadcasts) - [Sending settings and domains](https://amabledata.com/docs/marketing/email-sending-settings) - [Custom fields](https://amabledata.com/docs/concepts/custom-fields) - [Money and time zones](https://amabledata.com/docs/concepts/money-and-time-zones) --- # Automations Section: Email marketing URL: https://amabledata.com/docs/marketing/automations Summary: Visual workflows that react to what contacts do: goals, sequences and decisions on a canvas, autosaved drafts, publishing and versions, enrolment and re-entry rules, time zones, reporting and execution logs. ## Overview An **automation** is a workflow drawn on a canvas that runs by itself for each contact: when a contact does something (gets a tag, submits a form, pays an order, opens an email, books a meeting…), the automation can wait, send emails, update the CRM, call webhooks, branch on conditions and much more. Where to find it: - Sidebar: **Marketing › Automations** - URL: `/t//automations` (list) and `/t//automations/` (canvas editor) Marketers build and publish automations; other roles can open them read-only. The complete list of triggers and steps with every field is in [Triggers and steps reference](https://amabledata.com/docs/marketing/automation-triggers-and-steps). ## How it works ### Building blocks An automation is a graph of **nodes** connected by arrows: | Node | Canvas colour | Purpose | | --- | --- | --- | | **Goal** | green | Something a contact does. A goal with no incoming arrow is an **entry point**: achieving it brings the contact into the automation. A goal with incoming arrows is a milestone the contact waits for. A goal has 1–10 triggers and is achieved when **any** of them happens. | | **Sequence** | blue | An ordered list of up to 100 **steps**: timers (wait) and actions (send email, apply tag, create task, HTTP request…). Steps run one after the other for each contact. | | **Decision** | amber | Up to 10 **branches**, each with a filter on the contact (the same conditions as saved searches). Branches are checked in order: the first that matches wins; contacts matching none follow **Otherwise**. | | **Note** | yellow | A sticky note for comments. Never connected. | Limits per automation: 500 nodes and 2,000 connections. ### How a contact moves through the graph 1. **Entering.** When an event matches a trigger of an entry goal, the contact is **enrolled** (unless the enrolment rules below forbid it). A contact can also be added manually or by another automation's **Add to sequence** step. 2. **Leaving a node.** When a goal is achieved, a sequence finishes its last step, or a decision picks a branch, the contact follows **every** outgoing arrow of that node (or of the chosen branch). Several arrows mean the contact runs several paths in parallel. 3. **Waiting for a goal.** An arrow from a sequence or decision into a goal means "then wait until the goal is achieved". The contact waits there indefinitely. 4. **Goals pull contacts forward.** When a contact achieves a goal, every position the contact holds **upstream** of that goal (in any node from which the goal can be reached) is cancelled, and the contact continues from the goal. This is how you stop a nurturing sequence as soon as someone buys: put a "Product purchased" goal after it. 5. **Finishing.** A path ends when a node has no outgoing arrow. The enrolment is **completed** when no live position is left, or **failed** if any position failed. An **End automation** step ends the enrolment immediately and cancels every other position. Each goal can be achieved at most once per enrolment. ### Enrolment and re-entry rules - A contact can be in a given automation **only once at a time**. - **Re-entry** (automation setting): **A contact enters only once** (default: a contact who was ever enrolled never enters again through a goal) or **A contact can enter again after leaving**. - **Who can achieve it** (per goal): **Anyone (can start the automation)** or **Only contacts already in this automation**. The second makes a goal a pure milestone: it never enrols new contacts, even without incoming arrows. - Manual enrolment (**Add contact**) ignores the re-entry rule but not an active enrolment. - When a contact is **deleted** or **merged** into another, their enrolments are ended as removed. ### Drafts, publishing and versions You always edit a **draft**. Contacts only ever run **published versions**. - The canvas autosaves the draft about 1.2 seconds after each change (and immediately with Ctrl/⌘+S). The draft is not saved while the canvas has shape errors (for example a tag goal with no tag selected); the indicator shows **Incomplete: fix the highlighted items to save**. - **Publish** validates the draft and, if there is no blocking error, stores it as a new numbered **version** (v1, v2, …) and makes the automation **Active**. Publishing an unchanged draft reuses the current version. - Contacts already in the automation **stay on the version they entered with**. New contacts use the latest published version. Edits never change the path of contacts already running. - **Unpublish** stops the automation (status **Stopped**): no new contact enters, events are ignored, and contacts in progress freeze where they are. Publishing again resumes the frozen contacts on their own version. - **Versions** lists every published version; **Restore to draft** copies an old version (graph and settings) into the draft. The live version changes only when you publish. Two people editing the same draft are protected by a revision check: if someone else saved first you see **The draft changed elsewhere** and choose **Load latest** (your unsaved edits are lost) or **Keep mine** (overwrite theirs). ### Statuses | Automation status | Label | Meaning | | --- | --- | --- | | `draft` | **Draft** | Never published. | | `active` | **Active** | Published and running. **Unpublished changes** is added when the draft or settings differ from the live version. | | `inactive` | **Stopped** | Unpublished. Contacts in progress are frozen. | | Enrolment status | Meaning | | --- | --- | | **Active** | The contact still holds at least one live position. | | **Completed** | Every path finished, or an **End automation** step was reached. | | **Removed** | Removed manually, by a **Remove from sequence** step, because the automation was deleted, or because the contact was deleted or merged. | | **Failed** | Every path finished and at least one step failed for good. | A contact's position in a node has its own status: | Position status | Meaning | | --- | --- | | `scheduled` | Due to run (now or at a future time, e.g. a timer) | | `running` | A step is executing | | `paused` | An email step is waiting because the sending credit check paused it | | `waiting` | Waiting for a downstream goal | | `suspended` | Frozen because the automation was stopped | | `done` | This path finished | | `cancelled` | Pulled forward by a goal, or removed | | `failed` | A step failed after its retries | ### Errors and retries When a step fails with a temporary error (network, HTTP 5xx/408/425/429, an app that does not answer), it is retried after 30 seconds, 2 minutes, 8 minutes and 32 minutes (5 attempts in total). Permanent errors (invalid value, blocked URL, HTTP 4xx) are not retried. After the last attempt the position fails, unless the step has **Continue with the next step if this one fails** enabled, in which case the contact moves on to the next step. CRM writes (notes, tasks, deals, orders…) are protected against duplicates when a step is retried. ### Time zones Timers, send windows and date triggers are evaluated in a time zone chosen in this order: 1. the zone set on the step or trigger, if any (or **Workspace time zone** when explicitly selected); 2. the contact's own **Time zone**; 3. the automation's **Fallback time zone** (automation settings); 4. the **Workspace time zone** of the automation engine, shared by every automation: `UTC` until someone with `settings:manage` changes it in **Automation settings** (see [Change the workspace time zone of automations](#change-the-workspace-time-zone-of-automations)) or with `PUT /api/v2/t//automationSettings`. This engine time zone is separate from the **Workspace timezone** of [Sending settings](https://amabledata.com/docs/marketing/email-sending-settings), which is used for broadcasts and Liquid dates. Set the automation **Fallback time zone** if your contacts often have no time zone. ### Background processing - Events from the CRM, forms, bookings, e-commerce, analytics, apps and email tracking reach the engine within seconds; a safety poll also runs every 5 minutes while any automation is active. - **Date anniversary** goals are checked every hour. - A contact runs at most 25 steps in a row before yielding to others; timers and retries are scheduled precisely to the minute. - Execution logs are kept for **90 days**. ## Step by step ### Create an automation 1. Open **Marketing › Automations** and click **New automation**. 2. Type a **Name** (1–255 characters) and click **Create**. If a folder is selected in the folder panel, the automation is created inside it. 3. The canvas opens with an empty draft (status **Draft**). ### Build the flow on the canvas 1. Add nodes from the left palette (*Drag onto the canvas or click to add*): - **Flow**: **Sequence**, **Decision**, **Note**. - **Goals**: one item per trigger type (**Tag applied**, **Form submitted**, **Order paid**…). Each creates a goal with that trigger. Clicking an item places the node to the right of the flow, level with the selected node. Keyboard: `1` sequence, `2` decision, `3` note, `4` tag goal. 2. Connect nodes by dragging from the handle on the right of a node to another node. A decision has one handle per branch plus **Otherwise**. Notes cannot be connected, a node cannot connect to itself, and duplicate connections are refused. 3. Click a node to edit it in the side panel: - **Goal**: **Label**, the triggers under **Achieved when any of these happens** (**Add trigger**, remove with the × of each trigger), and **Who can achieve it**. - **Sequence**: **Sequence name**, the **Steps** list and **Add step** (grouped as **Timers**, **Email & webhooks**, **CRM**, **E-commerce**, **Flow**). Click a step to expand its form; each step has **Step label**, **Continue with the next step if this one fails**, **Move up**, **Move down**, **Duplicate** and **Delete**. An empty sequence reads *Add the first step: a timer or an action.* - **Decision**: **Decision name**, **Branches (the first match wins)** with a **Branch name** and a condition builder each, **Move up** / **Move down**, **Remove branch**, **Add branch**. *Contacts matching no branch follow "Otherwise".* - **Note**: type on the note itself; choose the **Color** (yellow, blue, green, pink) in the panel. 4. Delete nodes or connections by selecting them and pressing Backspace or Delete. 5. Use the toolbar: **Undo** / **Redo** (50 levels), **Tidy up** (automatic layout), **Check** (validate). Problems are shown on the nodes and steps they belong to, and totals appear in the toolbar (**\{errors\} error(s), \{warnings\} warning(s)**). Problems that belong to the whole graph (for example a missing entry goal) appear at the bottom of the canvas. ### Check and publish 1. Click **Check** (shield icon). The result is **No problems found**, **No blocking problems, \{n\} warning(s)** or **\{n\} problem(s) block publishing**. 2. Click **Publish** (needs `automations:publish`). The draft is saved, validated and published; the toast reads **Published version \{n\}**. The button is disabled while the automation is active and has no unpublished changes. Blocking problems include: no entry goal, a sequence or decision that cannot be reached from an entry goal, connections forming a loop without a goal, an email step without template or subject and body, a blocked webhook URL, a missing target automation or sequence, an app that is not installed, a signature step whose template does not exist or whose parties are not all assigned. The full list is in the [reference](https://amabledata.com/docs/marketing/automation-triggers-and-steps#validation-problems). ### Stop (unpublish) an automation Click **Unpublish** and confirm (*Stop this automation? New contacts will not enter and running contacts wait until you publish again.*). The toast reads **Automation stopped**. ### Change the automation settings 1. Click **Settings** (gear icon). 2. In **Automation settings** edit: - **Name** and **Description** (up to 2,000 characters). - **Re-entry**: **A contact enters only once** / **A contact can enter again after leaving**. - **Default send window for emails**: when switched on, every **Send email** step without its own window only sends inside these days and hours (default Mon–Fri, 09:00–18:00). Choose the **Days** and the **From** / **To** times. A window whose end is earlier than its start spans midnight (for example 22:00–06:00). - **Fallback time zone**: the zone for contacts without one (empty = **Workspace time zone**). 3. Click **Save** (**Settings saved**). As the dialog says, *Changes apply to new contacts after publishing.* Name and description change immediately; re-entry, send window and time zone are part of the next published version. ### Change the workspace time zone of automations The last field of **Automation settings**, **Workspace time zone**, is not a setting of the automation you opened: it is the engine-wide fallback zone used when neither the contact nor the automation (nor the step or trigger) has a time zone. 1. Open any automation and click **Settings** (gear icon). 2. Under **Workspace time zone** (*Shared by every automation: used when neither the contact nor the automation has a time zone. Changing it needs the settings permission.*), type or pick an IANA zone in the list. The field shows the current zone (`UTC` until changed). 3. Click the **Save** button next to the field. The toast reads **Workspace time zone saved**. The change applies at once to every automation, without publishing, and does not save the other fields of the dialog (use the dialog's own **Save** for those). Without `settings:manage` the field is read-only and has no **Save** button. ### Add a contact manually 1. Make sure the automation is **Active** (**Add contact** is disabled otherwise). 2. Click **Add contact** (person icon). 3. Search the contact (*Search contacts by name or email*) and click it. 4. In **Start at**, choose a goal (as if the contact achieved it) or a sequence (the contact starts its first step); leave **First entry goal** to use the first entry goal. 5. Click **Add**. The toast reads **Contact added**. ### Follow results with reporting 1. Click **Reporting** (chart icon, or press `R`). The canvas becomes read-only and animated; a bar shows **\{active\} active · \{completed\} completed · \{failed\} failed** and *Click a node to see its contacts.* Counters refresh every 10 seconds. 2. Each node and each step shows **Entered**, **Active**, **Completed** and **Errors**. For a goal, **Active** counts contacts waiting for it. 3. Click a node to open **Contacts at \{name\}**: every contact who visited it, with an **All statuses** filter (**Active**, **Completed**, **Removed**, **Failed**) and **Load more**. 4. Click a contact to see the enrolment: name (link to the contact), status, **Started \{date\}**, the current **Positions** (node, step, status and **due \{date\}**), and the **Execution log** (time, kind, node, message; failures in red, retries in amber). 5. To take the contact out, click **Remove from automation** (**Contact removed**). Each contact's page also lists the automations they are in and their history (see [Contact detail](https://amabledata.com/docs/crm/contact-detail)). ### Restore an older version 1. Click **Versions** (history icon). Each row shows `v{number}`, the publication date and who published it; the live version is marked **Live**. 2. Click **Restore to draft** on a version and confirm (*Replace the current draft with version \{n\}? The live version does not change until you publish.*). 3. Review the canvas and **Publish** when ready. ### Duplicate, move or delete automations In the list, use the row menu: **Open**, **Duplicate** (creates a **Draft** named “… (copy)” with the same graph and settings) and **Move to** a folder; select several rows to move them together or drag them onto a folder. To delete, select rows, click **Delete** and confirm. An **Active** automation cannot be deleted (*unpublish the automation before deleting it*); deleting ends every active enrolment as removed. ## Reference ### List Tabs: **All**, **Active**, **Draft**, **Stopped**. A folder panel on the left filters by folder (toggle it with the folder button; see [Folders](https://amabledata.com/docs/concepts/folders)). | Column | Content | | --- | --- | | **Name** | Name and description | | **Status** | **Draft**, **Active** or **Stopped**, plus **Unpublished changes** | | **Active contacts** | Enrolments currently active | | **Last published** | `v{n} · {date}` or **Never** | | **Updated** | Last change (default sort, newest first) | Empty state: **No automations yet** — *A goal starts the automation, sequences run the steps, decisions split the flow.* ### Save indicator | Text | Meaning | | --- | --- | | **All changes saved** | The draft on the server matches the canvas | | **Unsaved changes** | A save is pending | | **Saving…** | Saving now | | **Incomplete: fix the highlighted items to save** | The canvas has shape errors; nothing is saved until fixed | | **Save failed: retrying on the next change** | The server refused or was unreachable | | **Changed elsewhere** | Someone saved a newer draft (conflict dialog) | | **Read only** | Your role cannot edit | ### Keyboard shortcuts Open them with **Shortcuts** or `?`. | Keys | Action | | --- | --- | | Ctrl/⌘ + S | **Save now** | | Ctrl/⌘ + Z | **Undo** | | Ctrl/⌘ + ⇧ + Z (or Ctrl/⌘ + Y) | **Redo** | | Ctrl/⌘ + D | **Duplicate the selected node** | | ⌫ / Delete | **Delete the selection** | | 1 / 2 / 3 / 4 | **Add sequence / decision / note / tag goal** | | R | **Toggle reporting** | | F | **Fit the view** | | L | **Tidy up the layout** | | Esc | **Close the panel** | ### Execution log kinds | Kind | Written when | | --- | --- | | `enrolled` | The contact entered (goal, manually, or by another automation) | | `goal_achieved` | A goal was achieved | | `node_entered` | The contact entered a sequence or decision | | `step_done` | A step completed | | `step_skipped` | A step was skipped (e.g. empty date field, no deal to move, credit denied, app not installed) | | `step_waiting` | A timer started waiting (with the time it ends) | | `step_retry` | A step failed and will be retried (with the retry time) | | `step_failed` | A step failed for good | | `decision` | A decision chose a branch | | `paused` | An email step was paused by the credit check | | `resumed` | A paused email step was sent | | `cancelled` | A position was pulled forward by a goal | | `completed` | The enrolment finished (or an **End automation** step ran) | | `removed` | The enrolment was removed | ### REST API Paths relative to `/api/v2/t/`. | Method and path | Permission | Purpose | | --- | --- | --- | | `GET /automations` | `automations:read` | List (`status`, `q`, folder filters, `limit` 1–200) | | `POST /automations` | `automations:write` | Create (`name`, `description`, `settings`, `graph`, `folder_id`) | | `GET /automations/{id}` | `automations:read` | Get with the draft graph | | `PATCH /automations/{id}` | `automations:write` | Update name, description, settings | | `DELETE /automations/{id}` | `automations:write` | Delete (not while active) | | `PUT /automations/{id}/draft` | `automations:write` | Save the draft graph (`graph`, `revision` for the conflict check) | | `POST /automations/{id}/validate` | `automations:read` | Validate the draft | | `POST /automations/{id}/publish` · `/unpublish` | `automations:publish` | Publish or stop | | `GET /automations/{id}/versions` · `/versions/{versionId}` | `automations:read` | Versions | | `POST /automations/{id}/versions/{versionId}/restore` | `automations:write` | Restore into the draft | | `GET /automations/{id}/enrollments` · `/enrollments/{enrollmentId}` | `automations:read` | Enrolments (filters `status`, `contact_id`, `node_id`, `scope`) and one enrolment with its log | | `POST /automations/{id}/enrollments` | `automations:write` | Add a contact (`contact_id`, optional `node_id`) | | `DELETE /automations/{id}/contacts/{contactId}` | `automations:write` | Remove a contact | | `GET /automations/{id}/stats` | `automations:read` | Counters per node and step | | `GET /contacts/{id}/automations` | `automations:read` | Enrolments of one contact | | `GET /automations/{id}/signing-secret` · `POST …/rotate` | `automations:publish` | Webhook signing secret | | `POST /automationGoals/{callName}/trigger` | `automations:trigger` | Fire an API goal | | `GET` / `PUT /automationSettings` | `automations:read` / `settings:manage` | Engine fallback time zone | ## Limits and permissions | Action | Permission | Roles | | --- | --- | --- | | Open the list, canvas (read-only), versions, reporting | `automations:read` | Owner, Admin, Marketer, Sales, Analyst, Viewer | | Create, edit, duplicate, delete, add or remove contacts, restore versions | `automations:write` | Owner, Admin, Marketer | | Publish, unpublish, see and rotate the signing secret | `automations:publish` | Owner, Admin, Marketer | | Fire API goals | `automations:trigger` | Owner, Admin, Marketer, Sales | | Change the **Workspace time zone** of automations | `settings:manage` | Owner, Admin | | Limit | Value | | --- | --- | | Nodes per automation | 500 | | Connections per automation | 2,000 | | Triggers per goal | 10 | | Steps per sequence | 100 | | Branches per decision | 10 | | Name / description | 255 / 2,000 characters | | Step attempts | 5 | | Execution log retention | 90 days | ## Troubleshooting | Symptom | Cause | Fix | | --- | --- | --- | | **Incomplete: fix the highlighted items to save** | A required field is empty (for example a tag goal with no tag, a move-stage step without stage) | Fix the items marked in red on the canvas. | | **\{n\} problem(s) block publishing** | Validation errors | Click **Check** and fix each problem; see [Validation problems](https://amabledata.com/docs/marketing/automation-triggers-and-steps#validation-problems). | | “the automation needs at least one goal without incoming connections” | No entry goal | Add a goal with no incoming arrow. | | “… cannot be reached from any entry goal” | A node is disconnected | Connect it or delete it. | | “connections starting at … form a loop without a goal” | A cycle of sequences/decisions | Put a goal inside the loop or remove a connection. | | A contact did not enter | The automation is not **Active**; re-entry is **once** and the contact was already enrolled before; the goal accepts **Only contacts already in this automation**; or the contact is already in it | Check status, settings and the goal. | | Contacts are stuck in a sequence | The automation was stopped (positions `suspended`), they are in a timer, or an email step waits for its send window | Publish again, or open reporting to see **due** times. | | An email step shows `step_skipped` with “email not sent: …” | The sending credit check denied it | Check your plan and credit (see [Billing and wallet](https://amabledata.com/docs/settings/billing-and-wallet)). | | The email step is done (“email queued”) but the contact received nothing | The message was skipped or blocked at send time: address suppressed, contact not marketable, no email, sending domain not verified | Check the contact's email history, [Suppressions](https://amabledata.com/docs/marketing/suppressions) and [Sending settings](https://amabledata.com/docs/marketing/email-sending-settings). | | **only published automations accept contacts** | You tried to add a contact (via API) to a draft or stopped automation | Publish first. In the app, **Add contact** is disabled until the automation is active. | | **the contact is already in this automation** | The contact has an active enrolment | Remove them first or wait until they finish. | | **The draft changed elsewhere** | Another tab or user saved | Choose **Load latest** or **Keep mine**. | | **unpublish the automation before deleting it** | You tried to delete an active automation | Unpublish, then delete. | | Timers fire at the wrong hour | The contact has no time zone and the fallback is UTC | Set the automation **Fallback time zone**, or change the **Workspace time zone** in **Automation settings** for all automations. | ## Related - [Triggers and steps reference](https://amabledata.com/docs/marketing/automation-triggers-and-steps) - [Email templates](https://amabledata.com/docs/marketing/email-templates) - [Personalisation (Liquid)](https://amabledata.com/docs/marketing/liquid-reference) - [Sending settings and domains](https://amabledata.com/docs/marketing/email-sending-settings) - [Search and saved searches](https://amabledata.com/docs/concepts/search-and-saved-searches) - [Contact detail](https://amabledata.com/docs/crm/contact-detail) - [Webhooks](https://amabledata.com/docs/developers/webhooks) --- # Triggers and steps reference Section: Email marketing URL: https://amabledata.com/docs/marketing/automation-triggers-and-steps Summary: Every goal trigger, step, decision condition and validation problem of the automation builder, with fields, defaults, limits and exact runtime behaviour. ## Overview This page lists everything you can put on an automation canvas: the 17 **goal triggers**, the 21 **step** types of a sequence, **decision** conditions, the time-window and time-zone options, and every problem the validator can report. For how goals, sequences and decisions fit together, publishing and reporting, read [Automations](https://amabledata.com/docs/marketing/automations) first. You configure all of this in the side panel of the canvas (**Marketing › Automations › your automation**, URL `/t//automations/`). ## How it works - A **goal** has 1–10 triggers and is achieved when **any** of them matches an event for a contact. Entry goals (no incoming arrow) enrol contacts; other goals are milestones. Each goal is achieved at most once per enrolment. - A **sequence** runs its steps in order. **Timers** wait; **actions** do something and move on immediately. - A **decision** checks branches in order and sends the contact down the first that matches, otherwise down **Otherwise**. - Every step can have a **Step label** (shown on the canvas instead of the type) and **Continue with the next step if this one fails**. - Steps that fail temporarily are retried up to 5 attempts (30 s, 2 min, 8 min, 32 min); permanent failures stop the position immediately unless **Continue with the next step if this one fails** is on. ## Goal triggers The palette's **Goals** section has one item per trigger. Inside a goal, **Add trigger** adds another trigger of any type, and each trigger can be removed. | Trigger (label) | API `type` | Fires when | Fields (empty = any) | | --- | --- | --- | --- | | **Tag applied** | `tag_applied` | One of the tags is applied to a contact | **Tags** (required, 1–100) | | **Tag removed** | `tag_removed` | One of the tags is removed from a contact | **Tags** (required, 1–100) | | **Contact created** | `contact_created` | A contact is created | — | | **Form submitted** | `form_submitted` | A contact submits a form | **Forms** (*Any form*) | | **Product purchased** | `product_purchased` | An order containing one of the products is paid | **Products** (*Any product*) | | **Order paid** | `order_paid` | An order is paid | **Minimum order total (minor units, e.g. cents)** | | **Email opened** | `email_opened` | The contact opens an email (first open of each email) | **Email sent by automation**, **Email sent by broadcast** (*Any email*) | | **Email link clicked** | `email_clicked` | The contact clicks a tracked link | **Email sent by automation**, **Email sent by broadcast**, **Link URL contains** | | **Lead score** | `lead_score` | The contact's score crosses a threshold | **Score threshold** (default 50), **When the score**: **reaches or exceeds it** / **drops below it** | | **API call** | `api` | Your backend calls the trigger endpoint | **API call name** (required) | | **Web goal** | `web_goal` | An identified visitor completes a web analytics goal | **Web goal name** (required), **Site** (*Any site*) | | **Appointment booked** | `appointment_booked` | The contact books through a booking page | **Booking event types** (*Any event type*), **Also appointments created in the CRM calendar** | | **Deal stage changed** | `opportunity_stage_changed` | A deal of the contact moves between stages | **Pipeline** (*Any pipeline*), **Moved to stage**, **Moved from stage** (*Any stage*) | | **Date anniversary** | `date_anniversary` | Every year on (or around) a date field of the contact | **Date field**, **Offset in days (negative = before)**, **Time of day**, **Time zone** | | **App event** | `app_event` | An installed app reports an event for the contact | **App**, **Event** | | **Document signed** | `document_completed` | Every party has signed a document sent for signature (fires for each signer) | **Signature templates** (*Any template*) | | **Signature declined** | `document_declined` | The contact declines to sign a document | **Signature templates** (*Any template*) | ### Tag applied / Tag removed Matches when any of the selected tags is applied (or removed), however that happens: by a user, an import, a form, the API or another automation. The goal cannot be saved without at least one tag. See [Tags](https://amabledata.com/docs/crm/tags). ### Contact created Matches every new contact. Combine it with a decision right after the goal to filter, for example by lead source. ### Form submitted Matches a submission of the selected forms, or of any form when none is selected. The submission must be linked to a contact. See [Forms](https://amabledata.com/docs/forms/overview). ### Product purchased and Order paid Both listen to paid orders. **Product purchased** matches when the order contains at least one of the selected products (any product when empty). **Order paid** matches when the order total is at least the minimum, expressed in **minor units** (cents: `5000` = 50.00). See [Orders](https://amabledata.com/docs/ecommerce/orders). ### Email opened and Email link clicked Listen to tracked emails sent by amabledata (broadcasts, automation emails, single emails; never test sends). - **Email sent by automation**: only emails sent by that automation (any of its email steps). **Email sent by broadcast**: only that broadcast. Both empty: any email. - **Email opened** fires on the first open of each message (repeated opens are ignored). A click also counts as an open. - **Link URL contains**: the clicked destination must contain this text (case-sensitive, up to 500 characters). Through the API the email reference can also narrow to a specific `node_id` and `step_id` of an automation. ### Lead score Fires when the contact's score **crosses** the threshold: **reaches or exceeds it** means it was below and is now at or above; **drops below it** means it was at or above and is now below. A score that is already above does not fire again until it crosses again. ### API call Fires when your system calls: ```bash curl -X POST 'https:///api/v2/t//automationGoals//trigger' \ -H 'Authorization: Bearer amb_live_…' \ -H 'content-type: application/json' \ -d '{"contact_id":"","event_id":""}' ``` - **API call name**: lowercase letters, digits, `_`, `.` and `-`, starting with a letter or digit, up to 64 characters (default `my.goal`). The panel shows a ready-to-copy snippet (**Trigger from your backend**). - Use an API key with the `automations:trigger` permission (see [API keys](https://amabledata.com/docs/settings/api-keys)). - `event_id` (optional, up to 128 characters): the same id fires only once (remembered for 7 days). - The response lists the goals achieved (`matched`: automation and node ids) and `duplicate: true` when the `event_id` was already used. An unknown contact returns 404. - The same call name can be used in several automations: all of them are matched. ### Web goal Fires when a visitor who is **identified** as a contact completes the web analytics goal with exactly this name, on the selected site or any site. Anonymous visitors never trigger it. See [Goals and funnels](https://amabledata.com/docs/analytics/goals-and-funnels). ### Appointment booked Fires when a contact books a meeting through a public booking page (the `appointment.booked` event), for the selected event types or any. With **Also appointments created in the CRM calendar** it also fires when an appointment linked to the contact is created by hand in the CRM calendar or through the API, whatever the event types selected. A booking counts once: the CRM appointment that every booking creates does not fire the trigger a second time. See [Bookings](https://amabledata.com/docs/bookings/overview). ### Deal stage changed Fires when a deal linked to the contact changes stage. Narrow it by **Pipeline**, by the destination stages (**Moved to stage**) and by the origin stages (**Moved from stage**); changing the pipeline clears the stage choices. See [Deals](https://amabledata.com/docs/crm/deals). ### Date anniversary Fires once a year for each contact whose date field falls on today, shifted by the offset: - **Date field**: **Birthday**, **Anniversary**, **Created at**, or any contact custom field of type Date or Date and time. - **Offset in days (negative = before)**: −365 to 365 (default 0). `-3` fires three days before the date, `7` a week after. - **Time of day**: default 09:00. - **Time zone**: default **Workspace time zone** (the automation's fallback zone, or the engine zone). The same zone applies to every contact of this trigger. The engine checks every hour; once the local time of the trigger is reached, every matching contact achieves the goal (once per day). People born on 29 February are matched on 28 February in non-leap years. The automation must be **Active** on that day. ### App event Fires when an installed app reports the selected event for a contact (apps send events with `POST /api/v2/t//apps/events`). Choose the **App** (*Choose an installed app*) and the **Event** (*Choose an event*). If no installed app declares events, the panel reads *No installed app adds automation events. Browse the apps in Settings → Apps.* See [Apps](https://amabledata.com/docs/settings/apps) and [Apps SDK](https://amabledata.com/docs/developers/apps-sdk). ### Document signed and Signature declined Both listen to documents sent for signature (see [Signatures](https://amabledata.com/docs/signatures/overview)), whoever sent them: a member, the API or the **Send document for signature** step. - **Document signed** fires when the **last** party signs and the request becomes completed. It fires once **for each signer**: every signer's contact achieves the goal, not only the one who signed last. It listens to the `esign.request_completed` event. - **Signature declined** fires for the contact who declined (the `esign.request_declined` event). The other signers do not achieve it. - **Signature templates**: only requests sent from these templates (up to 100). Empty = *Any template*. The filter uses the template the request was sent from, even if the template was edited later. A signer whose contact was deleted after the request was sent achieves nothing. ### Who can achieve it Each goal also has **Who can achieve it**: - **Anyone (can start the automation)** (default). - **Only contacts already in this automation**: the goal never enrols anyone. ## Steps Click **Add step** in a sequence. Steps are grouped as in the menu. ### Timers #### Delay Waits for a duration. | Field | Values | Default | | --- | --- | --- | | **Amount** | 0–100,000 | 1 | | **Unit** | **minutes**, **hours**, **days** (24 h), **weeks** | **days** | | **Only within a time window** | **Days** (**Mon**–**Sun**), **From**, **To** | off | With a window, if the delay ends outside the window the contact resumes at the next opening (in the contact's time zone, falling back as described in [Time zones](https://amabledata.com/docs/marketing/automations#time-zones)). #### Wait until date Waits until a calendar date and time. | Field | Values | Default | | --- | --- | --- | | **Date** | YYYY-MM-DD | tomorrow | | **Time** | HH:MM (24 h) | 09:00 | | **Time zone** | an IANA zone, or empty = **Contact time zone (else workspace)** | empty | If the moment has already passed when the contact arrives, the step completes immediately (“date already past”). #### Field timer Waits until a moment relative to a date field of the contact. | Field | Values | Default | | --- | --- | --- | | **Field** | **Birthday**, **Anniversary**, **Created at**, Date / Date and time custom fields | **Birthday** | | **Offset** | amount + unit + **before** / **after** | none | | **Time** | HH:MM | 09:00 | | **Every year (next occurrence)** | on/off | on | | **If the field is empty** | **Skip the timer** / **Stop the contact here** | **Skip the timer** | | **Time zone** | IANA zone or empty = **Contact time zone (else workspace)** | empty | With **Every year** the timer targets the next yearly occurrence (29 February becomes 28 February in non-leap years); otherwise it targets the exact date, and a date already past completes the step immediately. **Stop the contact here** ends this path (the position is done). ### Email & webhooks #### Send email Queues one email to the contact. | Field | Values | Notes | | --- | --- | --- | | Source | **Content written here** / **Template** | | | **Template** | one of your [email templates](https://amabledata.com/docs/marketing/email-templates) | Used as it is at send time | | **Subject** | up to 500 characters, Liquid allowed | Content written here; default `Hello {{ contact.first_name }}` | | **Edit email** | opens **Email content**: **Subject**, **Preheader** (up to 500), the email editor, and an **HTML** / **Text** preview with sample data | Click **Save** in the dialog to keep changes | | **From name** | up to 200 characters | Empty = template or workspace sender name | | **Reply-to** | email | Empty = template or workspace reply-to | | **Only within a time window** | **Days**, **From**, **To** | Off = *Use the automation send window* | At run time the step: 1. waits for the send window (the step's own, or the automation's **Default send window for emails**), if any; 2. asks the sending credit check: if it **denies**, the step is skipped (“email not sent: …”) and the contact continues; if it **pauses**, the position becomes `paused` and is re-checked later (every 15 minutes unless the plan says otherwise); 3. queues the email and completes (“email queued”). The email itself is sent by the sending queue with all the usual checks (verified domain, suppression list, Email status, warm-up, rate limit). An email that cannot leave within **24 hours** is skipped as expired. Each queued email is unique per contact and step execution, so a retry never sends it twice. The panel shows the **Email sending is blocked** banner while no sending domain is verified. Validation requires a template **or** a subject and a body. #### Send document for signature Sends a signature template to the contact (see [Send a document for signature](https://amabledata.com/docs/signatures/sending)). The panel reads *The contact receives a signing link by email; the other parties sign with the addresses below.* | Field | Values | Default | | --- | --- | --- | | **Template** | one of your signature templates (*Choose a template*); archived templates are not listed | none (required) | | **The contact signs as** | one of the template's parties; shown only when the template has more than one party | the first party | | **Signer for \{party\}** | one block for each other party: **Email** (required, up to 320 characters) and **Name (optional)** (up to 200) | empty | | **Message** | up to 5,000 characters; *Empty: the message of the template.* | empty | When the selected template is not active and ready, the panel warns *This template is not active yet: the step fails until it is activated.* Changing the template clears the party choices; choosing another party for the contact removes the signer block of that party. At run time the step: 1. creates a signature request from the template as it is at that moment (origin **automation**), with the enrolled contact as signer of the chosen party, signing with their primary email address; 2. matches each other party's email to an existing contact, or creates a contact (source "other") when none exists; 3. completes with “signature request … sent” and the result `esign_request_id`. The invitations leave shortly after, from the workspace timer, following the template's signing order. One request is created per step execution: a retry never sends the document twice. The step fails permanently (no retries) when the template was deleted or is no longer active or ready (*the template must be active before sending it*, *the template is not ready to be sent*), when a party has no signer, or when the contact has no email address (*the contact has no email address*). Turn on **Continue with the next step if this one fails** if the rest of the sequence must run anyway. #### HTTP request Calls a URL of yours. | Field | Values | Default | | --- | --- | --- | | **Method** | `GET`, `POST`, `PUT`, `PATCH`, `DELETE` | `POST` | | **URL** | `http(s)` URL, up to 2,048 characters | `https://example.com/webhook` | | **Headers** | **Name** (letters, digits, `-`, up to 64) and **Value** (up to 1,000); **Add header** | none | | **Body** | **Contact JSON**, **IDs only**, **No body** | **Contact JSON** (for `GET`: **No body**) | | **Timeout (ms)** | 500–30,000 | 10,000 | | **Sign the request** | on/off | on | Request details: - Headers always set: `user-agent: amable-automation/1`, `idempotency-key` (the same on every retry of this step for this contact), `content-type: application/json` when there is a body. Custom `Host`, `Content-Length`, `Connection`, `Transfer-Encoding`, `Amable-Signature` and `Idempotency-Key` headers are ignored. - Body (**Contact JSON**): ```json { "event": "automation.http_request", "id": "", "automation_id": "…", "version_id": "…", "node_id": "…", "step_id": "…", "enrollment_id": "…", "contact_id": "…", "contact": { "…": "the full contact record" }, "sent_at": "2026-10-18T09:00:00.000Z" } ``` **IDs only** sends the same object without `contact`. - **Request signing**: *Each request carries Amable-Signature: t=``,v1=`.">` computed with the automation secret. Reject old timestamps (5 minutes). Retries reuse the same Idempotency-Key.* The panel offers **Show secret** and **Rotate secret** (needs `automations:publish`; rotating may ask for your second factor). Each automation has its own secret, stored encrypted. - Outcome: HTTP 2xx and 3xx succeed. 5xx, 408, 425 and 429 and network errors are retried; other 4xx fail permanently. URLs pointing to private or internal addresses are blocked (permanent failure, and a publish error). Responses larger than 64 KB fail. #### App action Runs an action provided by an installed app. | Field | Notes | | --- | --- | | **App** | *Choose an installed app* — only apps that add automation actions | | **Action** | *Choose an action* | | Action inputs | Defined by the app; choices may be loaded live from the app (*Loading the choices from the app…*). Text inputs accept merge tags (*Merge tags such as `{{ contact.first_name }}` are allowed.*) | Merge tags in app inputs can use `contact.id`, `contact.first_name`, `contact.last_name`, `contact.name`, `contact.email`, `contact.phone`, `contact.job_title` and `contact.custom.`. The step is skipped while the app is not installed or paused (*The app is paused: the step is skipped until it is resumed.*). The panel shows the action's outputs (**Result: …**). Inputs are validated against the app's schema when you publish. ### CRM | Step | Fields | Behaviour | | --- | --- | --- | | **Apply tag** | **Tags** (1–100) | Adds the tags to the contact (fires **Tag applied** goals elsewhere). | | **Remove tag** | **Tags** (1–100) | Removes the tags. | | **Add note** | **Title** (optional, 255), **Text** (rich text, required) | Adds a note to the contact. | | **Create task** | **Title** (required, 255; default “Follow up”), **Due in** (duration; default 1 day), **Assign to** (**Contact owner** or a user; default **Contact owner**), **Priority** (**Low**, **Normal**, **High**), **Type** (**To do**, **Call**, **Email**, **Meeting**, **Other**) | Creates a task linked to the contact, due that long after the step runs. | | **Create appointment** | **Title** (required; default “Call”), **Starts in** (duration; default 1 day), **Duration (minutes)** (5–1,440; default 30), **Owner** (**Contact owner** or a user), **Location**, **Description** (up to 10,000) | Creates a CRM calendar appointment linked to the contact. | | **Set field value** | **Field**, **Mode** (**Set to** / **Add**), **Value**, **Clear the field** | See below. | | **Assign owner** | **Users** (1–50), **Strategy** (**Always the first user** / **Round robin**; new steps default to round robin) | Sets the contact owner. Round robin rotates through the users, one per contact. | | **Create deal** | **Title** (required; default “New deal”), **Pipeline**, **Stage**, **Value (minor units)**, **Currency** (3 letters), **Owner** (default the contact owner) | Creates a deal for the contact. | | **Move deal stage** | **Pipeline** and **Stage** (both required), **If the contact has no open deal**: **Skip** / **Create one** | Moves the contact's most recent open deal in that pipeline. Skipped if already in that stage. **Create one** creates a deal titled “Opportunity” in the stage. | **Set field value** can write: **First name**, **Middle name**, **Last name**, **Preferred name**, **Prefix**, **Suffix**, **Job title**, **Website**, **Spouse name**, **Time zone**, **Language**, **Company**, **Lead source**, **Birthday**, **Anniversary**, **Score**, and any contact custom field. **Add** (increment) adds a number to **Score** or a numeric custom field (an empty value counts as 0); the value must be a number. **Clear the field** sets it to empty. A value the field does not accept makes the step fail permanently (“invalid value for …”). New steps default to **Score**, **Add**, 10. CRM writes are made exactly once per step execution, even when a step is retried. ### E-commerce | Step | Fields | Behaviour | | --- | --- | --- | | **Create order** | **Items** (1–50): **Product**, **Quantity** (1–10,000), **Unit price (minor units, optional)**; **Add item**; **Currency** | *Creates a finalized, unpaid order and its invoice.* The order notes mention the automation. See [Orders](https://amabledata.com/docs/ecommerce/orders). | | **Cancel subscription** | **Only subscriptions of these products** (*All live subscriptions*), **At the end of the paid period** (default on) | Cancels the contact's subscriptions in status trialing, active, past due or paused, at period end or immediately. Skipped if there is none. See [Subscriptions](https://amabledata.com/docs/ecommerce/subscriptions). | ### Flow | Step | Fields | Behaviour | | --- | --- | --- | | **Add to sequence** | **Automation** (**This automation** or another), **Sequence** | Puts the contact at the start of that sequence. If the contact is not in the target automation, they are enrolled there (re-entry rules do not apply). Does nothing if the target is not published, the sequence does not exist in its live version, or the contact is already in that sequence. | | **Remove from sequence** | **Automation**, **Sequence** or **The whole automation** | Cancels the contact's positions in that sequence, or removes the contact from the whole automation (status **Removed**). Does nothing if the contact is not in it. | | **End automation** | — | *The contact leaves the automation here; every other position is cancelled.* The enrolment is **Completed**. | ## Decision conditions Each branch of a decision has a **Branch name** and a filter built with the same condition builder as [saved searches](https://amabledata.com/docs/concepts/search-and-saved-searches): contact fields, custom fields, tags and related data, combined with AND / OR groups. The filter is evaluated against the contact at the moment they reach the decision. A branch with no condition matches everyone (shown as **Everyone** on the canvas; otherwise **\{n\} condition(s)**). New decisions start with one branch named “Yes”. ## Send windows and time zones | Option | Where | Values | | --- | --- | --- | | Send window | **Delay**, **Send email**, automation **Default send window for emails** | **Days** (Mon–Sun, all when none), **From** and **To** (HH:MM). End before start = across midnight. | | Time zone | **Wait until date**, **Field timer**, **Date anniversary** | An IANA zone, or empty for the default | | Fallback time zone | Automation settings | IANA zone, empty = **Workspace time zone** | Windows are evaluated in the contact's time zone, then the automation fallback, then the engine zone (`UTC` unless configured). ## Reference ### Validation problems **Check** and **Publish** report these problems. Errors block publishing; warnings do not. | Code | Severity | Message | | --- | --- | --- | | `no_entry_goal` | error | the automation needs at least one goal without incoming connections | | `unreachable` | error | … cannot be reached from any entry goal | | `cycle` | error | connections starting at … form a loop without a goal | | `duplicate_node_id` / `duplicate_step_id` / `duplicate_branch_id` / `duplicate_edge_id` | error | duplicate id | | `unknown_node` | error | edge source/target … does not exist | | `note_connected` | error | notes cannot be connected | | `self_loop` | error | a node cannot connect to itself | | `unknown_branch` | error | decision … has no branch … | | `email_content_missing` | error | an email step needs a template or a subject and a body | | `increment_not_number` | error | increment needs a numeric value | | `url_blocked` | error | URL not allowed: … | | `invalid_date` | error | invalid date | | `invalid_time_zone` | error | unknown time zone … | | `unknown_automation` | error | automation … does not exist | | `unknown_sequence` | error | sequence … not found in automation … | | `app_not_installed` | error | app … is not installed | | `unknown_app_action` | error | … has no action … | | `app_input_*` | error | an app action input is missing or invalid | | `unknown_signature_template` | error | signature template … does not exist | | `unknown_signature_party` | error | the template has no party … | | `invalid_signature_party` | error | party … is unknown or already assigned | | `signature_parties_missing` | error | no signer for … | | `signature_template_inactive` | warning | the template is not active: the step fails until it is activated | | `empty_sequence` | warning | sequence … has no steps | | `duplicate_edge` | warning | duplicate connection | | `ignored_handle` | warning | source_handle is only meaningful on decisions | Shape problems (a required field left empty, a value out of range) are flagged on the canvas before saving and prevent the draft from being saved until fixed. ### Limits | Item | Limit | | --- | --- | | Triggers per goal | 1–10 | | Tags per tag trigger / tag step | 1–100 | | IDs per list (forms, products, event types, stages) | 100 | | Steps per sequence | 100 | | Branches per decision | 1–10 | | Delay amount | 0–100,000 | | Offset days (date anniversary) | −365 to 365 | | Appointment duration | 5–1,440 minutes | | Order items | 1–50, quantity 1–10,000 | | HTTP timeout | 500–30,000 ms; response up to 64 KB | | Signature step | up to 9 other signers; message up to 5,000 characters | | Signature templates per document trigger | 100 | | Step and node labels | 200 characters | | Node ids | letters, digits, `_`, `-`, up to 64 | Graphs can also be created and edited through the API (`POST /automations` with `graph`, `PUT /automations/{id}/draft`): the JSON uses the `type` values listed on this page. See [REST API](https://amabledata.com/docs/developers/rest-api). ## Limits and permissions Editing triggers and steps requires `automations:write` (Owner, Admin, Marketer); publishing requires `automations:publish`; viewing requires `automations:read`. Showing or rotating the HTTP signing secret requires `automations:publish`. Choosing a signature template in a step or trigger lists the templates, which requires `esign:read` (every role). Firing **API call** goals requires an API key or user with `automations:trigger` (Owner, Admin, Marketer, Sales). ## Troubleshooting | Symptom | Cause | Fix | | --- | --- | --- | | A tag goal is red and the draft does not save | No tag selected | Pick at least one tag. | | An API goal call returns 404 | The contact id does not exist | Send an existing contact id. | | An API goal call returns `matched: []` | No **Active** automation has a goal with that call name, the contact cannot (re-)enter, or the goal was already achieved | Check the call name, status and re-entry. | | `duplicate: true` | The `event_id` was already used in the last 7 days | Expected: send a new id for a new event. | | A web goal never fires | The visitor is anonymous, or the goal name differs | Identify visitors (see [Goals and funnels](https://amabledata.com/docs/analytics/goals-and-funnels)); match the name exactly. | | A date anniversary fires at an unexpected hour | The trigger time zone is the workspace/engine zone | Set the trigger **Time zone**. | | HTTP step fails with “blocked URL” | The URL points to a private or internal address | Use a public URL. | | HTTP step fails with “HTTP 401/403/404” immediately | 4xx responses are permanent | Fix the endpoint or credentials. | | HTTP step retried several times | 5xx, 408, 425, 429 or a timeout | Make the endpoint reachable; retries reuse the same `idempotency-key`. | | **Set field value** fails with “invalid value for …” | The value does not fit the field (e.g. text in a number field) | Correct the value. | | **Move deal stage** shows “no open opportunity in the pipeline” | The contact has no open deal there | Choose **Create one** or expect the skip. | | **App action** skipped | The app is not installed or paused | Install or resume the app in [Apps](https://amabledata.com/docs/settings/apps). | | **Add to sequence** does nothing | The target automation is not published or the contact is already in that sequence | Publish the target; check the log message. | | Publishing fails with “no signer for …” | A party of the signature template has no email in **Signer for \{party\}** | Fill the email of every other party. | | **Send document for signature** fails with “the template must be active before sending it” | The template is a draft or archived (the publish warning `signature_template_inactive`) | Activate the template in **Signatures › Templates**. | | **Send document for signature** fails with “the contact has no email address” | The enrolled contact has no email | Add an email to the contact, or filter contacts without email with a decision before the step. | | **Document signed** does not fire | Not every party has signed yet, or the template filter excludes the request's template | Wait for the last signature; check **Signature templates**. | ## Related - [Automations](https://amabledata.com/docs/marketing/automations) - [Email templates](https://amabledata.com/docs/marketing/email-templates) - [Forms](https://amabledata.com/docs/forms/overview) - [Bookings](https://amabledata.com/docs/bookings/overview) - [Orders](https://amabledata.com/docs/ecommerce/orders) - [Goals and funnels](https://amabledata.com/docs/analytics/goals-and-funnels) - [Deals](https://amabledata.com/docs/crm/deals) - [Signatures](https://amabledata.com/docs/signatures/overview) - [Webhooks](https://amabledata.com/docs/developers/webhooks) --- # Suppressions Section: Email marketing URL: https://amabledata.com/docs/marketing/suppressions Summary: The workspace list of email addresses that must never receive marketing email: how addresses get there (unsubscribes, bounces, complaints, manual), how to search, add and remove them, and how the list interacts with contact email status. ## Overview The **suppression list** holds the email addresses that amabledata must not email any more: people who unsubscribed, addresses that hard-bounced, recipients who reported spam, and addresses you blocked by hand. Every broadcast and automation email checks this list, both when the audience is estimated and again at the moment each message is sent. Where to find it: - Sidebar: **Marketing › Suppressions** - URL: `/t//suppressions` - Page title: **Suppression list** Everyone with `broadcasts:read` can see the list; adding and removing addresses requires `suppressions:write`. ## How it works ### One entry per address The list is keyed by **email address**, not by contact. Addresses are normalised (trimmed and lower-cased) before they are stored or compared, so `Ada@Example.com` and `ada@example.com` are the same entry. If two contacts share an address, suppressing it stops email to both. Each entry records a **Reason**, a **Source**, the contact it came from (when known) and the date it was added. ### How addresses enter the list | Reason (badge) | Added when | Source shown | | --- | --- | --- | | **Unsubscribed** | The recipient clicks the unsubscribe link in an email, uses the one-click unsubscribe button of their mailbox (the `List-Unsubscribe` header), or unsubscribes through the sending provider | `link`, `one_click` or `provider` | | **Bounced** | The provider reports a **hard bounce** (the address does not exist) | `webhook` | | **Spam complaint** | The recipient marks an email as spam | `webhook` | | **Manual** | You add the address on this page or through the API, or the provider refuses an address because it is on its own suppression list or invalid | `api` (you) or `provider` | Soft bounces and blocks (the receiving server refused the message for reputation, content or volume reasons) do **not** suppress the address. When an address is already on the list, the first reason is kept, with one exception: a **Manual** entry is upgraded to **Bounced**, **Spam complaint** or **Unsubscribed** when that event happens later. A provider unsubscribe replaces a manual entry. ### Effect on the contact Unsubscribes, hard bounces and complaints also change the contact's **Email status** field: to **Unsubscribed**, **Bounced** or **Complained**. Contacts with one of those statuses, or **Not marketable**, are excluded from broadcasts and automation emails even if their address is not on the suppression list. Manual suppressions do not change the Email status. ### What suppression blocks | Email type | Suppressed address | | --- | --- | | Broadcasts | Excluded from the audience (counted as **suppressed** in **Estimated recipients**); if suppressed after scheduling, the message is skipped at send time | | Automation **Send email** steps | The message is skipped (status `skipped`, reason `suppressed`); the automation continues | | Single emails sent from a contact | Skipped | | Transactional emails (booking confirmations, signature invitations, reminders, email codes and signed copies) | Still sent to **Unsubscribed** addresses; skipped for **Bounced**, **Spam complaint** and **Manual** | | Test sends to workspace members | Not affected | ### How addresses leave the list Only by removing them on this page or through the API. Removing an address: - deletes the suppression entry, so future emails are no longer skipped because of it; - does **not** change the contact's **Email status**. If the contact is still **Unsubscribed**, **Bounced** or **Complained**, change that field on the contact as well (see [Contact detail](https://amabledata.com/docs/crm/contact-detail)), otherwise they stay excluded. Remove an address only when you have a clear reason: the person explicitly asked to subscribe again, or a bounce was a temporary mistake. Emailing people who unsubscribed or complained harms your sending reputation and can trigger an [automatic suspension](https://amabledata.com/docs/marketing/email-sending-settings#automatic-suspension). ## Step by step ### Find an address 1. Open **Marketing › Suppressions**. 2. Type part of an address in **Search address…** (top left). The list filters as you type (case-insensitive, matches anywhere in the address). 3. Click **Load more** at the bottom to load the next page (50 entries per page, newest first). ### Suppress an address manually 1. Click **Suppress address** (top right). Visible only with `suppressions:write`. 2. In the dialog, type the **Email** (required, must contain `@`). 3. Click **Save**. The toast **Saved** confirms it. The entry appears with reason **Manual** and source `api`. If the address is already on the list, nothing changes and the existing entry is kept. ### Remove addresses from the list 1. Select one or more rows (checkboxes). 2. Click **Delete** in the selection bar and confirm (**Delete \{name\}?** or **Delete \{count\} items?**). 3. If the contact's **Email status** is Unsubscribed, Bounced or Complained, update it on the contact too. ## Reference ### Columns | Column | Content | Notes | | --- | --- | --- | | **Email** | The normalised address | Sortable | | **Reason** | **Unsubscribed**, **Bounced**, **Spam complaint** or **Manual** | Manual has an outlined badge | | **Source** | `link`, `one_click`, `provider`, `webhook`, `api`, or `—` | Hidden on small screens | | **Created** | When it was added | Sortable, default newest first; hidden below large screens | Empty state: **No suppressed addresses.** ### Reasons | API value | Label | | --- | --- | | `unsubscribe` | **Unsubscribed** | | `bounce` | **Bounced** | | `complaint` | **Spam complaint** | | `manual` | **Manual** | ### REST API Paths relative to `/api/v2/t/`. | Method and path | Permission | Purpose | | --- | --- | --- | | `GET /suppressions` | `broadcasts:read` | List, newest first. Query: `limit` (1–200, default 50), `cursor`, `q` (address contains), `reason` | | `POST /suppressions` | `suppressions:write` | Add `{ "email": "…", "reason": "manual" }`; `reason` may be `manual` (default) or `unsubscribe` | | `DELETE /suppressions/{email}` | `suppressions:write` | Remove an address | Adding and removing are recorded in the [audit log](https://amabledata.com/docs/settings/audit-log) (`email.suppression_added`, `email.suppression_removed`). Example: ```bash curl -X POST "https:///api/v2/t//suppressions" \ -H "Authorization: Bearer " \ -H "content-type: application/json" \ -d '{"email":"someone@example.com","reason":"unsubscribe"}' ``` ## Limits and permissions | Action | Permission | Roles | | --- | --- | --- | | View and search the list | `broadcasts:read` | Owner, Admin, Marketer, Sales, Analyst, Viewer | | Add and remove addresses | `suppressions:write` | Owner, Admin, Marketer | Addresses are limited to 254 characters. There is no limit on the number of entries. ## Troubleshooting | Symptom | Cause | Fix | | --- | --- | --- | | A contact still gets no email after you removed their address | Their **Email status** is still Unsubscribed, Bounced, Complained or Not marketable | Change the Email status on the contact. | | A contact is excluded but their address is not on the list | Their Email status excludes them, or they have no email address | Check the contact's Email status and emails. | | **Could not delete. Nothing was changed.** when removing | The address is not on the list any more (removed by someone else) or the request failed | Refresh the page and try again. | | An address keeps coming back as **Manual** with source `provider` | The sending provider refuses it (its own suppression list or invalid address) | Check the address; the provider may never accept it. | | Booking confirmations still reach an unsubscribed address | Transactional emails ignore marketing unsubscribes | Expected; they stop only for bounced, complained or manually suppressed addresses. | ## Related - [Email links and unsubscribe](https://amabledata.com/docs/public/email-links) - [Sending settings and domains](https://amabledata.com/docs/marketing/email-sending-settings#bounces-complaints-and-unsubscribes) - [Broadcasts](https://amabledata.com/docs/marketing/broadcasts) - [Contact detail](https://amabledata.com/docs/crm/contact-detail) - [Audit log](https://amabledata.com/docs/settings/audit-log) --- # Sending settings and domains Section: Email marketing URL: https://amabledata.com/docs/marketing/email-sending-settings Summary: Sender identity, physical address, workspace timezone and rate limit; sending domain verification (SPF, DKIM, DMARC), tracking links, warm-up, bounce and complaint handling, message statuses and automatic suspension. ## Overview The **Email sending** page holds everything that controls how marketing email leaves amabledata: who it comes from, the postal address printed in every footer, the default timezone, the sending rate, the state of your sending domains, the warm-up progress and the sending health. Where to find it: - Sidebar: **Settings › Email sending** - URL: `/t//settings/email` Anyone with `broadcasts:read` can open the page; only roles with `settings:manage` (Owner, Admin) can change it. Sending domains themselves are connected in **Settings › Domains** (see [Connect a sending domain](#connect-a-sending-domain)). Until a sending domain is verified, broadcasts and automation emails are blocked and every email screen shows the banner **Email sending is blocked** (*Connect and verify a sending domain before broadcasts and automation emails can go out.*) with the link **Set up a sending domain**. Test emails to workspace members still work. ## How it works ### What must be in place before real email goes out A real (non-test) email is sent only when all of these hold: 1. Sending is not [suspended](#automatic-suspension). 2. At least one **sending domain** is **Verified**. 3. A workspace **Sender address** is set. 4. The sender address is on a verified sending domain: its domain equals the verified hostname or is a subdomain of it (for example `news@mail.example.com` with `mail.example.com` verified, or `hello@eu.mail.example.com`). 5. For broadcasts only: a **Physical address** is set. 6. The email content compiles, and the sending credit check of your plan allows it. The first failing condition is shown as the blocking reason, both on this page (**Sending is blocked: \{reason\}**) and in the broadcast wizard. ### Sending domain states The badge next to **Sending domains** summarises the workspace: | Badge | Meaning | | --- | --- | | **Verified** | At least one sending domain is verified. | | **Not verified** | No verified sending domain: real sending is blocked. | | **Development override** | Local development only: no verified domain, but sending is allowed for testing. Never available in production. | Each connected domain is listed with its hostname, its kind (`sending`, `tracking` or `app`) and its own status (`pending`, `verified`, `failed`). ### Tracking links Click tracking, the open pixel and the unsubscribe page live on your **tracking origin**, shown as **Tracking links** on this page. It is `https://` once a tracking domain is verified, otherwise the default edge address of your installation. Connecting a tracking domain on your own hostname (for example `links.example.com`) makes links look consistent with your brand. See [Tracking domains](https://amabledata.com/docs/tracking-domains/overview). ### Sender identity and defaults - **Sender name** and **Sender address** build the `From` header: `"Sender name"
`. Quotes, line breaks and angle brackets are removed from the name. A broadcast or automation step can override the name. - **Reply-to** is used when the broadcast, template or step does not set its own. - **Physical address** is printed in the footer of every marketing email and is required to send broadcasts. Changing it recompiles your templates. - **Workspace timezone** is the fallback zone for contacts without their own: it is used by **At a local time in each contact’s timezone** broadcasts, by the Liquid `date` filter, and as the default zone of the **At a date and time** scheduler. Invalid zones fall back to UTC. Automations have their own fallback zone (UTC unless changed under **Workspace time zone** in any automation's **Automation settings**, or overridden per automation in its settings). See [Automations](https://amabledata.com/docs/marketing/automations#time-zones). ### Rate limit **Max emails per minute** (default 600, range 1–10,000) caps how many emails the workspace hands to the provider in any calendar minute, across broadcasts, automations and single sends. Emails over the limit are not lost: they wait for the next minute. ### Warm-up New senders must build reputation gradually, so amabledata caps the number of emails per day while the workspace warms up. The warm-up starts with the first real email sent (day 1) and counts calendar days in UTC. | Day | Daily cap | Day | Daily cap | | --- | --- | --- | --- | | 1 | 50 | 7 | 3,000 | | 2 | 100 | 8 | 5,000 | | 3 | 200 | 9 | 10,000 | | 4 | 400 | 10 | 20,000 | | 5 | 800 | 11 | 40,000 | | 6 | 1,500 | 12 | 80,000 | From day 13 there is no warm-up cap. Emails over today's cap wait until the next UTC day. Transactional emails (booking confirmations and the emails of [electronic signatures](https://amabledata.com/docs/signatures/overview)) count towards the caps but are never held by the warm-up. The **Warm-up** card shows: - **Starts with the first email** before anything was sent; - **Day \{day\} · \{sent\} sent today of \{cap\}** during the warm-up; - **Warm-up completed · \{sent\} sent today** afterwards. The broadcast checklist warns when an audience is larger than what is left today. ### Bounces, complaints and unsubscribes The sending provider reports what happens to every message through signed delivery webhooks. amabledata verifies the signature, ignores replays and duplicate events, and applies each event once: | Provider event | Effect on the message | Effect on the address and contact | | --- | --- | --- | | Delivered | Status **delivered**, delivery time recorded | — | | Deferred (temporary delay) | Status **deferred** with the reason | — | | Hard bounce (address does not exist) | Status **bounced** | Added to the [suppression list](https://amabledata.com/docs/marketing/suppressions) with reason **Bounced**; contact **Email status** set to Bounced | | Soft bounce / blocked (reputation, content, volume) | Status **dropped** with the reason | Address kept, nothing suppressed | | Dropped | Status **dropped** | If the provider dropped it because the address is on its own suppression list or invalid, the address is suppressed with reason **Manual** and source `provider` | | Spam complaint | Status **complained** | Suppressed with reason **Spam complaint**; Email status set to Complained | | Unsubscribe (provider one-click) | Unsubscribe time recorded | Suppressed with reason **Unsubscribed**; Email status set to Unsubscribed | Recipients who click the unsubscribe link or use their mailbox's one-click button are handled the same way (see [Email links and unsubscribe](https://amabledata.com/docs/public/email-links)). Every marketing email carries `List-Unsubscribe` and `List-Unsubscribe-Post: List-Unsubscribe=One-Click` headers; transactional emails do not. ### Automatic suspension After every batch of delivery events amabledata computes the health of the last **7 days** (test sends excluded). Once at least **100** emails were sent in that window: - a **bounce rate above 5%**, or - a **complaint rate above 0.3%** suspends sending for the workspace. Suspension: - shows the red alert **Sending suspended (\{reason\})** on this page, where the reason is `bounce_rate` or `complaint_rate`; - moves every Scheduled or Sending broadcast to **Paused**; - blocks every real email (and test sends) until lifted; - also suspends the workspace at the sending provider. The health line of the **Warm-up** card always shows **Last \{days\} days: \{sent\} sent · bounces \{bounce\} · complaints \{complaint\}**. ### Message statuses Every email (one per recipient) has a status, visible in the contact's email history and through the API: | Status | Meaning | | --- | --- | | `queued` | Waiting in the sending queue | | `sent` | Accepted by the provider | | `delivered` | Accepted by the recipient's server | | `deferred` | Temporarily delayed by the receiving server | | `bounced` | Hard bounce | | `dropped` | Refused (soft bounce, block) or dropped by the provider | | `complained` | Marked as spam by the recipient | | `skipped` | Not sent: suppressed, no email, not marketable, cancelled broadcast, expired, credit denied, contact deleted | | `blocked` | Not sent because sending was not allowed (domain, sender, suspension) | | `failed` | Content error, or provider errors after all retries | ### Retries Temporary provider errors (rate limiting, server errors, network problems) are retried up to **5 attempts** with growing delays (30 seconds, doubling, at most 1 hour between attempts). Waiting for the warm-up cap, the rate limit, a paused broadcast or a credit pause does not use attempts. Permanent errors (invalid recipient, unverified domain, rejected content) fail at once. Automation emails that cannot leave within 24 hours of being queued are skipped as `expired`. Each message is sent with an idempotency key, so a retry never delivers it twice. ## Step by step ### Configure the sender 1. Open **Settings › Email sending**. 2. In the **Sender** card fill in: - **Sender name** (up to 100 characters). - **Sender address**: a valid email on your sending domain. It is stored in lower case. - **Reply-to** (optional). - **Physical address (printed in every footer)**: your postal address, up to 500 characters. Required for broadcasts. - **Workspace timezone (fallback for contacts without one)**: start typing to pick an IANA zone such as `Europe/Rome`. - **Max emails per minute**: 1–10,000. 3. Click **Save** (top right). The toast **Saved** confirms it. Clearing a field removes the setting. ### Connect a sending domain Sending domains are managed in **Settings › Domains** (permission `domains:manage`); the full page is described in [Domains](https://amabledata.com/docs/settings/domains). In short: 1. Open **Settings › Domains** (or click **Set up a sending domain** in the banner). 2. Under **Connect a domain**, choose **Sending domain** (*Required before any marketing email can be sent (SPF, DKIM, DMARC).*). 3. Type the **Hostname**, for example `mail.example.com`, and click **Add**. Your account may ask you to confirm with your second factor. 4. The domain card lists the DNS records to create in a **Type** / **Name** / **Value** table, each with a copy button. The records come from the sending provider (PostShiba): a DKIM CNAME (or a DKIM TXT key when the key was imported at the provider), a return-path CNAME and a DMARC TXT policy. **Create on Cloudflare** writes the DMARC record only when the zone has none, so an existing policy is never doubled; in manual mode skip it if you already have one. The first sending domain also creates the workspace's own sender at the provider (its own tenant, SMTP credential and signed delivery webhook). *Create these records on the zone, then verify. Sending stays blocked until the domain is verified.* 5. Create the records: - If a Cloudflare API token is configured (*DNS changes are applied on your Cloudflare zone automatically.*), click **Create on Cloudflare**. The button becomes **Apply again** afterwards. - Otherwise (*No Cloudflare API token is configured: create the records below on your DNS provider.*) add them yourself at your DNS provider. 6. Click **Verify**. The progress line shows **Added**, **DNS on Cloudflare** (or **DNS records created**) and **Verified**. DNS changes can take a while to propagate: if the check fails, wait and verify again. 7. Back in **Settings › Email sending**, make sure the **Sender address** uses this domain. The badge turns **Verified** and the page shows **Sending is enabled**. ### Lift a suspension 1. Find out why bounces or complaints rose: an old or purchased list, a missing double opt-in, misleading content. 2. Clean the audience (remove or suppress bad addresses). 3. In **Settings › Email sending**, click **Resume sending** in the red alert. Paused broadcasts stay paused: resume each one from its report. ## Reference ### Settings fields | Field | Type | Default | Limits | | --- | --- | --- | --- | | **Sender name** | text | empty | 100 characters | | **Sender address** | email | empty | valid email, 254 characters, must be on a verified sending domain | | **Reply-to** | email | empty | valid email | | **Physical address (printed in every footer)** | multi-line text | empty | 500 characters; required for broadcasts | | **Workspace timezone (fallback for contacts without one)** | IANA zone | `UTC` | must be a known zone (*unknown timezone …*) | | **Max emails per minute** | number | 600 | 1–10,000 | ### Sending rules at a glance | Rule | Value | | --- | --- | | Rate limit | per minute, workspace setting (default 600) | | Warm-up | 50 → 80,000 per UTC day over 12 days, then none | | Suspension window | last 7 days, from 100 sent | | Suspension thresholds | bounce rate > 5%, complaint rate > 0.3% | | Send retries | up to 5 attempts, 30 s doubling to max 1 h | | Automation email expiry | 24 hours after queuing | ### Blocking reasons | Shown as | Code | | --- | --- | | *the sending domain is not verified yet* | `domain_not_verified` | | *the sender address is not on a verified domain* | `from_domain_not_verified` | | *set a sender address in Email sending* | `missing_from_email` | | *sending is suspended (bounce or complaint rate too high)* | `sending_suspended` | | *add the physical address in Email sending* | `missing_physical_address` | | *not enough email credit* | `quota_denied` | | *email credit exhausted, sending paused* | `quota_paused` | ### REST API | Method and path | Permission | Purpose | | --- | --- | --- | | `GET /api/v2/t//email/settings` | `broadcasts:read` | Sender, domain state, tracking origin, warm-up, suspension, health | | `PATCH /api/v2/t//email/settings` | `settings:manage` | Update `from_name`, `from_email`, `reply_to`, `physical_address`, `timezone`, `rate_per_minute` | | `POST /api/v2/t//email/settings/resume` | `settings:manage` | Lift an automatic suspension | Saving the settings and lifting a suspension are recorded in the [audit log](https://amabledata.com/docs/settings/audit-log). ### Self-hosted installations The signing secret of tracking, open and unsubscribe tokens is the `EMAIL_TOKEN_SECRET` environment variable; previous secrets can be listed comma-separated in `EMAIL_TOKEN_SECRET_PREVIOUS` so links in already-sent emails keep working after a rotation. The sending provider account is configured at install time; each workspace then gets its own SMTP credential and delivery webhook secret, stored encrypted by the installation. See [Configuration](https://amabledata.com/docs/self-hosting/configuration). ## Limits and permissions | Action | Permission | Roles | | --- | --- | --- | | View **Email sending** | `broadcasts:read` | Owner, Admin, Marketer, Sales, Analyst, Viewer | | Edit settings, **Resume sending** | `settings:manage` | Owner, Admin | | Connect, apply DNS, verify and remove domains | `domains:manage` | Owner, Admin | ## Troubleshooting | Symptom | Cause | Fix | | --- | --- | --- | | **Sending is blocked: the sending domain is not verified yet** | No verified sending domain | Connect and verify one. | | **Sending is blocked: the sender address is not on a verified domain** | Sender address on another domain | Use an address on the verified hostname or one of its subdomains. | | Verification keeps failing with last error `records_not_found_yet` | DNS not propagated or records missing | Check the records at your DNS provider; wait and **Verify** again. | | Status stays **Not verified** although the records exist | The provider has not confirmed them yet (it keeps rechecking), or a value is wrong (often a DKIM value cut or quoted twice) | Copy the values again with the copy buttons, wait and **Verify** again. | | Last error `records_invalid` | The provider suspended the sending domain | Contact the installation administrator. | | `zone_not_found` when clicking **Create on Cloudflare** | No zone of the connected Cloudflare account covers the hostname | Add the zone to that account, or create the records manually. | | `automation_unavailable` | No Cloudflare API token configured | Create the records manually, or add a token (see [Cloudflare API token](https://amabledata.com/docs/cloudflare/api-token)). | | `hostname_taken` | The hostname is already connected | Use another hostname or remove the existing connection. | | `invalid_hostname` | Not a valid hostname | Enter only the host, e.g. `mail.example.com`. | | Red alert **Sending suspended (bounce_rate)** | More than 5% hard bounces in 7 days | Clean the list, then **Resume sending**. | | Red alert **Sending suspended (complaint_rate)** | More than 0.3% spam complaints in 7 days | Review consent and content, then **Resume sending**. | | Emails trickle out slowly | Warm-up cap or rate limit | Expected during warm-up; raise **Max emails per minute** if needed. | | **unknown timezone …** when saving | The zone name is not an IANA zone | Pick a value from the list. | ## Related - [Domains](https://amabledata.com/docs/settings/domains) - [Tracking domains](https://amabledata.com/docs/tracking-domains/overview) - [Broadcasts](https://amabledata.com/docs/marketing/broadcasts) - [Suppressions](https://amabledata.com/docs/marketing/suppressions) - [Email links and unsubscribe](https://amabledata.com/docs/public/email-links) - [Billing and wallet](https://amabledata.com/docs/settings/billing-and-wallet) --- # Forms overview Section: Forms URL: https://amabledata.com/docs/forms/overview Summary: Collect leads and data with forms: the forms list, statuses, and what happens to every submission. ## Overview Forms let you collect leads and any other data from your visitors. A form you build in amabledata can be: - **embedded** on any website with a short HTML snippet, - **shared** as a hosted page with its own link, - **dropped** on an amabledata landing page with the **Form** widget. Every submission is validated on the server, stored encrypted, turned into (or merged with) a CRM contact, tagged, sent to your automations and finally delivered to your other tools through **connections** (signed webhooks, Google Sheets, email notifications, e-signature, installed apps). You find forms in the sidebar under **Marketing › Forms**. The URL of the list is `/t//forms`. Opening a form shows three tabs in the page header: | Tab | URL | What you do there | | --- | --- | --- | | **Builder** | `/t//forms/` | Fields, CRM mapping, settings, style, embed code. See [Form builder](https://amabledata.com/docs/forms/form-builder). | | **Submissions** | `/t//forms//submissions` | Read, reprocess and erase what people sent. See [Submissions](https://amabledata.com/docs/forms/submissions). Only visible with the `forms:submissions_read` permission. | | **Connections** | `/t//forms//connections` | Deliver submissions to other tools. See [Connections](https://amabledata.com/docs/forms/connections). | The header also shows the form name and a status badge: **Active** (green), **Inactive** (amber) or **Archived** (grey). ## How it works ### Lifecycle of a form A form has a **status** and can be **archived** on top of it: | State | Accepts submissions | Hosted page and embeds | How you get there | | --- | --- | --- | --- | | **Active** | Yes | Load and work | New forms start active. Turn the **Active/Inactive** switch on in the builder toolbar and save. | | **Inactive** | No | Show "This form is not available." | Turn the switch off and save. Duplicates always start inactive. | | **Archived** | No | Show "This form is not available." | **Archive** in the row menu of the list. **Restore** brings it back with its previous status. | | Deleted | No | Not found | Select rows in the list and delete them. Connections are deleted too; submissions are kept. | Only an active, non-archived form exists for the public: an inactive or archived form answers "not found" to the widget, the hosted page and the submit endpoint. ### Lifecycle of a submission 1. The visitor fills in the form. The widget validates the fields in the browser. 2. The submission reaches the server, which checks the anti-spam measures (honeypot, rate limit, optional Turnstile), the allowed websites and every field again. 3. The values are **encrypted** and stored with status **Pending**. The visitor immediately sees the thank-you message or is redirected. 4. In the background the submission is **processed**: the contact is created or updated, tags, lead source and owner are applied, and the `form.submitted` event is emitted (it starts automations with the **Form submitted** goal and is available to outgoing webhooks). 5. The submission becomes **Processed** (or **Failed** if the CRM part could not be applied) and every enabled connection receives it. Failed deliveries are retried automatically. The details are in [Submissions](https://amabledata.com/docs/forms/submissions) and [Connections](https://amabledata.com/docs/forms/connections). ### A new form When you create a form you only type its name. amabledata creates a starter form with four fields, already mapped to the contact: | Field | Type | Key | Required | Width | Saved to contact | | --- | --- | --- | --- | --- | --- | | First name | Short text | `first_name` | Yes | Half | First name | | Last name | Short text | `last_name` | No | Half | Last name | | Email | Email | `email` | Yes | Full | Email | | I have read and accept the privacy policy | Consent | `privacy` | Yes | Full | — | The field labels are in Italian when your own interface language is Italian. ## Step by step ### Create a form 1. Open **Marketing › Forms** and click **New form**. 2. Type a **Name** (up to 200 characters). The hint reminds you that it is "Only visible to your team." 3. Click **Create form**. The builder opens on the new form. 4. Adjust fields, CRM mapping and settings, then click **Save** in the toolbar. 5. Open the **Embed** tab to copy the embed code or the hosted page link. ### Find and open a form 1. Use the **Status** filter in the toolbar: **All**, **Active**, **Inactive** or **Archived**. **All** shows every form that is not archived; archived forms appear only with the **Archived** filter. 2. Click a column header (**Name**, **Submissions**, **Last submission**, **Updated**) to sort. The default order is **Updated**, newest first. 3. Click a row to open the builder, or use the row menu to jump straight to **Submissions** or **Connections**. ### Duplicate a form 1. Open the row menu and choose **Duplicate**. 2. A copy named ` (copy)` appears, with the same definition (fields, settings, style, CRM mapping). The toast says "Form duplicated (inactive copy)". 3. Connections are **not** copied (and neither are their secrets). The copy is **Inactive**: activate it in the builder when it is ready. ### Archive or restore a form 1. Open the row menu and choose **Archive**. The form stops accepting submissions immediately ("Form archived"). 2. To bring it back, set the **Status** filter to **Archived**, open the row menu and choose **Restore** ("Form restored"). ### Delete forms 1. Select one or more rows with the checkboxes (only users who can edit forms see them). 2. Use the delete action and confirm. 3. The forms and their connections are deleted. Their submissions stay stored and remain visible on the contacts they belong to. ## Reference ### Forms list columns | Column | Content | Sortable | Hidden on | | --- | --- | --- | --- | | **Name** | Internal name of the form. | Yes | — | | **Status** | **Active**, **Inactive** or **Archived**. | No | — | | **Submissions** | Total submissions received (kept even after a submission is erased). | Yes | — | | **Last submission** | Date and time of the last submission. | Yes | Small screens | | **Fields** | Number of fields that collect a value (headings, HTML blocks and step breaks are not counted) followed by `· N connections`. | No | Medium screens | | **Updated** | Last time the form was saved. | Yes | Medium screens | The list loads up to 200 forms. ### Row menu | Item | Who sees it | Effect | | --- | --- | --- | | **Edit** | Everyone with access | Opens the builder. | | **Submissions** | `forms:submissions_read` | Opens the submissions tab. | | **Connections** | Everyone with access | Opens the connections tab. | | **Duplicate** | `forms:write` | Inactive copy without connections. | | **Archive** / **Restore** | `forms:write` | Stops / resumes accepting submissions. | ### Empty state With no forms the list shows: "No forms yet. Create one to collect leads on your site and landing pages." ## Limits and permissions | Permission | Lets you | Roles that have it | | --- | --- | --- | | `forms:read` | See the Forms module, the builder (read-only) and the connections list. | Owner, Admin, Marketer, Analyst, Viewer | | `forms:write` | Create, edit, duplicate, archive, restore and delete forms; reprocess and erase submissions. | Owner, Admin, Marketer | | `forms:submissions_read` | Read decrypted submission values (personal data). | Owner, Admin, Marketer, Analyst, Viewer | | `forms:connections_manage` | Create, edit, test, enable/disable and delete connections; rotate webhook secrets. | Owner, Admin, Marketer | The Sales role has no access to forms. See [Roles and permissions](https://amabledata.com/docs/concepts/roles-and-permissions). | Limit | Value | | --- | --- | | Form name | 1–200 characters | | Fields per form | 150 | | Submissions from one IP address | 30 every 10 minutes per workspace | | Size of one submission | 64 KB | ## Troubleshooting | Symptom | Cause | Fix | | --- | --- | --- | | The **New form** button is missing. | Your role lacks `forms:write`. | Ask an owner or admin to change your role. | | The **Submissions** tab is missing. | Your role lacks `forms:submissions_read`. | Ask for a role that can read submissions. | | Visitors see "This form is not available." | The form is inactive, archived or deleted. | Activate it in the builder and save, or restore it. | | An error box says "You do not have permission for this action." | You tried an action your role does not allow. | Ask an owner or admin. | | "This form no longer exists." | Someone deleted the form while you had it open. | Go back to the list. | ## Related - [Form builder](https://amabledata.com/docs/forms/form-builder) - [Field types](https://amabledata.com/docs/forms/field-types) - [Submissions](https://amabledata.com/docs/forms/submissions) - [Connections](https://amabledata.com/docs/forms/connections) - [Embedding and hosting](https://amabledata.com/docs/forms/embedding-and-hosting) - [Hosted forms (visitor side)](https://amabledata.com/docs/public/hosted-forms) - [Automations](https://amabledata.com/docs/marketing/automations) - [Contacts](https://amabledata.com/docs/crm/contacts) --- # Form builder Section: Forms URL: https://amabledata.com/docs/forms/form-builder Summary: Build a form step by step: fields, conditional logic, CRM mapping, settings, style and live preview. ## Overview The form builder is where you design a form and decide what happens with its answers. Open it from **Marketing › Forms** by clicking a form (URL `/t//forms/`); it is the **Builder** tab of the form. The page has: - a **toolbar** with the form **Name**, the **Active/Inactive** switch and the **Save** button; - five tabs: **Fields**, **CRM**, **Settings**, **Style** and **Embed**; - a **Live preview** panel on the right (below the tabs on narrow screens) that renders the real form widget with your unsaved changes. Users without `forms:write` can open the builder, but every input is read-only and the **Save** button is hidden. ## How it works ### The form definition Everything you edit in the builder is one document made of four parts, saved together when you click **Save**: | Part | Edited in | Contains | | --- | --- | --- | | Fields | **Fields** tab | The ordered list of fields, each with its type, key, label, validation, prefill, visibility rules and contact mapping. | | CRM | **CRM** tab | Whether submissions create contacts, the update policy, lead source, owner, tags and app validation. | | Settings | **Settings** tab | Button texts, what happens after submit, language, allowed websites, Turnstile, hosted page. | | Style | **Style** tab | Colors, sizes, fonts and custom CSS of the widget. | The document is validated in the browser while you type and again on the server when you save. ### Saving - Changes are **not** saved automatically. The **Save** button turns active as soon as something changes, and shows **Saved** when there is nothing to save. - **Save** stays disabled while the definition is invalid or the name is empty. The first problem is shown in a red box above the tabs, as `path: message` (for example `fields.3.key: duplicate field key`). - If you try to leave the page with unsaved changes, the browser asks you to confirm. - Embeds and the hosted page always use the **last saved** version. The live preview uses the unsaved one. ### Steps (multi-page forms) A **Step break** field splits the form into steps. The fields before the first break form step 1, and so on. The label of a break is the **title of the step that follows it**. The visitor sees "Step N of M", a **Next** button on every step but the last, a **Back** button from step 2 onwards, and the submit button on the last step. Each step is validated before moving on. Steps that end up with no fields are skipped. ### Conditional fields Every field except a step break can have **Show only if** rules. All rules must be true (AND); with no rules the field is always shown. A rule compares the value of another field with an operator: | Operator | Label | True when | | --- | --- | --- | | `equals` | **is** | The value (as text) equals the rule value exactly. | | `not_equals` | **is not** | The value differs from the rule value. | | `contains` | **contains** | Text: contains the rule value, case-insensitive. Multiple choice: one of the chosen options equals the rule value. | | `any_of` | **is any of** | The value is one of the comma-separated rule values (for multiple choice: at least one chosen option is). | | `filled` | **is filled** | The field has a value (a checked box counts, an unchecked one does not). The value input is disabled. | | `empty` | **is empty** | The field has no value. The value input is disabled. | Compare option fields with the option **value**, not its label. Checkboxes and consents have the value `true` when checked. A field that depends on a hidden field is hidden too. Values of hidden fields are dropped and never validated, so a required field is only required when it is visible. You can add up to 10 rules per field. ## Step by step ### Add and arrange fields 1. In the **Fields** tab, click **Add field** under the field list and pick a type (the full list is in [Field types](https://amabledata.com/docs/forms/field-types)). 2. The new field is added at the end and selected. Its label is the type name; its key is derived from the label and made unique (`short_text`, `short_text_2`…). 3. Use the arrow buttons (**Move up**, **Move down**) on a row to reorder, and the bin (**Remove field**) to delete it. 4. Each row shows the label (or the key), a red `*` when required, the type, the key, a `→ target` badge when the field is saved to the contact and a **Conditional** badge when it has visibility rules. ### Edit a field 1. Click a row in the field list. The right card (titled with the field type) shows its properties. With nothing selected it says "Select a field to edit it." 2. Fill **Label** and, for value fields, **Key**. The key is "Name of the value in submissions, webhooks and merge tags": lowercase letters, digits and underscores only (other characters are converted to `_` as you type), it must start with a letter and be unique in the form. 3. Set the type-specific options, prefill, default value and **Save to contact** as described in [Field types](https://amabledata.com/docs/forms/field-types). 4. Toggle **Required**, **Half width** and **Sensitive (left out of notifications and automations)** as needed. 5. Add **Show only if** rules with **Add condition**: choose the source field, the operator and the value. Remove a rule with its **Remove condition** button. 6. Click **Save** in the toolbar. ### Map answers to the contact 1. Select a value field and open **Save to contact**. 2. Choose a contact attribute (**Email**, **First name**, **Last name**, **Phone**, **Company**, **Job title**, **Website**, address parts) or `Custom field: