Wiki
Asphalt OS Try the demo

Connections to outside services

Each company enters its own keys for texting, email, the mailbox, payments, AI and the other outside services. Nothing is shared. QuickBooks live sync is planned.

Your own keys

Asphalt OS talks to a few outside services on your company's behalf. Each company enters its own keys (the account details those services give you) on Connections, one card per service, and nothing is shared between companies. Asphalt OS works from day one without any of them; each one switches on one more thing.

The connections
CardWhat it doesUntil it is connected
Sending email and textsCaptured (a new company starts here) keeps everything in: email and texts stay in your Outbox, marked Test only, and nobody outside your company reads them. Live sends them for real.Nothing reaches a customer.
Email sending (SMTP)The mail service your company email goes out through when sending is live: Google Workspace, Microsoft 365 or any SMTP service. Your brand address becomes Reply-To. The connection is always encrypted: choose STARTTLS (usually port 587) or TLS (port 465). A mail server saved earlier with no encryption shows as "none: no longer allowed, choose another", and its letters say "Not sent" and why in the Outbox until you choose one. Asphalt OS never connects to a mail server on its own computer, on a private network or at a link-local address: a letter it won't send says "Sending failed" and why in the Outbox. When your mail server refuses the sign-in (a changed or revoked password) or stops answering, this card says so in red: "Sign-in refused since" a time, what to do, and how many emails are waiting. The emails wait and go out on their own once it works.Emails are held back and reach nobody.
Texting (Twilio)Sends and receives texts from your company's numbers. One number belongs to one company. Each brand texts from its own number, listed on the card (see Texting numbers). The card also shows the two addresses to paste into the Twilio number's settings: one into its "A message comes in", the other into its "Status callback URL". See Messages and texting.No texts go out.
Company mailboxGoogle Workspace or Microsoft 365: new email in your mailbox lands in the shared inbox. It needs an app of your own in Google Cloud or Microsoft Entra; the steps are on Connect your company mailbox, and the card links there. For replies sent from Asphalt OS to be copied into the mailbox's own Sent folder (the owner's switch on the inbox's Rules page), take a new token from a second consent step that also grants adding letters to it: Google's gmail.insert, or Microsoft 365's Mail.ReadWrite with an administrator's consent. See What only the owner switches on.No new mail comes in from the mailbox.
Payments (Stripe)Your own Stripe account: when a customer pays an invoice online, the money goes straight to it. Asphalt OS never holds money and never sees a card number. Start with Stripe's test keys and switch to the live keys when you are ready; the card says which you have ("Test keys: customers can only pay with Stripe's test cards ..." or "Live keys: real card payments go to your Stripe account."). The card shows the webhook endpoint to add in the Stripe dashboard (Developers, then Webhooks, "Add endpoint") and the events to select for it; then copy the endpoint's signing secret (whsec_...) into the card. Changing the key closes the checkouts still open under the previous account, and the previous key and signing secret are kept 30 days, for late payments only. With a key and no webhook signing secret, payments are still recorded (Asphalt OS asks Stripe about every checkout left open), but refunds and disputes made in Stripe are not heard of, and the card says so. See Invoices.No online checkout: invoices say how to pay by check or bank transfer.
QuickBooks OnlinePlanned: live sync is not available yet, so the card asks for nothing and the server takes no new setting for it. A setting saved before is listed there with Remove. See QuickBooks import.Import a QuickBooks export instead.
AI assistantThe AI service your company pays for: the AI behind the chat, and behind the shared inbox's AI assistant. See Choosing your AI service, Ask Asphalt and The AI assistant.The snapshot shows, the chat doesn't; the inbox works without its AI.
Call transcriptionTurns call recordings into text, with your AI service's own key (OpenAI or Google Gemini), with OpenAI, or with any OpenAI-compatible speech service at an address you type (the same rules for the address as on the AI assistant card). See Call transcription and Calls.Type or paste the transcript. On a call, Transcribe from the recording is greyed out and says "No speech service is connected."
WeatherForecasts and warnings over your scheduled job sites from the National Weather Service: free, no key, but it receives each job site's location and asks for a contact email.A built-in sample forecast, marked as one on the board and on Settings; nobody is warned about it, and nothing leaves the building.
Address lookupTurns plant and job-site addresses into map points with the US Census lookup: free, no key, but it receives the addresses. When it has not answered for an hour, the card says since when and how many job sites are waiting ("Not answering since 9:14 AM. 6 job sites are waiting."); it is asked again every minute, and meanwhile a dispatcher can place a waiting site by hand.Nothing is looked up and nothing leaves the building: plants take typed coordinates, a job site is placed on the map by hand, and the board says the lookup is not set up. (Test copies also offer a stand-in that makes points up; its points read "Made-up point (stand-in lookup)" and get no forecast and no plant miles.)
Aerial picturesThe pictures the Measure from the map panel shows, and draws into the picture attached as the measurement screenshot, and the map Place it on the map puts a job site on: the USGS National Map imagery, free and public domain with no key, but it receives the area you look at. The pictures come through Asphalt OS, never straight to the browser. Anyone who may change Connections chooses it. Test fetches one picture.Nothing is fetched: the panel says "Aerial pictures are not set up. Choose a source on Connections." and the corners are pasted from another map (a job site's latitude and longitude are typed). (Test copies also offer stand-in, made-up pictures, marked "Stand-in pictures, not a real place" on the map.)
Your website's formThe form code for your own website, and its key: a visitor who fills the form in is a lead in Intake within seconds, with the campaign the page carried. See Your website's form.Leads from the website are typed in by hand from the emails it sends you.

Each card with a harmless check has a Test button, and the answer is always a plain sentence. A new key is used right away.

Testing email and the mailbox

The mail service's keys and the mailbox's are only ever used by the background worker: nobody signed in reads them, not even the app server. So Test on those two cards asks the worker, waits for its answer (a few seconds) and shows it. Only the company owner presses them, as those keys are the owner's; for anyone else they are greyed out, with the reason under them.

  • Email sending: one short email to your own sign-in address, through your mail service, whatever the sending mode (Captured included), from the address your company's letters leave from. The answer says where it went, for example "A test email went to you@yourcompany.com through smtp.gmail.com:587. If it is not there in a few minutes, look in the spam folder." (while sending is Captured it adds that customers' email stays in the Outbox until you switch it to Live), or why it couldn't go: the sign-in refused, the server not reached, the letter refused, or a server name Asphalt OS may not connect to (one sentence for every reason, so the answer never says which network a name leads into). Never anybody else's address, and nothing of a customer's.
  • Company mailbox: the keys sign in, and the answer says whose mailbox they open and how many emails it holds, for example "Google accepted the keys: they open the mailbox office@yourcompany.com (1532 emails). No email was read." No email is read, filed or changed; "Connect and sync now" on Settings brings the mail in.

