Codex + Google Business
Post to Google Business Profile from Codex
Through iHatePosting, Codex can publish updates, events and offers to a Google Business Profile. Add the iHatePosting entry to Codex's config.toml and sign in with codex mcp login, then ask it for the post you want.
Setup takes about a minute. A post can hold up to 1,500 characters.
Posting to Google Business from Codex
Add iHatePosting to Codex once, connect Google Business, and then describe the post. Setup takes about a minute.
Add iHatePosting to Codex once
Add the iHatePosting entry to Codex's config.toml and sign in with codex mcp login. Then connect Google Business in iHatePosting if you have not already.
Add to the end of ~/.codex/config.toml, then run the login command.
[mcp_servers.ihateposting]
url = "https://app.ihateposting.com/mcp/oauth"
# then, in a terminal:
codex mcp login ihatepostingAsk for the Google Business post
Describe the post in plain language. Codex writes it, applies the settings and schedules it.
> Post an update to my Google Business Profile tomorrow at 9:00: we are open until 20:00 this Friday.
Codex: Done. Scheduled on Google Business.What Codex can do on Google Business
On Google Business, Codex can publish updates, events and offers to a Google Business Profile.
Updates
Post a standard update with text and, optionally, one picture.
Events
Announce an event with a title and start and end times.
Offers
Run an offer: a coupon code, the link where it is redeemed and its terms.
Call to action
Put one action button on the post, with the address it opens; Google offers Book, Order, Shop, Learn more, Sign up, Get offer and Call.
How Codex gets a post onto Google Business
You say what you want and Codex makes the calls. A typical conversation goes like this.
Find your Google Business channel
Which Google Business accounts do I have in iHatePosting?
What happens
- Codex lists your channels and finds Google Business
- It also reads the channel's rules and settings
Compose your content
Announce our open day on Saturday from 10:00 to 16:00 on Google Business with a Learn more button.
What happens
- Codex drafts the text for Google Business
- It uploads any media you mention
Schedule and publish
Yes, schedule it for tomorrow at 9:00.
What happens
- Codex schedules the post in iHatePosting
- iHatePosting publishes it to Google Business at that time
Google Business settings reference
Say the option in your own words and Codex fills in the matching field. This is every Google Business setting it can use.
| Field | Type | Required | Description |
|---|---|---|---|
| topicType | string | No | STANDARD, EVENT or OFFER |
| callToActionType | string | No | NONE, BOOK, ORDER, SHOP, LEARN_MORE, SIGN_UP, GET_OFFER or CALL |
| callToActionUrl | string | No | The address the button opens |
| eventTitle | string | No | The event's title, required when topicType is EVENT |
| eventStartDate | string | No | The event's start date, as year-month-day (today when left out) |
| eventEndDate | string | No | The event's end date, as year-month-day (today when left out) |
| eventStartTime | string | No | The event's start time, as HH:mm |
| eventEndTime | string | No | The event's end time, as HH:mm |
| offerCouponCode | string | No | The offer's coupon code |
| offerRedeemUrl | string | No | Where the offer is redeemed |
| offerTerms | string | No | The offer's terms |
Common configurations
Each case below is a request Codex understands, followed by the Google Business options it sets.
An event
Make it an event called Open day from 10:00 to 16:00 on Saturday
- Applies:
topicType: EVENT,eventTitle: Open day
An offer
Make it an offer with code SPRING10
- Applies:
topicType: OFFER,offerCouponCode: SPRING10
A booking button
Add a Book button to https://example.com/book
- Applies:
callToActionType: BOOK,callToActionUrl:https://example.com/book
What is Codex?
Codex is OpenAI's coding agent. The command line, the IDE extension and the ChatGPT desktop app all read the same config.toml, so one entry connects every one of them.
It can read a repository, write the announcement for a change and schedule it in iHatePosting.
How iHatePosting works with Codex
Once connected, iHatePosting hands Codex its tools: your channels, posts, media and each channel's settings (14 tools in all). Codex calls them while you describe what you want.
- iHatePosting MCP server (sign in): Entry in
~/.codex/config.toml, thencodex mcp login - iHatePosting MCP server (API key): Entry in
~/.codex/config.tomlthat names the variable holding your key - iHatePosting skill (command line): npx skills add
iHatePostingOrg/iHatePosting-Agent
# iHatePosting MCP server (sign in)
[mcp_servers.ihateposting]
url = "https://app.ihateposting.com/mcp/oauth"
# then, in a terminal:
codex mcp login ihatepostingGoogle Business and the other platforms Codex reaches
Ask for Google Business and other channels in a single message; every channel still applies its own settings.
Google Business requests to try in Codex
A weekly update
Post an update to my Google Business Profile tomorrow at 9:00: we are open until 20:00 this Friday.
An event
Announce our open day on Saturday from 10:00 to 16:00 on Google Business with a Learn more button.
An offer
Publish a 10 percent offer with the code SPRING10 on Google Business until Sunday.
Google Business limits and gotchas to know
A few of Google Business's rules shape how Codex writes your request, so it helps to know them.
- A post can hold up to 1,500 characters.
- A post can have text and one picture at most, and no video; it is an update, an event or an offer.
- A button is sent only with the address it opens (
callToActionUrl).
Frequently asked questions
Start free for 30 daysAdd the iHatePosting entry to Codex's config.toml and sign in with codex mcp login, connect Google Business in iHatePosting, then ask Codex for the post in plain language. It schedules the post and iHatePosting publishes it at the time you set.
A post can hold up to 1,500 characters.
Codex can set topicType, callToActionType, callToActionUrl, eventTitle, eventStartDate, eventEndDate, eventStartTime, eventEndTime, offerCouponCode, offerRedeemUrl, offerTerms. The settings reference on this page lists what each one does.
No. The first route opens an iHatePosting sign-in in your browser, and no key changes hands. The route that takes a key uses one from Settings → Agents / Dev in iHatePosting. The command line signs in with ihateposting auth:login.
Yes. Name a day and a time and iHatePosting publishes the post then, whether or not Codex is still open.