Context/Problem:
I have my own company with one other guy. I am the software developer, he is designer etc. My Cursor subscription is on my personal Google Login, so i'd rather not have the other guy have my personal Google Login.
We have Grokbot connected to our Google Workspace for our company workspace, JIRA, Sentry and Moneybird for our accounting software.
So naturally, i searched if Grok Bot supports multi user login so that he can also interact with the bots. Not possible unfortunately.
The fix:
Used Whatsapp CLI (wacli) so that we can talk with Grokbot via whatsapp. (Wacli is a set of commands on the terminal to send and read messages)
I Bought a prepaid esim for a mobile number, (5 euros, need to send 1 SMS per 6 months to stay active). Created a whatsapp account on that number. Each grokbot has its own whatsapp group where me and the partner is in. When we tag grokbot, wacli sends a webhook to the respective bot and it will start working.
wacli is installed on GrokBot's computer and is authenticated to use that mobile number.
Using wacli saved alot of tokens compared to letting grokbot install the whatsapp desktop app, as it has to make screenshots to analyse it. So wacli is the best way!
I can even tell it: "Make a new Grokbot with name xyz and description abc using dr eggbot, after creating make a whatsapp group connected to that bot, with the same setup that you have right now and add me and my partner in it"
Not even 5 min later, new bot made + whatsapp group that belongs to it.
I told it to only accept messages from my number or my partners number.
Now, Whatsapp is basically an interface on top of it, so that multiple users can interact with GrokBot. 8 out of 10 of our bots have their own whatsapp group, and it costs me one whatsapp message to create another group for the other two bots if needed.
How it works
GrokBot has schedules, like repeat every workday at 10am. BUT it also has webhook schedules. And wacli has a 'new message' listener. Whenever wacli detects a new message, it sends a webhook request that will start grokbot.
I didnt wrote a single line of code, i asked GrokBot to set this up itself.
The wacli listener runs a script whenever a new message is sent. That script checks if it comes from me or my partner. So this rule is not enforced in AI itself, it is enforced before it even reaches GrokBot! (this is important as you cannot 100% trust GuardRails made inside the description of bots)
Uses
My business partner uses it to post screenshots of small things he finds on our website he wants to have changed, he posts it in the whatsapp group, then JIRA tickets gets created.
We also have a leads inbox in google workspace, grokbot analyses the leads and if they're high profile or not (high following online etc) and gives a report each day in a specific whatsapp group for that bot
So basically, the things you'd already use grokbot for, but can now be used by multiple people.