Connect your App to other services
What connecting a service does
Your App can reach out to the outside world — add a row to a sheet, book a calendar slot, send a text message, call another company's API — once you connect that service. You connect each service one time, and MotherFluxer stores the credential securely. From then on your App's code calls the service without ever touching the raw key: the credential is added on the server when your App runs, so it stays out of your App's pages and out of anything a visitor could see.
Open your App in the editor, choose the Equip tab, then Connect. The page has three parts:
- Services — the services your App can work with, sorted by what they are for: Sheets, Calendar, Files, Docs, Slides, Maps, GitHub and Zapier / Make. Each says whether it is connected, and to whom.
- Custom — connections to any other service, set up by the building assistant.
- Keys — the keys your App's actions use. Only the App's owner sees this part.
Texts and Slack are connected from Messages on the same tab, because they are ways your App reaches people.
Every connection is your Live App's, as Works on says — and your Draft uses the same one, so a connection works in your Draft the moment you set it up and you never re-enter a key to test. It also means a Draft calls the same real account your published App does: when you are testing something that sends, charges or writes for real, use a test account at the service itself.
Connections belong to your published App. Until your first publish these lists are empty, and pressing a Settings icon or an add button opens Publish first, which takes you to Publish on the Manage tab.
Connect a service
In Equip › Connect, select the Settings icon beside a service under Services. Its window shows:
- Provider — for a service two companies offer, which one: Google or Microsoft for Sheets, Calendar and Files. A service shows the one it is connected with first.
- How it connects, which depends on the provider:
- Sign-in — for Google and Microsoft services, Connect opens the provider's sign-in in a new window. Once you have signed in, the service reads Connected with the account beside it. Reconnect signs in again and Disconnect undoes it. If your browser blocks the window, the page says the Sign-in window was Blocked: Allow pop-ups for the editor, then select Try again. If the sign-in itself fails, the reason is shown on screen and stays there until your next press.
- Key — for Maps and GitHub, paste the key the service gives you and select Connect; Update replaces it later. The box always starts empty: a key is never shown again once saved.
- One press — Zapier / Make needs Nothing to paste and No sign-in: select Connect.
- Adds — how many ready-made actions connecting it gives your App's code. Select the count to see their names.
- Limits — a limit worth knowing before you connect: Excel · no personal OneDrive, and Drive · only files it made.
- What it costs, and Works on.
Connecting, updating and disconnecting are the owner's. A collaborator sees which account each service is connected with, and nothing to press.
One account per service
An App holds one account per service. Connecting the same service a second time — a different workspace, a different account, or simply a fresh key for the one you already use — replaces the account your App uses now.
MotherFluxer will not do that quietly. When you connect a service your App already has, it stops and asks first — This app is already connected — naming the service and, where it knows it, the account you are connected as. Choose Replace the connection to go ahead, or cancel and nothing changes. For a service you connect by signing in, the question comes before the sign-in window opens, so you are never asked to sign in and then told no.
Replacing a key on the same account looks exactly like switching to a different account — the stored key carries no record of whose it is — so a routine key rotation takes the same one-click confirmation. It is one extra click, and it is what stops a second connection silently knocking out a working one.
A connect that fails partway leaves nothing behind that claims the account, so trying again goes straight through — you are never asked to replace a connection that never finished.
Send text messages
To have your App send text messages, connect a texting account from Equip › Messages:
- On the Messages page, select the Settings icon on Texts.
- Fill in the Account (the Account SID, which starts with AC) and the Key (your auth token), both from your own Twilio console.
- Select Connect. Texts then reads Connected; Remove in the same window disconnects it.
Connecting Adds an action your App's code calls with a phone number and the text of a message. It is good for order confirmations, alerts and verification texts. Messages go through your own account, so the texting service bills you for them, and it Works on your Live App.
Post to Slack
To have your App post to Slack, connect it from Equip › Messages: select the Settings icon on Slack, paste your Slack app's bot token (it starts with xoxb-) as the Key, and select Connect.
Connecting Adds ready-made actions your App's code calls to post and read messages. Select the count in the window to see their names. Remove in the same window disconnects it.
Connect any service with an API
Beyond the services listed in Equip › Connect, your App can connect to almost any service that offers an API. Ask the building assistant for it in plain language — "connect my CRM's API" — and it sets up the connection, which appears under Custom. A connection made with a key is tried against the service before it is added, so one that doesn't work never lands.
How you authorise it depends on the service:
- A key — give the building assistant the service's key, or add it yourself under Keys in Equip › Connect first and tell the assistant its name. The key is stored like any other and never reaches your App's pages.
- Sign in with the service — for a service that only offers a "Sign in with…" style authorisation, first create an app in that service's developer settings. The building assistant tells you the exact redirect address that app must list, then asks for its client ID and client secret. The connection appears under Custom reading Off; open its Settings and select Connect to sign in. MotherFluxer keeps the access fresh, so your App keeps working without you signing in again.
A custom connection's window shows whether it is connected, what it Adds, and a Disconnect button.
Storing a service's key, or the client ID and client secret of your own sign-in app, is the App owner's. When a collaborator asks the building assistant to connect a service that needs one, the assistant doesn't store it — it tells them to ask you to connect it.
Trigger automations with Zapier or Make
To have your App kick off a workflow you build in Zapier or Make — add a row to a sheet, post to a channel, start any automation there — connect Zapier / Make in Equip › Connect. There is nothing to paste and no sign-in: open its Settings and select Connect.
Then create a webhook trigger in the automation tool and copy its address. Your App's code sends to that address through the connection, and the automation tool takes it from there.
One connection serves both tools, and Make's webhook addresses work whichever region your Make account is in. Worth knowing before you pick: Make hands out webhook addresses on its free plan, while Zapier keeps them behind a paid plan.
Keep keys for your actions
Keys in Equip › Connect holds the credentials your App's actions use — an API key for a service you call, a signing secret, a password. Only the App's owner sees it: a stored credential is never the team's.
Select Add a key (the + icon), give it a Name and a Value, and select Add. Adding a key under a name that already exists replaces its value (Same name · Replaces the value).
What the part tells you about every key:
- Kept — Encrypted, Never shown again, and it Never reaches the page.
- Used by — Actions · as a header, and Signing and checking incoming messages.
- In code — the calls an action reads it through.
A key you added reads Yours, and its trash icon deletes it. The editor asks first, because the Actions using it Stop working. A key a connection stored is marked with the connection's name and a lock: it can't be deleted here, because the connection needs it — disconnecting the connection removes it.
To let an action read a key, switch it on in that action's Keys section in Equip › Automations.
How your App's code uses a connection
Your App's actions reach a connected service through its ready-made actions and through ctx.fetch, the helper that calls an outside API for your App. For a service you connected with a key, the key is added on the server at the moment the call runs, so your code names the connection and never contains the key itself. An action can also read a stored key with ctx.secrets.get when it needs one directly — only the keys that action has been allowed to read. In every case the credential stays on the server, so nothing sensitive reaches the visitor's browser.
Ask the building assistant to connect something
You don't have to wire connections up by hand. Tell the building assistant what you want in plain language — "let my App text me when someone submits the form" or "connect my CRM's API" — and it sets up the connection and the code that uses it. You still add the service's key or sign in once, but the assistant handles the rest.