Agent phones: texts on your own SIM
An agent phone is a spare Android phone with your own SIM in it, running Heartisan Agent. It sends your organisation's texts on that SIM, so you pay your mobile plan instead of per message, and passes replies straight into Conversations. You connect it by scanning a code, and from then on you manage it from the portal: its settings, its updates and a full record of everything it has done. It's all on Agent phones in the portal menu.
Before you start
- A SIM with a plan that includes texts. A pay-monthly plan with unlimited texts is best.
- Put the SIM in the phone and send one text from it yourself, so you know the SIM and the network work.
- Turn off the SIM's PIN and don't set a screen lock. If the phone restarts (after a power cut, say), it can then carry on without anyone touching it.
- Find it a home: plugged in, on Wi-Fi if you can, somewhere with good signal and not in direct sun.
Step 1 — Connect the phone
- In the portal, open Agent phones and press Add a phone. Give it a name that says where it is, like Church office phone, and press Show the code.
- On the phone, open the camera, point it at the QR code, and tap the link that appears.
- On the page that opens, press Download Heartisan Agent, open the file, and install it. Android asks you to allow your browser to install apps — allow it. Heartisan Agent isn't on Google Play; it comes straight from Heartisan.
- Go back to that page and press Connect this phone. The app opens with everything filled in: press Connect this phone once more.
The portal says connected the moment it happens. The code works once, for 15 minutes; if it runs out, press New code.
No camera, or the link won't open? In the app choose Enter a code and type the address and code shown under the QR code in the portal. The app itself can also be downloaded from Agent phones → Download the app (with its own QR code) or from the portal's Downloads page.
Step 2 — Work through the phone's setup list
Straight after connecting, the app asks to send and receive texts and to see the SIM — allow both. Anything else it still needs appears under Set up this phone on its screen, each with a button:
- Texts aren't allowed yet
- Lets it send texts and hear replies. Without this it can't do its job.
- Can't see the SIM or the signal
- Lets it tell you which SIMs are in the phone and how good the signal is.
- Battery saving can put the agent to sleep
- Press Turn off and choose Allow. Samsung phones in particular put background apps to sleep; this stops it. On a Samsung, also add Heartisan Agent to Settings → Battery → Background usage limits → Never sleeping apps.
- Can't install its own updates yet
- Press Allow and switch on Allow from this source. This is how the portal updates it without Google Play.
- Not plugged in
- Plug it in. If the phone has a battery protection setting (Samsung calls it Protect battery, under Settings → Battery), turn it on: it stops charging at 85%, which keeps a phone that's always plugged in healthy for far longer.
Whatever is still on that list also shows on the phone's card in the portal, so you can see from your desk that it needs attention.
Step 3 — Send texts through it
In Settings → Messaging → SMS, set Provider to Your own SIM (Android phone or Teltonika router) and save. From then on texts go out on the phone. The settings there apply to phones and routers alike:
- What it carries — by default conversations, check-in alerts, follow-ups and sends to up to 25 people. Bigger sends go on your paid account, because mobile networks block SIMs that text in bulk.
- If it's offline — after a short wait, texts go through your Twilio or Azure account instead (fill in the Fallback account), or not at all.
- Replies — tick Collect replies from the SIM and choose who hears about them.
Managing a phone
Click a phone on Agent phones to open it. Its card shows at a glance whether it's connected, its battery, its signal, how many texts it sent today and its version.
- Check in now
- Asks it to answer straight away. It checks in all the time anyway; this proves it's listening.
- Find this phone
- It rings loudly for a few seconds and shows its name on the screen.
- Send a test text
- One real text from its SIM to a number you choose — use your own.
- Update
- Shown when a newer Heartisan Agent is out. See Updates.
- Get the full log
- The phone sends its whole activity log again, including anything older it's still holding.
- Restart the agent
- Restarts Heartisan Agent on the phone. It reconnects by itself.
- Disconnect
- For a lost, stolen or retired phone. It stops sending at once and can't be managed any more; anything it was about to send goes another way. To use it again, add it as a new phone.
The Settings tab changes the phone from your desk, and it picks the change up within a second or two:
- Name
- What you call it here and in its log.
- Texts
- Off keeps it connected and manageable but gives it nothing to send. Replies are still passed on.
- SIM to send from
- For a phone with two SIMs. The list is the SIMs it last reported.
- Seconds between texts
- A pause after each text, so the SIM doesn't text like a machine. 3 is a good start; raise it if your network ever complains.
- Install new versions automatically
- On by default. See below.
The Requests tab lists everything the phone has been asked to do, who asked, and what it answered.
The activity log
Every phone keeps a plain-English record of what it does — each text sent or failed, each reply, being unplugged and plugged back in, settings changes, updates, losing and finding the connection — and the portal shows the same list on its Activity tab, next to what staff did to it (with their names). Search it, or export it to Excel or CSV. Phone numbers are part-hidden in it, on the phone and in the portal. The phone's own screen shows it too, under Activity.
Updates
Heartisan Agent updates without Google Play. When a new version comes out, a phone with Install new versions automatically on downloads it from Heartisan, checks it's genuine, and installs it itself — usually within ten minutes, with nothing to tap. Its log says when it did.
To update by hand, open the phone and press Update, or use Update all phones at the top of the page. A phone that's off gets the update when it next connects.
The very first update usually needs one tap on the phone: Android asks whether Heartisan Agent may update itself, through a notification, Tap to finish updating (or on screen, if the app is open). After that Android lets it update by itself. Google Play Protect can also ask to scan a new version it hasn't seen (App scan recommended); press Scan app. Either way the phone's log and the portal's Requests tab say the update is waiting for someone, so you know to look.
If something isn't right
- The phone shows as offline
- Is it on, and online? Open Heartisan Agent on it: the top card says what's wrong, and it keeps trying by itself. A phone with battery saving still on is the usual cause — see Step 2.
- Texts fail with "the network refused it"
- Usually the plan: no credit, or texts aren't included. Send a text from the phone yourself to check. If the network has blocked the SIM for sending too much, raise Seconds between texts and keep broadcasts on your paid account.
- Texts wait and then go through Twilio
- The phone didn't collect them in time. Check it's connected, that Texts is on in its settings, and that the provider in Settings is Your own SIM.
- "Can't install its own updates"
- On the phone, open Heartisan Agent and press Allow next to it.
- Android says "Restricted setting" when you allow texts
- Newer Android versions hold back some permissions for apps installed outside Google Play. Open Settings → Apps → Heartisan Agent, press the ⋮ menu at the top, choose Allow restricted settings, then go back to the app and press Allow again.
- Moving to a new phone
- Add the new one, check it sends a test text, then Disconnect the old one.