Connecting Your Company's Repository
Organization Admins connect the company's own GitHub repository: your developers change the website, skills and chat pages there, and you look at them and publish them in Buyer24.
The Scenario
Your company has its own developers and its own GitHub organization. You'd like them to build your Buyer24 website, your company skills and your chat pages in your repository, with their own tools, while you decide in Buyer24 what customers see and when.
Connect that repository once. From then on your developers change files in it, and an Organization Admin looks at each change and presses Publish in Buyer24 (with read-and-write access, Buyer24 can also publish the website's newest version, as for a site it hosts). Merging in GitHub never changes anything customers see on its own.
For Organization Admins, where Buyer24 has turned it on. Until then the Repository tab says Not available. To ask for it, write to support@buyer24.ai.
Where it lives
Click your avatar at the bottom of the app bar on the left, choose Settings, then Organization, then the Repository tab. Only Organization Admins see it.
What you'll need
- Someone who owns your company's GitHub organization. They make the app and install it. It must be a GitHub organization: a personal account can't be connected.
- The repository, laid out in folders:
site/for the website,skills/for company skills, andchats/<chat id>/for a chat's own page. Your developers commit finished files there, not source that still needs a build. - What customers see today, already in the repository. If your website, skills or a chat page are live now, the same files must be in the repository, unchanged, before you connect. The check below tells you exactly what differs.
The steps
The tab walks you through them and always shows where you are.
1. Make your Buyer24 app on GitHub
Type your GitHub organization's name (the part after github.com/, for example acme) and click Create app on GitHub: GitHub's Create GitHub App page opens in a new tab. If someone else owns your GitHub organization, click Copy link for someone else and send it to them.
The link works for one hour. Whoever opens it sees which Buyer24 organization the app is for, then clicks Continue to GitHub and creates it there. Keep the permissions as they are: the app asks only for your repository's Contents and Metadata.
The app is your company's, in your GitHub organization. Buyer24 reaches your repository only through it.
2. Install the app
GitHub then offers to install it. Choose Only select repositories and pick the one repository Buyer24 should use. Back in Buyer24, click Check again. If you came back before installing, the tab shows Install on GitHub for this step.
3. Pick the repository and check
Type the repository's name and click Check. Nothing changes yet. Under Before you connect the tab shows:
- for the website, the skills and each chat page: live and matching, not live (so it doesn't have to match), or how many files differ;
- anything else in the way, with what to do about it;
- what your app lets Buyer24 do: Buyer24 can change files (Read and write) or Buyer24 only reads files (Read-only), with a link to change this on GitHub.
If you have no website yet, Buyer24 makes one at your customer portal's address; with no portal either, you pick the address here.
4. Connect
When the check shows nothing in the way, click Connect. The tab then shows Connected, with your repository and the mode, and a handoff under Send this to your developer: click Copy and send it. It tells your developer where each thing goes and who publishes.
If the tab says Connecting isn't open yet, Buyer24 hasn't opened connecting yet. You can still make and install the app meanwhile.
What Buyer24 saves, and where
It depends on what your app allows.
Read and write (the app's Contents permission is "Read and write", and the repository is private):
- Changes made in Buyer24 to the website (in the conversation next to the website, by a scheduled task, or from Claude through Buyer24's connection) are saved straight to your repository's default branch, as your app. There are no pull requests.
- Buyer24 saves files in
site/only, and marks each save[skip ci]. - Every save goes straight to that branch. If anything deploys from that branch when it changes, a save is live there too.
- Buyer24 doesn't save skills or chat pages, and doesn't restore or discard versions in your repository: your developers do that there. You can still publish an earlier version from Versions.
- Publishing the website works as it does for a site Buyer24 hosts.
Read-only (the app's Contents permission is "Read-only", or the repository is public): Buyer24 only reads your repository. Your developers change every file, and an Organization Admin publishes the version they looked at.
Your developers should pull before they push when the handoff says Buyer24 saves to the branch.
Looking before you publish
Open Artifacts → Website. Above the page, the bar shows what is live and what is waiting. For an Organization Admin the newest version shows below it, opened at its own test address.
Try it checks a version's files and opens that exact version at a test link. Customers don't get the link, but anyone you send it to can open it for 7 days.
Sign-in and quote forms work only on the published site. At a test address they say so, which is expected.
If a version has problems, the bar lists each file and the reason, with Copy message for your developer. Nothing live changes until you publish.
Taking write access back
Write access is yours to take back on GitHub, whenever you want:
- Stop Buyer24 saving: whoever owns your GitHub organization sets the app's Contents permission to Read-only. Buyer24's next save is refused and the tab shows read only. Publishing keeps working.
- Stop Buyer24 reading too: uninstall the app. What is live keeps working, but nothing new can be looked at or published until it is installed again.
Undo
Until something is published or taken offline after you connect, Undo on the Repository tab puts your organization back on the files Buyer24 hosted before. Changes Buyer24 saved in your repository stay there.
After that, leaving needs Buyer24: write to support@buyer24.ai.
Common questions
| What the tab says | What to do |
|---|---|
| "Buyer24 can't see that repository" | Check the name, and that the app is installed on that repository |
| "What customers see now must already be in the repository" | Commit the live files unchanged (keep their line endings), then Check again |
| "Buyer24 can't use your app any more. Set it up again." | Click Set up again and make a new app the same way |
| "Buyer24 can't reach your repository" | The app was uninstalled or lost the repository: install it again, or set it up again |
| "A new app is waiting" | Install it on your repository, then Check again. Once it works, you can delete the old app on GitHub |
| "The repository is public, so Buyer24 only reads it" | Make it private if you want Buyer24 to save changes |
| "Something was published while this ran" | Nothing changed: click Check again |
Related
- Managing Your B2B Website — publishing, versions and taking the site offline
- Using Your Own Domain — your site on your own web address
- Connecting Buyer24 to Claude — changing and publishing the site from Claude
