Lovable, Bolt, Replit and v0
If you built your app in an AI builder, you don't write the endpoint yourself: paste one prompt into the builder's chat, and it adds the endpoint Silver Arrows calls.
Set it up
Paste it into your tool. Your agent builds and connects everything itself, and this box turns green when it's done.
Or: already running? Paste its URL
Doing it by hand
The endpoint it generates follows the relay contract: it verifies our signature, reads the text and the recent history, runs your app's existing AI logic, and returns {"reply": "..."}.
The steps
- Start the connect wizard. Enter a name and keyword. It shows you a webhook secret (
whsec_...). - In your builder, add that secret as an environment variable or secret named
ARROW_WEBHOOK_SECRET. - Paste the prompt for your builder (below) into its chat. Let it build and deploy.
- Copy the public URL it gives you and paste it into the wizard's "Where's your agent?" box.
- The wizard sends a signed test message. Green check means you're live.
If the wizard says your URL returned 404, 405 or no JSON, it's not deployed or not public yet. Ask the builder "Is the endpoint deployed and public without login? What's its exact URL?"
Lovable (Supabase edge function)
Add a Supabase edge function named sms-reply so people can text this app's AI through Silver Arrows. It must be callable without login: set verify_jwt = false for it in supabase/config.toml ([functions.sms-reply] verify_jwt = false), otherwise Supabase rejects our requests with 401 before your code runs. Its public URL is https://<project-ref>.supabase.co/functions/v1/sms-reply. It receives POST requests with a JSON body shaped like {"line_id": string, "conversation_id": string, "sender_id": string, "phone"?: string, "message": {"id": string, "body": string, "media_urls": string[], "received_at": string}, "history": [{"direction": "in" | "out", "body": string, "at": string}]}. Before doing anything else, verify the request is really from Silver Arrows: read the raw request body as text before parsing it (never re-serialize parsed JSON), compute an HMAC-SHA256 of that exact raw text using the secret in the environment variable ARROW_WEBHOOK_SECRET (a server-side secret, never in client code; if it isn't set yet, ask me to add it, I have the value), and compare "sha256=" followed by the lowercase hex digest with the X-Arrow-Signature header using a constant-time comparison (crypto.timingSafeEqual in Node, crypto.subtle.verify in Deno or edge runtimes); if the header is missing or doesn't match, return 401. Then answer message.body with this app's existing AI logic and data, treating history (oldest first; "in" is the texter, "out" is our earlier replies) as the conversation so far, sender_id as a stable anonymous user id, and media_urls as photo links. Respond within 10 seconds with status 200, Content-Type application/json and {"reply": "<plain text, no markdown, under 280 characters>"} (texts are capped at 320 characters including our opt-out footer), or {"reply": null} to send nothing; if the work can take longer, immediately respond {"reply": "__async__"} and afterwards (keeping the background work alive after the response) POST {"conversation_id": ..., "body": "<reply>", "in_reply_to": message.id} to https://silverarrows.dev/v1/lines/{line_id}/reply (line_id from the request) with the header Authorization: Bearer <the Silver Arrows API key in env ARROW_API_KEY> within 5 minutes. Never return HTML from this endpoint, handle errors by returning {"reply": null} instead of crashing, and when it's deployed tell me the endpoint's full public URL so I can paste it into Silver Arrows.
Bolt
Add a public server endpoint POST /api/sms (no login, outside any auth middleware) so people can text this app's AI through Silver Arrows. It receives POST requests with a JSON body shaped like {"line_id": string, "conversation_id": string, "sender_id": string, "phone"?: string, "message": {"id": string, "body": string, "media_urls": string[], "received_at": string}, "history": [{"direction": "in" | "out", "body": string, "at": string}]}. Before doing anything else, verify the request is really from Silver Arrows: read the raw request body as text before parsing it (never re-serialize parsed JSON), compute an HMAC-SHA256 of that exact raw text using the secret in the environment variable ARROW_WEBHOOK_SECRET (a server-side secret, never in client code; if it isn't set yet, ask me to add it, I have the value), and compare "sha256=" followed by the lowercase hex digest with the X-Arrow-Signature header using a constant-time comparison (crypto.timingSafeEqual in Node, crypto.subtle.verify in Deno or edge runtimes); if the header is missing or doesn't match, return 401. Then answer message.body with this app's existing AI logic and data, treating history (oldest first; "in" is the texter, "out" is our earlier replies) as the conversation so far, sender_id as a stable anonymous user id, and media_urls as photo links. Respond within 10 seconds with status 200, Content-Type application/json and {"reply": "<plain text, no markdown, under 280 characters>"} (texts are capped at 320 characters including our opt-out footer), or {"reply": null} to send nothing; if the work can take longer, immediately respond {"reply": "__async__"} and afterwards (keeping the background work alive after the response) POST {"conversation_id": ..., "body": "<reply>", "in_reply_to": message.id} to https://silverarrows.dev/v1/lines/{line_id}/reply (line_id from the request) with the header Authorization: Bearer <the Silver Arrows API key in env ARROW_API_KEY> within 5 minutes. Never return HTML from this endpoint, handle errors by returning {"reply": null} instead of crashing, and when it's deployed tell me the endpoint's full public URL so I can paste it into Silver Arrows.
Replit
Add a public HTTP route POST /api/sms to this app's server (no login; it must work on the deployed app, not only the dev preview) so people can text this app's AI through Silver Arrows. It receives POST requests with a JSON body shaped like {"line_id": string, "conversation_id": string, "sender_id": string, "phone"?: string, "message": {"id": string, "body": string, "media_urls": string[], "received_at": string}, "history": [{"direction": "in" | "out", "body": string, "at": string}]}. Before doing anything else, verify the request is really from Silver Arrows: read the raw request body as text before parsing it (never re-serialize parsed JSON), compute an HMAC-SHA256 of that exact raw text using the secret in the environment variable ARROW_WEBHOOK_SECRET (a server-side secret, never in client code; if it isn't set yet, ask me to add it, I have the value), and compare "sha256=" followed by the lowercase hex digest with the X-Arrow-Signature header using a constant-time comparison (crypto.timingSafeEqual in Node, crypto.subtle.verify in Deno or edge runtimes); if the header is missing or doesn't match, return 401. Then answer message.body with this app's existing AI logic and data, treating history (oldest first; "in" is the texter, "out" is our earlier replies) as the conversation so far, sender_id as a stable anonymous user id, and media_urls as photo links. Respond within 10 seconds with status 200, Content-Type application/json and {"reply": "<plain text, no markdown, under 280 characters>"} (texts are capped at 320 characters including our opt-out footer), or {"reply": null} to send nothing; if the work can take longer, immediately respond {"reply": "__async__"} and afterwards (keeping the background work alive after the response) POST {"conversation_id": ..., "body": "<reply>", "in_reply_to": message.id} to https://silverarrows.dev/v1/lines/{line_id}/reply (line_id from the request) with the header Authorization: Bearer <the Silver Arrows API key in env ARROW_API_KEY> within 5 minutes. Never return HTML from this endpoint, handle errors by returning {"reply": null} instead of crashing, and when it's deployed tell me the endpoint's full public URL so I can paste it into Silver Arrows.
v0 (Next.js route handler)
Add a Next.js App Router route handler at app/api/sms/route.ts (export const runtime = "nodejs"; exclude it from any auth middleware) so people can text this app's AI through Silver Arrows. It receives POST requests with a JSON body shaped like {"line_id": string, "conversation_id": string, "sender_id": string, "phone"?: string, "message": {"id": string, "body": string, "media_urls": string[], "received_at": string}, "history": [{"direction": "in" | "out", "body": string, "at": string}]}. Before doing anything else, verify the request is really from Silver Arrows: read the raw request body as text before parsing it (never re-serialize parsed JSON), compute an HMAC-SHA256 of that exact raw text using the secret in the environment variable ARROW_WEBHOOK_SECRET (a server-side secret, never in client code; if it isn't set yet, ask me to add it, I have the value), and compare "sha256=" followed by the lowercase hex digest with the X-Arrow-Signature header using a constant-time comparison (crypto.timingSafeEqual in Node, crypto.subtle.verify in Deno or edge runtimes); if the header is missing or doesn't match, return 401. Then answer message.body with this app's existing AI logic and data, treating history (oldest first; "in" is the texter, "out" is our earlier replies) as the conversation so far, sender_id as a stable anonymous user id, and media_urls as photo links. Respond within 10 seconds with status 200, Content-Type application/json and {"reply": "<plain text, no markdown, under 280 characters>"} (texts are capped at 320 characters including our opt-out footer), or {"reply": null} to send nothing; if the work can take longer, immediately respond {"reply": "__async__"} and afterwards (keeping the background work alive after the response) POST {"conversation_id": ..., "body": "<reply>", "in_reply_to": message.id} to https://silverarrows.dev/v1/lines/{line_id}/reply (line_id from the request) with the header Authorization: Bearer <the Silver Arrows API key in env ARROW_API_KEY> within 5 minutes. Never return HTML from this endpoint, handle errors by returning {"reply": null} instead of crashing, and when it's deployed tell me the endpoint's full public URL so I can paste it into Silver Arrows.
If your AI is slow
All four prompts already tell the builder what to do when answering takes longer than 10 seconds: answer {"reply": "__async__"} right away, then post the reply to /v1/lines/<line_id>/reply within 5 minutes. For that path the endpoint needs a Silver Arrows API key as a second secret, ARROW_API_KEY.
Create the API key at /account. On serverless platforms, make sure background work isn't killed when the response returns (for Supabase use EdgeRuntime.waitUntil, for Vercel use waitUntil from @vercel/functions). See Async and scheduled.
Check it yourself
You can sign a test request by hand to see what your endpoint does:
BODY='{"line_id":"line_test","conversation_id":"conv_test","sender_id":"snd_test","message":{"id":"msg_test","body":"hello","media_urls":[],"received_at":"2026-10-05T18:00:00Z"},"history":[]}'
SIG="sha256=$(printf '%s' "$BODY" | openssl dgst -sha256 -hmac "$ARROW_WEBHOOK_SECRET" | sed 's/^.* //')"
curl -s -X POST "https://your-app.example.com/api/sms" \
-H "Content-Type: application/json" \
-H "X-Arrow-Signature: $SIG" \
-d "$BODY"
Expect {"reply":"..."}. A 401 means the secret doesn't match.
Add a "Text this app" button to your README
Template authors: a deploy button opens the wizard with your app's endpoint prefilled, so anyone who remixes your project can give it a number in one click.
[Text this app: give it a phone number with Silver Arrows](https://silverarrows.dev/new?name=My%20App&url=https%3A%2F%2Fmy-app.example.com%2Fapi%2Fsms&mode=relay)
More options, including the embed and per-line badge, are in Embed.