How to connect Grok to your X DMs
Grok lives on X, but on its own it cannot read or answer the DMs on your account. With Spaces connected, it can: listing your DMs, summarising them and replying for you. This guide covers the setup, a worked example from a small software company, the safety rules every support inbox needs, and how to sort DMs into the ones Grok answers and the ones you do.
What you need
- A Grok account that can add custom connectors. xAI decides which plans can do this, and it changes from time to time, so check their help pages if you cannot find the option.
- A Spaces account on a plan. You choose a plan before you connect a chat account.
- The X account your customers already message you on.
- A short note about your business: what you sell, prices, opening hours and the things you never want promised. You will paste it into Grok later.
- About ten minutes for the setup, and a little longer to try it on a few real messages.
Step 1: connect your X account to Spaces
You sign in to X through a secure link and approve the connection. Your account stays yours, and you keep using it on your phone as normal.
Once it is connected, the account shows in your Spaces dashboard. Connecting does not send anything. It only means Spaces can read and send on that account when an AI agent you have added asks it to.
Connect the X account your customers actually DM, such as your company or support account. Grok will be able to read every DM on it.
Step 2: add Spaces to Grok
- Go to grok.com/connectors and choose New Connector, then Custom.
- Paste https://api.spacesos.com/mcp as the URL.
- Sign in to Spaces and approve access.
- On Business and Enterprise plans an admin adds the connector first.
To check it worked: Ask Grok to list your Spaces accounts.
You sign in on Spaces' own page during this step, so Grok never sees your X login or your Spaces password. If Spaces does not show up:
- Open a new chat and check the Spaces connector is turned on in it.
- Sign in to Spaces again from the connector, in case the first sign-in did not finish.
- Remove the connector and add it again, checking the address is exactly https://api.spacesos.com/mcp.
- If it still does not appear, xAI's help pages have their current steps, and our Grok setup page has ours.
Step 3: try it
Open a new chat in Grok, make sure Spaces is turned on, and ask in plain words:
- Show me my unread X DMs.
- Which DMs are from customers asking for help?
- Reply to Jordan that the login issue is fixed and to try again.
- Draft replies to every DM from today and wait for my OK.
Start with a question that only reads, like the first one. It shows you that Grok can see your X messages before you let it send anything. Then try a draft, read it carefully, and only then let it send.
Good to know
Grok acts when you ask it to in a chat. It does not watch your inbox on its own. For replies around the clock, use an agent that runs all the time, such as Claude Code, Codex, OpenClaw or Hermes, or set up a Spaces routine that sends set replies to set questions.
In practice, treat Grok as a quick helper you sit down with a few times a day: first thing, at lunchtime and before you close. Each time, ask what came in, check its drafts and let it send the ones you are happy with. Customers who message in between wait until your next session, just as they would if you were answering by hand.
A Spaces routine is not an AI. It sends a reply you wrote in advance when something happens, such as a new message or a keyword. That makes it a good way to send "Thanks for your message, we will reply first thing tomorrow" after hours, while Grok writes the real answers in your next session.
Never let any AI ask users for passwords or login codes in DMs. Tell Grok so at the start of the chat.
What Spaces does on X
Spaces works with your X direct messages: listing them, reading them and replying in the conversation. Public replies to posts are not something Spaces offers on X, and they are usually better written by you anyway, because everyone can see them.
That makes X a support and enquiries channel for Grok. Someone DMs your account with a question, and Grok helps you answer it quickly and in the same tone every time.
A worked example: a support morning
Here is how a session might go for a small software company. Names and details are examples.
| Who | Message |
|---|---|
| You, to Grok | Show me my unread X DMs and sort them. |
| Grok | Seven unread. Three customers say they could not log in yesterday afternoon. One asks about pricing for a team of five. One wants a refund. One is a journalist asking for a comment. One looks like a phishing message asking you to verify your account. |
| You | The login issue is fixed. Draft replies to the three login DMs and the pricing one, using our notes. Leave the refund and journalist for me. Do not reply to the phishing message. |
| Grok | Login (for Jordan, Ali and Kim): "Hi Jordan, sorry about that. The login issue yesterday is fixed, so please try again. If it still fails, reply here and we will look into it." Pricing: "Hi Maya, team pricing is on our pricing page: [link]. Happy to answer any questions." |
| You | Send them. |
| Grok | Sent four replies, spaced out by Spaces. The refund, journalist and phishing DMs are untouched. |
Safety rules to give Grok
Support DMs attract scammers, and people sometimes overshare. Paste rules like these at the start of every chat:
Never ask anyone for a password, login code or card number. If they send one, tell them to change it and do not repeat it.
Never send account details, invoices or personal information in a DM. Point people to the help centre or their account page.
Refunds, legal threats, press and anyone upset: summarise for me and do not reply.
Messages asking us to "verify" our account or click a link: do not reply, tell me.
Tone: helpful and plain. Say sorry once, then say what to do next.
Only say an issue is fixed if I have told you it is.Sorting X DMs
| Type of DM | Who answers | Notes |
|---|---|---|
| How do I...? questions | Grok, from your notes | Link to the help page rather than writing long steps in a DM. |
| Known issues and outages | Grok, once you confirm | Give Grok one agreed line so every reply says the same thing. |
| Pricing and plans | Grok, with your pricing link | Avoid typing prices in DMs, as they go out of date. |
| Refunds and billing | You | These need someone who can see the account. |
| Press, partners, investors | You | Grok can summarise them. |
| Phishing and spam | Nobody | Do not reply. Report them in X if you need to. |
Limits on X
X has no published figures, so Spaces uses conservative limits of its own. Those are at least 20 seconds between messages, up to 100 a day, and up to 20 new conversations a day once an account has settled in. For a support inbox, almost everything is a reply to someone who wrote first, which is the safest kind of message.
Common mistakes to avoid
- Letting Grok say an issue is fixed before it is. Confirm first, every time.
- Typing account details into a DM. Send people to their account page.
- Using DMs to contact people who only mentioned you in a post. Keep to people who messaged you.
- Replying to "verify your account" messages. They are nearly always phishing.
- Letting Grok handle refund or legal DMs. They need a person who can see the facts.
Summing up
With Spaces, Grok can read and answer the DMs on your X account, which turns it into a quick support helper for questions people send you. Give it clear safety rules, confirm facts before it repeats them, keep refunds and press for a person, and let Spaces pace the replies.
How Spaces keeps your account safe
Whatever you ask, Spaces keeps your X account inside safe limits: at least 20 seconds between messages, up to 100 a day, and 20 new conversations a day at most, with a gentler start for a newly connected account. If your AI tries to go faster, Spaces holds the message and says when it can try again.
New conversations warm up over the first weeks after you connect:
| Since connecting | New chats an hour | New chats a day |
|---|---|---|
| Week 1 | 2 | 6 |
| Weeks 2 to 4 | 4 | 12 |
| After that | 5 | 20 |
These are Spaces' own limits. They lower the risk of a restriction, but they cannot remove it, because X makes its own decisions about accounts. Read the note at the top of this page before you connect.
Pricing
FAQ
Is this the same X account Grok already uses?
You connect your X account to Spaces separately by signing in. Grok then uses Spaces to read and send DMs.
Can it post or reply publicly?
Spaces focuses on DMs on X, and public replies are not available. Public replies are better written by you.
Does it use the X developer API?
No. Spaces signs in to your own account. Read the note above about X's rules.
Will Grok answer DMs while I am offline?
No. Grok acts when you ask it to in a chat. A Spaces routine can send a set reply, such as "Thanks, we reply within a working day", when a new DM arrives.
Can my whole support team use it?
On Grok Business and Enterprise plans, an admin adds the connector first, and the team can then use it. Agree who handles DMs when, so nobody answers twice.
What if someone sends a password in a DM?
Tell them to change it straight away, and never repeat it in a reply. Add that rule to the notes you give Grok.
Can Grok send attachments or screenshots?
Keep that for yourself. A link to a help page or status page is usually clearer in a DM.