If the worker doesn't answer within 20 seconds, the card says so: press Test again in a minute (a second press while one test waits doesn't start another). Twenty tests an hour is the most, and five presses a minute for each person.

Texting numbers

Each brand texts from its own phone number, and a customer's reply comes back to it. That number is the brand's phone: the same one on Automations, Brands, and on the Texting (Twilio) card under Texting numbers, where each brand in use is listed with it. Change it on either page; the person who may change a brand (the owner, in the standard roles) sees Change on the card, and is asked for the password again first. The Twilio number on the card is for a brand with no number of its own.

At the top of the card, for someone who may change the company settings, two lines say where texting stands: whether texts go out ("Texts go out through your Twilio account.", or why not, for example that sending is still Captured or a Twilio setting is missing), and whether the replies and delivery receipts Twilio sends back can be checked ("checked with your Twilio Auth Token", or "dropped: no Auth Token is saved to check them with"). When texts have not left for more than five minutes (the red line at the top of the page says "Texts are not going out"), a line between them says how many and since when: "12 texts have waited more than 5 minutes, since 9:14 AM. Open Messages, then Outbox, to see which.", or, while background work is paused, that they go out once it runs again. It gives counts and times only, never a number or a text. A text held on purpose until your business hours open (an automatic text to a customer written in the evening, say) counts only from the time it is due to go, so it is never called stuck overnight. While it shows, the card looks again every 30 seconds, so with the page left open the count and the time follow the texts as they leave, and the line is gone once they have all left.

Twilio sends a text only from a number on your Twilio account that can text. Under each brand whose number is not the Twilio number the card says so, before you switch sending to Live: "Texts go out from it only if it is a number on your Twilio account that can text (the Twilio number is (470) 555-0100). Press Test to check before going live." One number belongs to one brand, so a second brand needs a second number on your Twilio account. Test then asks Twilio about the Twilio number and every brand's number, sends nothing, and answers in a plain sentence, for example: "Twilio accepted the Account SID and Auth Token, but (470) 555-0190 (Summit Pavement Services) is not a number on this Twilio account. That brand's texts go out from the Twilio number, (470) 555-0100, instead, and replies come back there. Change the brand's number below, or add the number to your Twilio account."

