Build Notes

Connecting Salesforce and Kintone to a 'Hands-On AI' with Claude Code

Kokomu Matsuo, CEO

Connecting Salesforce and Kintone to a 'Hands-On AI' with Claude Code

Letting AI operate and update a customer's CRM — how we wire it up with Claude Code and MCP. Field notes on getting past the walls of 'doesn't remember, doesn't connect, doesn't stick.'

Say 'let AI touch the CRM' and most people picture a chatbot. But what operations actually need isn't conversation — it's records in Salesforce or Kintone being updated correctly, at the right moment. MGC's CRM Agent business owns exactly this 'hands-on' part. Here's how we use Claude Code to build it, written plainly.

First, generic chat stumbles on CRM work for three reasons. It doesn't remember (you re-explain your field definitions and rules every time), it doesn't connect (it can't actually read or write your records), and it doesn't stick (one conversation and it's over — no scheduled runs, no proactive nudges). Until you clear all three, even the smartest model stays a 'helpful advisor' and no more.

The heart of connecting is MCP (the Model Context Protocol). Claude Code can call external tool APIs as 'tools' through an MCP server. Wrap Salesforce's REST/Bulk API and SOQL, or Kintone's record REST API, as MCP servers, and the AI can perform operations like 'search opportunities' or 'append to the activity log' on a human's behalf. The key: you don't hand the AI a raw database — you hand it only the operations you've explicitly allowed.

Salesforce and Kintone differ in where the design effort goes. Salesforce centers on objects and governor limits, the OAuth Connected App, and validating in a Sandbox. With many fields and relationships, a malformed SOQL query can touch records you never intended. Kintone keeps per-app permissions and API tokens simple, but each app's schema is freeform — so the step that pays off is teaching the AI exactly what values 'status' takes in this app. For both, precision swings wildly on whether you first load the 'dictionary' (field definitions and operating rules).

The safety design comes before features. Three points specifically: (1) Least privilege — the API token or connected user you give the AI is scoped only to the objects and apps it may touch. (2) Audit logs — always record what was done to which record and when, so a human can trace it afterward. (3) Approval gates — high-impact updates like amounts or customer status are drafted by the AI and applied only after a human approves. Integrity lives in mechanisms like these.

And we never roll out company-wide on day one. What MGC always recommends is a 'one task × 2–4 weeks' small start. Get just one thing perfect first — say, transcribing meeting notes from voice and appending them to a Salesforce activity log. Run the working thing in the field for 2–4 weeks, sharpen precision through conversation, then expand to more tasks, apps, and locations.

We deliver this whole flow as MGC's AI Solutions business — consulting, development, operations, and training, end-to-end. This CRM integration proves the core of it — connecting and acting — on Salesforce and Kintone, the CRMs most used on the Japanese front line.

Finally, none of this is special. Any tool with an API can be made to let AI move its hands the same way. What makes the difference isn't the model's brilliance — it's the unglamorous work of preparing the dictionary, and the design that runs it safely. We believe that's where the value is, and we hope this record becomes the shortest path for someone taking on the same thing.

Kokomu Matsuo, CEOAll news & journal

Related reading

More from the journal

Free Consult