# Getting started > Sign in, set up your store once, build your first funnel and take a test order before real traffic. Advent Funnel is where you build and run funnels for a single product: the pages your ads send people to, a checkout with Stripe and PayPal, an order bump, one-click upsells and a thank-you page, with the numbers for each step. You can do all of it by hand in the builder, or connect an AI agent such as Claude or Codex and let it do the building while you decide what goes live. This page walks through the first hour. Each step links to a page with more detail. ## Sign in Advent Funnel is in early access, so accounts are opened for you. Once yours is ready you get an email to set your password. After that, sign in at [https://app.adventfunnel.com/ops/sign_in](https://app.adventfunnel.com/ops/sign_in). Everything you do happens in **Ops**, the app's workspace: the top bar has your funnels, orders and settings, and your account menu (your initial, top right) has your profile, your team and **Help and docs**. > Working with a team? An owner or admin invites people from **Settings → Team**, and picks what each person can reach. ## Set up your store once Some things are the same for every funnel, so you set them up once. **Home** lists what's left as a store setup checklist, each item with a link to fix it. The main ones: - **Brand defaults and business** (Settings → Brand defaults, Business): your brand name, logo, support email and the company behind it. Every funnel uses these unless it sets its own. - **Payments** (Settings → Payments): connect a Stripe account and, if you want, a PayPal one. See [Payments](https://docs.adventfunnel.com/payments). - **Shipping** (Settings → Shipping): the rates buyers pay, per market. - **Legal pages** (Settings → Legal pages): your privacy policy, terms and refund policy, which your pages link to. ## Make your first funnel 1. Add your product under **Products**: its name, pictures and the facts your pages will use. 2. Add its **offers**, the bundles people can buy, such as 1, 2 or 4 bottles. See [Offers and checkout](https://docs.adventfunnel.com/offers-and-checkout). 3. Open **Funnels → New funnel**. Start from a ready-made template with every step designed, or from a blank funnel. 4. Edit the pages in the builder, or ask your agent to. See [Funnels and pages](https://docs.adventfunnel.com/funnels-and-pages) and [Connect your agent](https://docs.adventfunnel.com/connect-an-agent). ## Check and publish Publishing runs the page's checks first: placeholder text or sample pictures, offers that can't be bought, and words that could make a health or money claim. A flagged claim waits for a person to read it and acknowledge it, or for the copy to change. See [Publishing pages](https://docs.adventfunnel.com/publishing-pages). ## Take a test order New funnels take **test payments**: real cards are declined, and Stripe's test cards go through. A funnel's **Launch** page has its launch checklist and a **test run**, a list of steps to go through the funnel like a buyer. Tick each one as you go, or hand the agent's steps to an agent. When the checklist has nothing left to do, switch the funnel to live payments on its settings. See [Payments](https://docs.adventfunnel.com/payments#test-and-live-payments). Source: https://docs.adventfunnel.com/getting-started --- # Key ideas > Funnels, variants, advertorials, offers, bumps and upsells, and how they fit together. A few words come up all over Advent Funnel. Here's what each means. ## Funnel A **funnel** is one product test: the path from your ad to a paid order. It has one product, a link for your ads, its pages, its checkout and what's offered after payment. Its pixels, ad spend and numbers cover the whole path. A funnel's steps, in the order a buyer meets them: | Step | What it is | | --- | --- | | Ad link | The address your ads use. It sends each visitor to one of the sales page's variants. | | Advertorial | An optional article before the sales page (a presell). | | Sales page | The product page with the offers. A funnel can test several versions of it. | | Checkout | Where the buyer pays, with an optional order bump. | | Upsell | A one-click offer after payment. | | Downsell | Another offer for buyers who say no to the upsell. | | Thank you | The order confirmation, with an optional page of your own under it. | ## Variants A funnel's sales page can have several **variants**: versions that differ in design, copy or the offers they show. Each live variant has a **traffic weight**, and the ad link shares visitors between them in proportion. A visitor who comes back sees the same variant. Give a variant a weight of 0 to keep it live without sending it traffic, for example to test its checkout. ## Drafts and published pages Everything you or an agent edit is a **draft**. Visitors only ever see what was **published**. Publishing saves a version, and you can restore any earlier version into the draft. See [Publishing pages](https://docs.adventfunnel.com/publishing-pages). ## Offers An **offer** is something a page sells: a bundle of the product (1 bottle, 3 bottles) at a price. Prices are set once in the funnel's currency and shown in each visitor's own currency. The page never types a price into copy: it always comes from the offer. See [Offers and checkout](https://docs.adventfunnel.com/offers-and-checkout). ## Order bump, upsell and downsell - An **order bump** is one extra offer at checkout that the buyer can tick. It's never ticked for them, and it's paid in the same payment. - An **upsell** is shown after payment. One click charges the card or PayPal just used, without typing it again, as its own order that ships with the first. PayPal buyers get it where PayPal lets your account save their PayPal (vaulting). - A **downsell** is shown only to buyers who say no to the upsell. ## Test and live payments Each funnel takes either **test** or **live** payments. New funnels start in test mode, and test orders never count in the numbers or go to the ad platforms. See [Payments](https://docs.adventfunnel.com/payments). Source: https://docs.adventfunnel.com/key-ideas --- # Connect your agent > Add Advent Funnel to Claude Code, the Claude apps or Codex, so your agent can build in your account as you. Advent Funnel runs an **MCP server**, the open standard AI agents use to work with apps. Once you connect it, your agent can read your products and funnels, build page drafts, write copy, generate images and set up offers, all in your account and under your rules. The server's address is: ``` https://app.adventfunnel.com/mcp ``` Your agent works **as you**: it sees what you can see, and everything it changes is a draft you can open in the builder. It can't take a page live unless you ask it to, and some things stay with people only. See [What agents can do](https://docs.adventfunnel.com/what-agents-can-do). ## Claude Code Run this in your terminal: ``` claude mcp add --transport http advent-funnel https://app.adventfunnel.com/mcp ``` Then, in Claude Code, type `/mcp`, choose **advent-funnel** and **Authenticate**. Your browser opens Advent Funnel's sign-in, then a page that shows the app asking for access. Choose **Allow**, and you're connected. ## Claude desktop and claude.ai 1. Open **Settings → Connectors** and choose **Add custom connector**. 2. Paste the server's address, `https://app.adventfunnel.com/mcp`. 3. Choose **Connect**, then sign in to Advent Funnel and allow it. Nobody copies a password or a secret key into a chat: Claude signs in with your Advent Funnel account and gets its own access, which it renews by itself. ## Codex and other MCP clients A client that can't sign in by itself uses a **token** instead. 1. In Ops, open **AI / MCP → Connect** and expand **Tokens for other tools** (owners and admins see this page). 2. Name the token after what uses it, such as "Codex on my laptop", and choose **Make a token**. It's shown once: copy it now. 3. Put it in an environment variable, such as `ADVENT_FUNNEL_MCP_TOKEN`, and point your client at the server. For Codex, add this to `~/.codex/config.toml`: ```toml [mcp_servers.advent_funnel] url = "https://app.adventfunnel.com/mcp" bearer_token_env_var = "ADVENT_FUNNEL_MCP_TOKEN" ``` Anyone with the token can change drafts as you, so keep it out of chats and shared files. A token doesn't expire: revoke it when it's no longer used. ## Try it Ask for something you'd ask a colleague, for example: - "List my funnels and tell me which pages are still drafts." - "Build an advertorial for my product from its facts and reviews." - "Make a funnel from a template for my product, with 1, 2 and 4 bottle bundles." For bigger jobs, **AI / MCP → Prompts** in Ops has ready-made prompts to copy, such as building a funnel from a template, a product page from competitors' pages, or a check before a page goes live. Pick your product at the top and each prompt names it for the agent. The agent finds the tools by itself. When it's done, it gives you links to the drafts and their previews, and you publish from the builder, or ask it to publish. ## Disconnect an agent **AI / MCP → Connect** lists the connected apps with when each was last used. **Disconnect** stops one at once; it has to sign in again to come back. Tokens are listed under **Tokens for other tools**, each with **Revoke**. Source: https://docs.adventfunnel.com/connect-an-agent --- # What agents can do > The tools your agent gets over MCP, what each area is for, and what stays with people. Once connected, your agent sees a set of **tools**, each one thing it can do in your account. You never call them yourself: ask in plain words, and the agent picks the tools. Knowing what's there helps you ask for the right thing. ## Products and offers Read your products and add or change them when you ask: their facts, variants, pictures and the offers pages sell. `list_products`, `get_product`, `create_product`, `update_product`, `set_product_variants`, `update_variant`, `add_product_images`, `create_offer`, `update_offer` ## Funnels and templates Start a funnel from a ready-made template or a blank one, copy one that already works for another product, change its settings (bump, upsell, downsell, markets) and read its numbers. `list_funnels`, `list_funnel_templates`, `create_funnel`, `copy_funnel`, `save_funnel_template`, `update_funnel_settings`, `get_funnel_stats` ## Pages Create pages, add sections and elements, change any part of a draft, move or remove parts, set the page's theme and SEO, and bring in a page from HTML. `create_page`, `duplicate_page`, `get_page`, `list_types`, `describe_type`, `add_section`, `add_element`, `update_part`, `move_section`, `remove_part`, `update_page_draft`, `update_page_settings`, `list_themes`, `save_theme`, `import_html` ## Images Generate pictures for a page and place them, or add pictures from a link. `list_image_models`, `generate_image`, `generate_images`, `get_generated_image`, `get_image_batch`, `add_image` ## Checks and publishing Read what stands between a draft and publishing, and publish when you ask. `get_checks`, `publish_page` ## Selling settings Shipping rates, markets and currencies, and the discount codes a popup can offer. `list_shipping_rates`, `create_shipping_rate`, `update_shipping_rate`, `remove_shipping_rate`, `list_markets`, `create_market`, `update_market`, `list_currencies`, `update_currency`, `list_discount_codes` ## Email Write a funnel's follow-up emails (after an abandoned checkout or a purchase) and draft its email templates. Nothing customers get changes until a person publishes it in the email editor. `list_funnel_emails`, `save_funnel_email`, `list_email_templates`, `get_email_template`, `update_email_template`, `list_email_template_presets`, `use_email_template_preset` ## The docs Search these docs, to answer how-to questions or point you to a setting. `search_docs` ## What stays with people The rules live in the server, not in a prompt the agent could forget. Whatever it's asked, an agent can't: - **Publish** a page unless you ask it to, through your own connection. Publishing runs the same checks as the builder's Publish button. - **Acknowledge a flagged claim.** Only a person can, in the builder. - **Write reviews, ratings, stock levels or countdowns** into a page. Review sections show your product's real reviews. While building, an agent can fill them with preview reviews (`add_preview_reviews`) that show only in the builder and on preview links, never on a published page. - **Type prices into copy.** Prices and savings always come from offers. - **Change orders, refunds, customers' reviews or discount codes**, or archive or delete funnels, pages and products. - **Get past placeholders**: bracketed text, lorem ipsum and sample pictures block publishing until they're replaced. Custom HTML an agent adds is cleaned when it's shown: no scripts, forms or frames. Source: https://docs.adventfunnel.com/what-agents-can-do --- # How agents read the docs > llms.txt, a Markdown copy of every page, and the search_docs tool, so an agent finds answers without guessing. These docs are written for people, and every page is also available in forms agents read easily. ## llms.txt [https://docs.adventfunnel.com/llms.txt](https://docs.adventfunnel.com/llms.txt) lists every page with its description and the address of its Markdown copy, following the [llms.txt](https://llmstxt.org) convention. [llms-full.txt](https://docs.adventfunnel.com/llms-full.txt) has every page in one file, for an agent that wants to read it all at once. ## A Markdown copy of each page Add `.md` to any page's address to get it as plain Markdown, for example [https://docs.adventfunnel.com/payments.md](https://docs.adventfunnel.com/payments.md). Each page also links to its copy under its title (**View as Markdown**), and names it in its head as an alternate version, so tools that look for one find it. ## search_docs over MCP An agent connected to the MCP server (see [Connect your agent](https://docs.adventfunnel.com/connect-an-agent)) has a `search_docs` tool. With a few words it returns the parts of pages that match, each with an excerpt and a link. With a page's name it returns that page whole, as Markdown. That way, when you ask your agent "how do I take Apple Pay?", it can read the answer here rather than guess. > The docs describe how Advent Funnel works for everyone. They never hold your account's data: your agent reads your products, funnels and numbers with its other tools. Source: https://docs.adventfunnel.com/docs-for-agents --- # Funnels and pages > Create a funnel from a template or blank, find your way around it, and test variants of your sales page. A funnel is one product's path from your ad to a paid order. See [Key ideas](https://docs.adventfunnel.com/key-ideas) for its steps. This page covers making one and working on its pages. ## Create a funnel Open **Funnels** and choose **New funnel**. You pick: - **A template**: a complete funnel with every step already designed (advertorial, sales page, checkout, upsell, downsell, thank you), often in several colour schemes. Your offers and product aren't in it: they come from your product. - **Blank**: you choose how visitors arrive (straight to the product page, through an advertorial first, or on an advertorial-style sales page) and the layout the first page starts from. Checkout and the thank-you page start built in, and you add an upsell later on the funnel's steps. Then pick the product it sells. Every new funnel starts as a draft, taking test payments. You can also save a funnel you like as your own template (**Save as template…** in its ⋯ menu), or copy it for another product. ## Find your way around a funnel A funnel's sidebar has: - **Overview**: the last 7 days of visitors, orders, conversion and revenue, its newest orders and what to fix. - **Steps**: each step of the funnel with its pages and its offer: the sales page's variants and their weights, the advertorials, the order bump in Checkout, each upsell and downsell, and the thank-you page. - **Launch**: the launch checklist and the test run. - **Orders** and **Stats**: its orders, and its numbers step by step. - **Email**: its automatic emails. - **Funnel settings**: its name, payments and markets, brand, help bubble, ads and tracking, domain and agents. ## Edit a page Choose a page to open it in the **builder**. On the left are the page's layers (its sections and what's in them), in the middle the page itself, and on the right the settings of what you picked. You can: - click text on the page to change it in place; - add a section or an element with **+**, or right-click for more; - save a section you like and reuse it on other pages; - pick a theme or colour scheme for the whole page. Every change is saved to the draft. Visitors keep seeing the published page until you publish again. See [Publishing pages](https://docs.adventfunnel.com/publishing-pages). ## Test variants of the sales page The ad link sends each visitor to one of the sales page's live **variants**, shared by their traffic weights. To test a new idea, duplicate a variant in the **Sales page** step, or press **Add variant** to start one from a template's sales page, then change it, publish it and give it a weight. A returning visitor keeps seeing the variant they saw first, for 30 days. The **Stats** page shows how each variant does, so you can stop the ones that don't work. Stopping a variant sends its visitors to the funnel's link. ## Test variants of checkout, upsells and the thank-you page The steps after the sales page can be tested the same way. Once a step has a page, its **Add variant** opens the templates for that step, or you can duplicate the page. Publish the new page and set the weights in the step's panel: buyers are split between the step's live pages by weight, and each buyer keeps seeing the same page. The **Stats** page then compares them under the sales page's variants: how many orders each checkout page started and how many were paid, and how many buyers took each upsell or downsell page's offer. ## An advertorial before the sales page An advertorial is an article your ads can send people to first. Add one in the **Advertorial** step on **Steps**, from a template's advertorial or a plain article, publish it and switch advertorials on: the ad link then opens it, and its buttons go on to the sales page. ## The cart or straight to checkout By default a page's buy button goes straight to checkout with the chosen bundle. On the sales page's step you can choose **Buy button opens: Cart** instead: the bundle is added to a cart drawer and the visitor stays on the page until they choose to check out. Source: https://docs.adventfunnel.com/funnels-and-pages --- # Publishing pages > Drafts and versions, the checks a page passes before it goes live, flagged claims and preview links. Nothing you or an agent edit reaches visitors until it's published. This page explains what publishing does and what it checks. ## Drafts and versions Every page has a **draft**, which the builder and agents change, and a **published** version, which visitors see. **Publish** copies the draft into a new version and makes it live. A live page whose draft has changed shows **Publish changes**. Every published version is kept. You can open an earlier one and restore it into the draft, then publish it again. To check a draft before it's live, open its **preview link**. It shows the draft as visitors would see it, without publishing anything. ## What's checked before publishing Publishing runs the page's checks. A page with a **problem** isn't published: the builder lists each one and takes you to it. Problems include: - **Placeholders**: text in [square brackets], lorem ipsum, or sample pictures left from a template. - **A section that's missing something it needs**, or holds something it may not, each named with the section it's in. - **A product that's archived**: a funnel's pages can't publish while its product is off sale. Other things worth fixing, such as a market without a shipping rate, show on the funnel's launch checklist. ## Flagged claims Some words can make a health or money claim, such as "cures" or "guaranteed results". The checks **flag** them for a person to read in context. For each one, either rewrite it, or **Acknowledge** it if it's accurate and allowed. A page with a flagged claim nobody has acknowledged can't be published, by you or by an agent. Agents can never acknowledge a claim: that's always a person's call. > Health products: claims must be about supporting the body's normal structure or function ("supports restful sleep"), never about treating a disease. Pages for a health product show the FDA disclaimer in their footer automatically. ## Reviews on your pages Review sections show your product's real reviews, collected from buyers or imported. While a page is being built, it can show **preview reviews** to judge the layout. These appear only in the builder and on preview links, never on a published page. ## Publishing from the list You can also publish from a funnel's page lists: each row has **Publish** (or **Publish changes**), **Stop** for a live page, **Archive** and **Duplicate**. Publishing from a list asks first, then runs the same checks. ## Stopping and archiving **Stop** takes a live page off: visitors who open its address go to the funnel's link instead. A stopped or draft page can be **archived** to tidy the list; its versions, orders and numbers are kept, and you can unarchive it. Source: https://docs.adventfunnel.com/publishing-pages --- # Offers and checkout > Bundles and prices, the order bump, upsells and downsells, discount codes, markets and what checkout checks. What a page sells comes from **offers**, never from words typed into the page. That keeps every price, saving and bundle the same on the page, at checkout, in emails and on the order. ## Offers An offer is a bundle of your product at a price, such as "3 bottles" for $89. You make them on the product's **Offers** tab, and the page's offer picker shows them as cards. Each offer has: - a **name** and the **quantity** it holds; - a **price**, in the funnel's currency; - an optional **compare-at price**, the struck-through "was" price. It must be a real former or regular price, so it needs a note on where it comes from; - an optional **badge**, such as "Most popular"; - optionally a picture, a subtitle, a label, highlights of what's in it and free gifts. The card works out "Save N%" per unit against the single offer by itself, and only shows it when the bundle really is cheaper per unit. A product sold in **options**, such as sizes, names the option on each offer: the page then asks the buyer to choose the size, then the bundle. A product built from **variants**, such as colours, lets the buyer pick the variant of each item in the bundle. ## Order bump A funnel can suggest one extra offer at checkout, with a headline and a line of text. The buyer adds it with a click (it's never ticked for them), and it's paid in the same payment. Set it in the **Checkout** step on the funnel's **Steps** page. An offer marked **bump only** is sold only as an order bump and never shows on a page. ## Upsell and downsell After payment, the funnel can show an **upsell**: one click charges the card just used, as its own order that ships with the first. Buyers who say no can be shown a **downsell**, a second offer. Buyers who pay with PayPal get them too: PayPal asks them to save their PayPal for the store, and a yes charges it without logging in again. It's deleted once the offers are answered, or after 30 minutes. If PayPal hasn't enabled saving payment methods (vaulting) for your PayPal business account, PayPal buyers skip them and go to the thank-you page; ask PayPal to turn on vaulting for the REST app. Each is set up in its own step on the funnel's **Steps** page, with its page to design. Add more upsells with **Add upsell** after the last downsell: they're asked in turn, a yes going on to the next and a no to that upsell's downsell first. ## Discount codes Discount codes are in your account menu (your initial, top right), under **Discounts**. A code takes a percentage (up to 90%) or an amount off the subtotal, and can have a minimum, first and last days, a usage limit and an on/off switch. Buyers type it at checkout, or a page's popup applies it. A code can also give **each visitor their own** single-use code, such as `GLOW-7KQ2X9`, made when the popup shows it. A popup only ever offers a real code, and its words may not invent a deadline. ## Markets and currencies A **market** is a group of countries paying in one currency, set in **Settings → Markets**: the US, Canada, the UK, Australia, New Zealand, the EU and Worldwide to start with. A funnel sells to the markets ticked in its settings, one of them primary. Visitors see prices in their own market's currency, converted from the offer's price at the day's exchange rate with the rounding and markup set in **Settings → Currencies**. You can also set an offer's price in a currency by hand, and that price wins. Tax: in the US and Canada it's added at checkout. In the UK, the EU, Australia and New Zealand the prices shown include VAT or GST. Stripe Tax works out the tax only where you've added a registration in your Stripe account, so add each one before selling there. ## What checkout checks Checkout checks the shipping address before anyone pays, so junk never reaches fulfilment: - the postal code must belong to the state or province (a Texas address with a New York ZIP code is refused); - the street lines need a street number in the US, Canada and Australia, unless they're a PO Box or similar. A missing number is a warning the buyer can send past; - obvious junk such as "asdf" or "test" is refused. The same checks apply to Apple Pay, Google Pay and PayPal. ## No made-up urgency Pages never show "only 3 left" stock levels, invented sales counts or a cart "reserved for 10:00" timer. A countdown is allowed only when it's tied to a real end that's the same for every visitor: a discount code's last day, a fixed deadline that says what ends, or a daily shipping cutoff. A person confirms each deadline in the builder's checks before the page publishes. Reviews and ratings are always your product's real ones. Source: https://docs.adventfunnel.com/offers-and-checkout --- # Payments > Connect your Stripe and PayPal accounts with their keys (webhooks are set up for you) and switch a funnel from test to live payments. Payments go to **your own** Stripe and PayPal accounts. Advent Funnel keeps their keys encrypted, uses them to take payments and refunds, and never shows a saved key again, only its last 4 characters. ## Connect a payment account Open **Settings → Payments** and add an account. Each account has its **test** keys and its **live** keys: | | Stripe | PayPal | | --- | --- | --- | | Public key | Publishable key (`pk_test_…` or `pk_live_…`) | Client ID | | Secret key | Secret key (`sk_…`, or a restricted `rk_…`) | Client secret | | Webhook | The endpoint's signing secret (`whsec_…`) | The webhook ID | Only the live keys are needed to take real payments: the test keys and the webhook fields are folded away under **Test mode** and **Advanced**. [Find your payment keys](https://docs.adventfunnel.com/payment-keys) shows where Stripe and PayPal keep them. One account per provider can be the **default**: new funnels start on it. Keep each business's accounts separate. ## Add the webhooks A webhook is how Stripe or PayPal tells Advent Funnel a payment went through, so it decides whether an order is paid. When you save an account's keys, Advent Funnel adds its webhook in your Stripe or PayPal account for you, in test and in live, so there's nothing to copy. If it can't (for example, a restricted Stripe key without permission to manage webhooks), the Payments page says why and offers **Set up the webhook** to try again. To add one by hand instead, use the address each account shows for test and for live on the Payments page, with these events: - **Stripe**: `payment_intent.succeeded`, `refund.created`, `refund.updated` and `refund.failed`. - **PayPal**: `PAYMENT.CAPTURE.COMPLETED` and `PAYMENT.CAPTURE.REFUNDED`. Then paste the signing secret (Stripe) or webhook ID (PayPal) into the account. If a Stripe webhook doesn't arrive, the order isn't lost: Advent Funnel asks Stripe about pending payments every 10 minutes and marks them paid. **Settings → Webhooks** lists every webhook request it got, including refused ones (for example, a signature that doesn't match the secret), so you can see what went wrong. ## Test and live payments Each funnel picks its Stripe and PayPal accounts in its settings, and takes either **test** or **live** payments: - New funnels, and copies of funnels, start in **test** mode. Its checkout, upsell and downsell pages say "Test mode — no real charges" at the top, and real cards are declined. - Orders paid in test mode are test orders: they don't count in your numbers or go to the ad platforms. - **Go live** is on the funnel's settings. It's allowed once the funnel's accounts have live keys and its launch checklist has nothing left to do. Switching back to test is always allowed. Every switch is logged with who made it. A badge beside the funnel's name shows **Test payments** or **Live payments**, so you always know which it takes. > An order keeps the account and mode it was paid with. Its refunds and upsell use those keys, even after the funnel goes live or moves to another account. ## Apple Pay and Google Pay Apple Pay and Google Pay show only on domains registered with the Stripe account taking the payment. Advent Funnel registers each funnel's live domain with its Stripe account by itself: when the domain goes live, when the account changes, and each day for any that isn't ready yet. The funnel's **Domain** tab shows where it stands. See [Domains](https://docs.adventfunnel.com/domains). ## Order emails Order confirmations are sent from the funnel's support email (or your store's, set in Brand defaults). The Brand settings have **Send me a test email**, which shows whether the sender works before customers miss their confirmations. Source: https://docs.adventfunnel.com/payments --- # Find your payment keys > Where Stripe and PayPal show the keys Settings → Payments asks for, live and test. **Settings → Payments** asks for two keys from each account: a public one and a secret one. Paste the **live** keys to take real payments. The **test** keys are optional: they let you try your checkout with test cards first. You don't need anything else, because the webhooks are set up for you when you save (see [Payments](https://docs.adventfunnel.com/payments#add-the-webhooks)). ## Stripe 1. Sign in to your Stripe dashboard at dashboard.stripe.com. 2. Open **Developers → API keys** (or search the dashboard for "API keys"). 3. Copy the **Publishable key** (`pk_live_…`) into **Publishable key**. 4. Under **Secret key**, choose **Reveal live key** (or create one if Stripe asks you to) and copy it (`sk_live_…`) into **Secret key**. Stripe shows a new secret key only once, so paste it straight away. 5. Save. Advent Funnel adds the webhook in your Stripe account and the Payments page shows its live keys are set. For **Test mode**, switch the dashboard to test mode (or open a sandbox) and copy the same two keys there: they start with `pk_test_` and `sk_test_`. > A restricted key (`rk_live_…`) works too. If it isn't allowed to manage webhook endpoints, the Payments page says the webhook couldn't be set up: add one by hand as [Payments](https://docs.adventfunnel.com/payments#add-the-webhooks) describes, and paste its signing secret under **Advanced**. ## PayPal PayPal's keys belong to a REST app, made in the developer dashboard with your PayPal business account. 1. Sign in at developer.paypal.com with your PayPal business account. 2. Open **Apps & Credentials** and switch the toggle at the top to **Live**. 3. Open your app, or choose **Create App** and give it a name (such as your store's). 4. Copy the **Client ID** into **Client ID** and the **Secret** into **Client secret**. 5. Save. Advent Funnel adds the webhook to that app and the Payments page shows its live keys are set. For **Sandbox (test mode)**, switch the toggle to **Sandbox** and copy the Sandbox app's Client ID and Secret the same way. You pay with one of PayPal's sandbox test accounts there, never real money. ## When something doesn't save - **Must start with…**: the key is from the other mode (a test key in a live field, or the other way round) or isn't the key asked for. Check the toggle in Stripe's or PayPal's dashboard and copy it again. - **Couldn't set up the webhook**: the reason is on the Payments page, with **Set up the webhook** to try again once it's fixed. - A saved key is never shown again, only its last 4 characters. To change one, paste the new key over it; to drop one, tick **Remove this key**. Source: https://docs.adventfunnel.com/payment-keys --- # Domains > Give a funnel its own address, as a subdomain that's live at once or on a domain of your own. Every funnel has a link your ads can use from the start. You can also give it an address of its own, with its own brand name on its pages, checkout and emails. ## A subdomain, live at once A new funnel gets one straight away: its name under `myadventfunnel.com`, such as `sunny-gummies.myadventfunnel.com`, live with nothing to set up. If you've added a root domain of your own and made it primary, new funnels go under that instead. To change it, open the funnel's **Funnel settings → Domain**. Type a short name, such as `gummies`, and pick the root domain it goes under. The funnel is then at `gummies.` as soon as you save. The root domains to choose from are listed in **Settings → Domains**: `myadventfunnel.com`, shared by every account, and any of your own. A few names are kept for the app itself and can't be taken, such as `www`, `app` and `admin`. Once the domain is live, the funnel's root address opens the funnel, and its pages, checkout, legal pages and order emails link there. The brand name they show is set on the funnel's **Brand** tab. ## A domain of your own To run a funnel on a domain you own, such as `getsamplegummies.com`, choose **Own domain** in the picker and type it in full. A domain of your own needs a one-time setup on our side before it works. Until it's live, the Domain tab says it's waiting, and your ads keep using the funnel's link. ## Add a root domain If you'd like many funnels under one domain of yours, add it as a root domain in **Settings → Domains**, and follow the Cloudflare steps shown there: 1. Add the domain to Cloudflare and switch its nameservers to Cloudflare's. 2. Add one DNS record with the proxy on: type `A`, name `*`, pointing at the address shown on the page. 3. Set SSL/TLS encryption to **Flexible** and turn on **Always Use HTTPS**. 4. Come back and choose **Check now**. When it answers, the domain can be picked on any of your funnels' Domain tabs. Tick **Primary** on it to put your new funnels under it instead of `myadventfunnel.com`. A root domain can be switched off, but not deleted, and can't change once funnels are under it. ## Apple Pay, Google Pay and ad platforms When a funnel's domain goes live: - Advent Funnel registers it with the funnel's Stripe account for Apple Pay and Google Pay, and the Domain tab shows when it's ready. See [Payments](https://docs.adventfunnel.com/payments#apple-pay-and-google-pay). - Verify it, or the domain it's under, with your ad platforms (in Meta's Business Manager, for example), so your pixels' events count. Source: https://docs.adventfunnel.com/domains --- # Webhooks > Send paid orders, marketing opt-ins and unsubscribes to Zapier, Make or your own server, signed so you can trust them. The Webhooks app sends events from your funnels to a URL you choose, as they happen. Point it at a Zapier or Make "catch hook" to start a workflow with no code, or at your own server. ## Turn it on 1. In **Apps**, open **Webhooks** and install it. 2. Under **Defaults**, paste your **Webhook URL**. It must start with `https://` and be on the public internet. 3. Choose which events to send, then save. 4. Press **Send a test event**. It appears under **Recent events**, and in your Zap or scenario. A funnel can send to a URL of its own, or turn the app off, on its own **Apps** page. Unsubscribes always go to the account's URL, since they apply to every funnel. ## Events Each event is a `POST` with a JSON body like this: ```json { "id": "evt_0b5e2c1e-7a3d-4c5e-9f1a-2d4b6c8e0f12", "type": "order.paid", "created_at": "2026-11-30T10:00:00Z", "data": { "order": { "number": "BD1042", "total_cents": 4999, "currency": "USD" } } } ``` - `order.paid`: an order is paid, with the buyer, the shipping address and method, UTM tags, the lines and the totals (the full shape is below). Test orders are sent too, so you can try a workflow; skip them with a filter on `test`. - `subscriber.opted_in`: an address agreed to marketing email from a signup form, a popup or the checkout box. `data.subscriber` has the email, where it agreed, when, the exact words it agreed to and the funnel. - `subscriber.unsubscribed`: an address unsubscribed from marketing email. Stop sending it marketing wherever you copied it. - `test`: sent by **Send a test event**. Amounts are whole cents with the order's currency: `4999` with `USD` is $49.99. The `data.order` of an `order.paid` event looks like this: ```json { "number": "BD1042", "test": false, "upsell": false, "upsell_of": null, "paid_at": "2026-11-30T10:00:00Z", "currency": "USD", "payment_provider": "stripe", "subtotal_cents": 4499, "shipping_cents": 500, "tax_cents": 0, "discount_cents": 0, "total_cents": 4999, "discount_code": null, "funnel": { "id": 12, "name": "Sleep gummies" }, "customer": { "email": "sam@example.com", "first_name": "Sam", "last_name": "Lee", "phone": null, "marketing_consent": true }, "shipping_address": { "name": "Sam Lee", "address1": "1 Main St", "address2": null, "city": "Austin", "region": "TX", "postal_code": "78701", "country": "US" }, "shipping_method": "Standard", "utm": { "source": "facebook", "campaign": "launch" }, "lines": [ { "product": "Sleep gummies", "offer": "2 bottles", "option": null, "quantity": 1, "sku": "SG-60", "unit_price_cents": 4499, "total_cents": 4499, "bump": false } ] } ``` ## Check the signature Events are signed the [Standard Webhooks](https://www.standardwebhooks.com) way, so its libraries can check them. Each request carries three headers: - `webhook-id`: the event's id, the same on every retry. Use it to ignore one you've already handled. - `webhook-timestamp`: when it was sent, in seconds since 1970. - `webhook-signature`: `v1,` then a base64 HMAC-SHA256 of `id.timestamp.body`. The key is your **Signing secret** from the app's page, without its `whsec_` prefix, base64-decoded. Compare signatures in constant time, and refuse a timestamp more than five minutes old. **Replace secret** makes a new one; the old one stops working at once. Zapier and Make don't check signatures, so you can leave this to your own server. ## Retries Answer with any `2xx` status within 10 seconds to take an event. Anything else, a redirect, a timeout or no answer, is tried again with growing gaps, up to 8 times over about a day, then shown as **Failed** under **Recent events** with the last answer. Events are sent only to public `https` addresses, never to a private or local one. Source: https://docs.adventfunnel.com/webhooks