If Twilio refuses a brand's number when a text goes out (the number is not on the account, or it can't text), the text goes out once more from the Twilio number, so it is not lost, and the Messages thread shows the number it really came from. With a Messaging Service the service picks the number, and none of this applies.

Choosing your AI service

AI: your choice of Anthropic, OpenAI, Google Gemini or any OpenAI-compatible service, with your own key. Choose the AI service your company pays for on the AI assistant card. Ask Asphalt, inbox sorting, summaries and drafts use it.

The AI services
AI serviceWhat the card asks forModel when you leave it empty
Anthropic (Claude)The API key from the Anthropic Console. A company that never chose a service has this one, so a key saved before the choice existed keeps working.claude-sonnet-5 for the chat; the shared inbox picks its own Claude model for each step.
OpenAI (ChatGPT)The API key from the OpenAI platform.gpt-5
Google (Gemini)The API key from Google AI Studio.gemini-flash-latest
Other (OpenAI-compatible)The service's base URL, its key, and the model's name exactly as the service writes it. All three are needed.None: type the model.
  • A model's name is at most 100 characters, with no spaces.
  • One model for everything. With a service other than Anthropic, every feature uses the one model on the card. The inbox's Quality choice then changes nothing, and its card says so.
  • What the AI cost is an estimate. Asphalt OS knows the published prices of each service's usual model (gpt-5 for OpenAI, gemini-flash-latest for Google, read from their price pages on the dates its price list shows) and counts each request at them. A model it has no price for, such as one on an OpenAI-compatible service, is counted at the highest price it knows, so the daily cap still holds, and the inbox's AI assistant card says so: "The cost shown is an estimate at the highest known price, because the price of llama-3.3-70b is not known here. Your AI service's bill is the real figure." Google's gemini-flash-latest moves to each new Flash model: when Google answers with a model it has no price for, its requests are counted at gemini-flash-latest's price and the card says so, naming the model that answered. With Other (OpenAI-compatible), the people who may change the company settings can type the service's two prices, in dollars per million tokens read and written, on that card under Your AI service's prices (from 0 to 1,000, both or neither; save both empty to clear them); the cost and the daily cap then use them. They are cleared when the AI service, its address or its model changes on Connections, so a new model is never counted at the old one's prices: type the new one's. At $0 and $0 the AI costs nothing here, so the daily cap cannot stop it, and the card says so. Each service is counted at its own prices only: an OpenAI-compatible service is counted at the highest known price until its prices are typed, whatever its model is called. Your service's own bill is always the real figure, and every request that was sent is counted, whatever came back.
  • A key belongs to its service. When you change the AI service, or the base URL of an OpenAI-compatible service you are using, the saved API key is removed and the page says so: add the key for the new one. A key is never sent to a service it was not saved for. Clearing a base URL left over from a service you no longer use keeps your key. The same holds on the Call transcription card.
  • The base URL must be a real, public address. It starts with https:// and has no user name or password in it. When you save it, Asphalt OS looks the address up and refuses one inside a private network, on its own computer or on a link-local address ("Asphalt OS may not connect to 10.0.0.5: it is inside a private network."). A name it cannot use gets one answer, whether the name was not found or leads inside, and the lookup is given five seconds. It checks again every time it connects, follows no redirects, and gives up on an answer that is too long or too slow.
  • Test shows the key to the chosen service without asking the AI anything, so it costs nothing. With OpenAI, Google or an OpenAI-compatible service it also asks whether the service has the model; with Anthropic it checks the key only. The answer is a plain sentence: the service accepted the key, it refused the key, it has no model of that name, or what is still missing on the card. It never shows the key.

Call transcription

The Call transcription card chooses who writes out a call's recording when someone presses Transcribe from the recording. Like the AI assistant card, everything on it is the owner's.

Transcription services
ServiceWhat the card asks forModel when you leave it empty
Use the AI service's keyNothing more: recordings go to the AI service on the AI assistant card, with its key. It works with OpenAI and Google (Gemini). Gemini takes recordings up to 14 MB (about half an hour of a phone call); for a longer one, type the transcript or choose another service.whisper-1 with OpenAI, gemini-flash-latest with Google
OpenAIAn OpenAI API key of its own.whisper-1
Other (OpenAI-compatible)The speech service's base URL, its key, and the model's name.None: type the model.
  • The card says where recordings go. With "Use the AI service's key" it says so in one line under the title, by the AI service you have, for example "Recordings go to Google (Gemini) with the AI service's key, to gemini-flash-latest unless a model is named here. Gemini takes recordings up to 14 MB." While OpenAI or Google has no AI key saved (choosing another AI service removes the key), it says in red: "The AI service has no API key saved, so calls are not transcribed. Add its API key on the AI assistant card first."
  • Anthropic has no speech service. With Anthropic as the AI service (or no AI service chosen, which is Anthropic), the card says "Anthropic has no speech service, so the AI service cannot transcribe calls. Choose a speech service for call transcription here, with its own key." Nothing is transcribed until you do. The same holds for an OpenAI-compatible AI service: the card says its key goes only to its own address, and asks you to choose a speech service here, with its own key.
  • The key stays with its service. The AI service's key is only ever sent to that AI service. Change the AI service and its key is removed, as always; transcription then follows the new one. The people who upload recordings and edit transcripts use it for that alone, on the server: no one's browser ever sees a key.
  • Test asks the service about the key without sending a recording, so it costs nothing, and says what is still missing.
  • The AI's daily cap counts it. With "Use the AI service's key" the AI account pays for each transcription, so its estimated cost (OpenAI by the minute of recording, Gemini by what it read and wrote) counts in the same daily spend as the inbox AI, and the inbox's AI assistant card counts the transcriptions on its spend line. It counts from the moment the recording is sent, so transcriptions asked for at the same moment cannot pass the cap together, and an answer the service is paid for counts even when it gives back no whole transcript (a call cut short, say). One the service refuses is not paid for and not counted. Once the AI reaches its daily cap nothing more is sent until the next day: Transcribe says "Nothing was sent: transcription uses the AI service's key, and the AI has reached today's spending cap.", and the transcript can still be typed or pasted. A speech service with its own key is its own account and is not counted.
  • 30 an hour a person. One person may ask for 30 transcriptions in an hour, plenty for a busy morning; the next one says "You have asked for 30 transcriptions in the last hour, the most one person may. Try again later, or type or paste the transcript."

Who can change them

  • The page needs the permission "Change API keys and outside connections": in the standard roles, the CEO and the Asphalt OS staff role.
  • Every save or removal on the page asks for your password again.
  • Most settings are the owner's alone: switching email and texts to Live (and back), and anything on the Email sending, Company mailbox, Texting, Payments, AI assistant and Call transcription cards (the service, the base URL, the model and the key). On those cards anyone else sees "Changes here go to the company owner: press Save and the owner gets a task to approve them in one click." When someone else saves one of those, nothing changes yet: the owner gets a task, and the change waits at the top of the Connections page, under Waiting for your approval for the owner and Waiting for the owner's approval for everyone else. The owner approves or declines it in one click (after typing their password again). One change waits per setting (saving again replaces it), and whoever asked can take it back with Take it back. The Weather, Address lookup and Aerial pictures choices the Asphalt OS staff may set right away.
  • The owner is emailed about every change on this page, whoever made it: which setting, who, and when. Never the value. A change outside business hours also raises an alert.

Keys stay hidden

A key can be written, never read back. Once saved, the page shows only that it is set and how it ends, for example "Set, ends in 4f2a". Nobody sees the whole key again, not even the person who typed it. To change it, type a new one.

Each feature reads only its own service's settings, and only for the people who use that feature; no key or address is read for a crew member in the standard roles. The app server reads:

  • the AI assistant's for people who may use Ask Asphalt;
  • Call transcription's for people who manage calls, with the AI service's key only while the card is set to use it and only when that service is OpenAI or Google;
  • Address lookup's and Aerial pictures' for people who measure properties, schedule jobs or manage plants;
  • Twilio's, Stripe's and the weather's only for Test.

Someone who may change connections reads all of these, for Test. The mail service's, the mailbox's and QuickBooks' settings are never read by the app server, not even for that: only the background worker reads them, as it does the sending and the syncing, so Test on those cards asks the worker. The worker also does the texting and the payments with Twilio's and Stripe's keys, and runs the shared inbox's AI, which nothing else ever calls. The app server keeps no copy of any key.

Esc