No record of what the AI did
Prompts, responses and tool calls are not logged, or sit in a vendor console nobody exports. When a customer complains or an auditor asks, nobody can reconstruct what the agent saw, said or changed.
AI monitoring and governance is the ongoing work of watching what your AI assistants, agents and automations actually do once they are live: logging every action, catching security incidents and misuse, measuring whether outputs stay accurate, and proving that each system still runs inside the policies your organization set. Twopir Consulting puts those monitoring mechanisms, governance processes and security controls in place across Salesforce Agentforce, HubSpot AI and the models and integrations connected to them. Performance, security and governance, run as one operating model.
Trusted by 500+ organizations: growing, mid-market and enterprise teams whose CRM, integration and AI systems Twopir Consulting designs, builds and keeps under control.




Monitoring and Governance Across
A security review approves an AI system at one moment. After that the model is updated, the prompts are edited, new data reaches it, users find uses nobody planned for and attackers try their luck. These are the six gaps we find most often in AI that is already live.
Prompts, responses and tool calls are not logged, or sit in a vendor console nobody exports. When a customer complains or an auditor asks, nobody can reconstruct what the agent saw, said or changed.
Answers that were accurate at launch degrade as source data, prompts and the underlying model change. Without a baseline and scheduled evaluations, the first signal is a complaint, not a metric.
A prompt injection hidden in an email, a user probing for the system prompt, or an agent suddenly reading records it never touched before all look like normal usage unless someone has defined what abnormal means.
The acceptable-use policy says sensitive data stays out of prompts and high-impact actions need approval. Nothing in the systems enforces it, and nothing reports when it is broken.
A model version upgrade, a rewritten agent instruction or a new connected action goes straight to production. The approved system and the running system quietly stop being the same thing.
When an agent emails the wrong customers or exposes data, nobody knows who decides, how to switch it off, what to tell whom, or how to put the records back. The response is improvised while the damage continues.
AI monitoring and governance is the continuous oversight of AI systems in production: recording what they do, measuring how well they do it, detecting misuse and attacks, and enforcing the policies and approvals that decide what they are allowed to do. It applies to generative AI assistants, autonomous agents and AI-driven automation alike, and to every business application those systems can read from or act on.
It is the operating half of enterprise AI governance. Our AI governance and security work, and for Salesforce agents our Agentforce governance and security service, design the controls before launch: identities, permissions, data protection and approval gates. This page covers what keeps those controls true afterwards: activity tracking and audit logging, AI agent monitoring, security alerts, governance reporting, incident response and periodic reviews. Controls designed once and never monitored decay as quickly as the systems around them change.
Three parties share the work, and it helps to keep them apart. The platforms (Salesforce, HubSpot, OpenAI, Anthropic, Microsoft and AWS) provide the native logs, guardrails, admin controls and usage data. Twopir Consulting configures those capabilities, connects them, fills the gaps between them and builds the processes that act on what they report. Your organization owns the risk decisions: which uses are acceptable, who approves what, and when a system is switched off.
They share data, and a single incident often touches all three, but they answer different questions, watch different signals and report to different people. Merging them is how an accurate agent gets breached, or a secure one quietly gives wrong answers for a quarter.
| AI performance monitoring | AI security monitoring | AI governance | |
|---|---|---|---|
| The question it answers | Is the AI still doing its job well? | Is anyone misusing or attacking it, or is it leaking data? | Is it doing only what the organization has approved, and can we prove it? |
| What it watches | Accuracy against test sets, groundedness, task completion, escalation and deflection rates, latency, errors and cost per interaction. | Prompt injection attempts, jailbreaks, sensitive data in prompts and outputs, unusual data access, abnormal tool calls and usage spikes. | The AI inventory, policy exceptions, approval decisions, risk assessments, change records and review completion. |
| Typical owner | The product or business owner of the AI use case, with the platform team. | Security operations or IT security. | A risk, compliance or AI governance lead, accountable to leadership. |
| What triggers action | A metric crossing a threshold, or an evaluation score falling after a change. | An alert on a detection rule, a guardrail intervention pattern or an anomaly. | A policy breach, an overdue review, an unapproved change or a new high-risk use case. |
| Cadence | Continuous metrics, plus scheduled evaluation runs and a run before every change. | Near real time, with alert triage and incident response. | Monthly or quarterly reporting, and periodic reviews of each system. |
| Framework anchor | NIST AI RMF Measure | OWASP Top 10 for LLM Applications | NIST AI RMF Govern, ISO/IEC 42001 |
We do not invent a governance framework for you. We align monitoring and governance to the NIST AI Risk Management Framework, use ISO/IEC 42001 as the management-system structure where you adopt it, and use OWASP GenAI security guidance for the application-level risks.
| NIST AI RMF function | What it asks for | What we put in place |
|---|---|---|
| Govern | A culture, policies, roles and accountability for AI risk across the organization. It is cross-cutting: it informs the other three functions. | An AI inventory with a named owner per system, an acceptable-use and data policy mapped to technical controls, approval rules for high-impact actions, and a governance reporting cadence. |
| Map | The context of each AI system: its purpose, users, data, connected systems and the risks that follow from them. | A system-by-system map of what each assistant or agent can read and do across Salesforce, HubSpot and connected applications, and an AI risk assessment that sets what has to be monitored. |
| Measure | Methods and metrics to analyze, assess, benchmark and monitor AI risks and trustworthiness over time. | Audit logging, performance and accuracy metrics, evaluation test sets, security detections and the dashboards that track them against agreed thresholds. |
| Manage | Prioritizing and acting on measured risks, including response to and recovery from incidents, and ongoing monitoring of the risks that remain. | Alert routing and triage, the AI incident runbook, kill switches and rollback, change management for models and prompts, and periodic security reviews. |
ISO/IEC 42001:2023 is the international standard for an Artificial Intelligence Management System: requirements for establishing, implementing, maintaining and continually improving how an organization governs AI, using the Plan-Do-Check-Act cycle. Where you are adopting it, we shape the monitoring evidence, review records and change logs so they serve as management-system records rather than a separate pile of paperwork.
Monitoring and periodic review are the Check in Plan-Do-Check-Act. That is the part we make run.
The OWASP Top 10 for LLM Applications names the risks specific to applications built on large language models, from prompt injection to excessive agency. We use it as the checklist for what AI security monitoring has to detect and which controls each detection backs up.
The table further down maps each risk to the signal we monitor and the control that answers it.
Nine workstreams, scoped to the AI you actually run. A single Agentforce service agent needs a few of them in depth; an estate of agents, copilots and model APIs across several systems needs all nine, connected.
An enterprise AI governance framework your teams can operate, with each policy tied to a control that enforces it and a report that shows whether it held.
A durable record of who used which AI, what it was asked, what it returned and what it changed, kept where your retention and access rules apply.
Autonomous agent monitoring that shows what each agent is doing, for whom, how often, and whether its actions stay inside the scope it was approved for.
Model performance monitoring and continuous evaluation, so quality is measured against a baseline instead of judged from anecdotes.
AI security monitoring that turns guardrail events and access patterns into alerts a security team can triage, including prompt injection and suspicious activity.
A person at the gate for the actions that matter, with monitoring that shows whether approvals are real decisions or reflexive clicks.
AI incident management with a runbook written before it is needed: who decides, how the AI is stopped, how records are restored and what is learned.
Model and application change management, so every model upgrade, prompt edit and new connected action is reviewed, tested and recorded before it reaches users.
AI governance dashboards and operational reporting for each audience: daily signals for operators, trends for owners, and evidence for risk and audit.
Monitoring does not replace prevention. Each detection below sits behind a control that should stop the risk first, and tells you when that control is being tested, bypassed or quietly failing.
| OWASP risk | What we monitor | The control it backs up |
|---|---|---|
| LLM01 Prompt Injection | Guardrail and filter interventions, instruction-like text in retrieved content, and sessions that change behavior after reading an email, file or web page. | Input filtering, separation of instructions from content, and least-privilege actions. |
| LLM02 Sensitive Information Disclosure | Personal or regulated data detected in prompts and outputs, and responses drawing on records the user could not open themselves. | Masking, data classification and permission-aware retrieval. |
| LLM03 Supply Chain | Model versions, packages, connectors and third-party AI apps in use against the approved inventory. | Vendor review and an approved-component list. |
| LLM04 Data and Model Poisoning | Changes to knowledge sources, grounding data and fine-tuning sets, and sudden shifts in answer quality after them. | Controlled knowledge publishing and source ownership. |
| LLM05 Improper Output Handling | Model output passed into records, code, queries or outbound messages without validation. | Output validation and encoding before anything downstream acts on it. |
| LLM06 Excessive Agency | Agent actions outside the approved scope, bulk updates, high-impact actions without an approval record, and unused permissions. | Scoped agent identities, action limits and human approval. |
| LLM07 System Prompt Leakage | Attempts to extract instructions, and responses that echo them. | No secrets or access logic in prompts; enforcement in the platform instead. |
| LLM08 Vector and Embedding Weaknesses | Retrieval returning content from the wrong audience, tenant or permission boundary. | Separate indexes and permission filters on retrieval. |
| LLM09 Misinformation | Ungrounded answers, evaluation failures, user corrections and negative feedback trends. | Grounding, confidence thresholds and human review. |
| LLM10 Unbounded Consumption | Usage and cost spikes by user, agent or integration, and runaway loops. | Rate limits, quotas and budget alerts. |
Every platform logs something, none logs everything, and the gaps sit in different places. Monitoring starts by switching on what the platform already provides, then designing for what it does not.
Agentforce Observability reports escalation, deflection and abandoned sessions, traces sessions and tracks agent health and consumption, for Agentforce agents only. Einstein audit and feedback data records Trust Layer events such as masking and toxicity detection in Data 360, and Shield Event Monitoring watches user and agent activity. We switch these on, protect the audit data, and route alerts to owners, as in our Agentforce managed services.
HubSpot's AI settings, managed by a Super Admin, decide whether users get generative AI and Breeze Assistant, and whether AI can draw on CRM, conversation and file data. Changes to the model-training setting are written to the audit log, which records HubSpot users' actions and can be filtered and exported. We treat those settings as governance controls, review them on a schedule, and export the log so evidence outlives the default 30-day view. More on AI in HubSpot.
The Audit Logs API keeps an immutable record of administrative activity: API keys, users, projects and settings. OpenAI states it has no fixed retention and that it is separate from request and response content. So we export it into your own systems, and design prompt, response and tool-call logging inside the application that calls the model.
Anthropic's Admin API gives programmatic access to historical usage and cost data, which feeds usage monitoring and budget alerts by workspace. It needs an Admin API key and is not available on every plan, so we confirm access first. As with any model API, what was asked and answered is logged by the application that calls Claude.
Prompt Shields in Azure AI Content Safety detect user prompt attacks and document attacks, the instructions hidden in emails, files and web pages. Microsoft notes the API detects but does not itself block, and that document attack detection is off by default in Foundry, so we decide where blocking happens and route detections to security. A Task adherence API flags agent tool use that is misaligned or premature.
Amazon Bedrock Guardrails filter prompt attacks, denied topics and sensitive information, and check contextual grounding. AWS CloudTrail captures Bedrock API calls, but agent runtime calls are data events that are not logged by default, and blocked content appears in plain text in model invocation logs when those are enabled. We turn on what is needed and restrict who can read it.
Audit trails, guardrail filters, agent analytics, usage and cost data, and admin settings. These are the vendors' capabilities, documented by them, and they differ by platform, edition and plan.
We configure what you are licensed for and tell you plainly where a platform records nothing.
Retention and access rules for the logs, correlation of AI actions with record changes in Salesforce and HubSpot, thresholds and alert routing, dashboards per audience, and the governance processes that act on them.
So an incident that starts in one platform and ends in another can still be traced end to end.
AI incidents differ from ordinary outages: the system is often up and working, just doing the wrong thing. We agree the incident types, owners and first moves with you before go-live, and rehearse them.
| Incident type | First response |
|---|---|
| Data exposure | Stop the agent or action, identify which records and users were affected, preserve the logs, and bring in privacy and legal owners. |
| Successful prompt injection | Disable the affected tool or data source, review every action taken in the session, and tighten the filter or permission that let it through. |
| Unintended agent actions | Switch the agent to a safe fallback, list the changed records and messages sent, then repair records from the audit trail. |
| Accuracy regression | Roll back the model, prompt or knowledge change, route affected topics to people, and re-run the evaluation set. |
| Policy breach | Record the exception, notify the governance owner, and decide whether the use is stopped, approved or redesigned. |
| Cost or usage spike | Apply the quota, trace the user, agent or integration responsible, and check for loops or abuse. |
The scope depends on how many AI systems you run, which platforms they sit on and how much logging those platforms already provide. We size it in the assessment, before you commit to the build.
We find every AI system in use, sanctioned or not, map what each can read and do, and run an AI risk assessment against your policies and the NIST AI RMF.
DeliverableAI inventory, risk register and gap report
Owners, metrics, thresholds, detections, approval points and reporting for each system, kept separate across performance, security and governance.
DeliverableMonitoring and governance design
Native audit trails, guardrails and usage data switched on and retained, gaps filled with logging and integration, and alerts routed to the people who act on them.
DeliverableLogging, detections and alert routing live
Evaluation test sets built from real use cases, a quality and security baseline for each system, and adversarial tests of the guardrails. For Salesforce agents this builds on Agentforce testing and deployment.
DeliverableBaselines and evaluation suite
Dashboards, the incident runbook, change management and approval workflows handed to named owners, with a rehearsal of the first incident.
DeliverableRunbooks, dashboards and trained owners
Periodic security reviews, governance reports and re-evaluation after every significant change, run by your team or with ongoing support from ours.
DeliverableReview cadence and governance reports
We help growing and mid-market companies solve complex CRM, integration, and business system challenges. Most of what an AI system can do wrong is decided by exactly those systems, so monitoring it well means knowing them as well as the model.
We monitor AI as part of your CRM and revenue architecture: which identity it runs as, which objects it touches, which data flows it starts. Signals mean more when you know the system they come from.
Agentforce, its audit and feedback data and the Salesforce permission model are daily work for us, as are HubSpot's AI settings and the model platforms both connect to.
The riskiest AI behavior happens where systems meet: CRM to ERP, automation to outbound email, agents to integration middleware. Multi-system integration, ERP, automation and AI are the core of our work.
We have delivered for 500+ clients across industries and countries, so monitoring is designed around how your teams actually work, not around a policy binder.
Senior architects own the oversight design and the risk decisions; specialists build each detection, dashboard and runbook. You get documented controls your own teams can run, and ongoing Agentforce support when you want it.
AI monitoring collects and watches the signals: logs, metrics, security events and usage. AI governance sets the rules those signals are judged against and decides what happens next: which uses are approved, who owns each system, which actions need a person to approve them, and how often each system is reviewed. Monitoring without governance produces data nobody acts on; governance without monitoring produces policies nobody can prove are followed.
Performance monitoring asks whether the AI is doing its job well: accuracy, groundedness, task completion, latency, errors and cost, measured against a baseline. Security monitoring asks whether someone is misusing or attacking it, or whether it is exposing data: prompt injection attempts, sensitive data in prompts and outputs, unusual access and abnormal actions. They usually have different owners and different alert thresholds, which is why we set them up separately and connect them.
We align monitoring and governance with the NIST AI Risk Management Framework and its four functions, Govern, Map, Measure and Manage. Where an organization is working towards ISO/IEC 42001, the international standard for AI management systems, we shape the monitoring evidence and review records to serve it. For application-level risks we use the OWASP Top 10 for LLM Applications and the wider OWASP GenAI Security Project guidance.
Yes. In Salesforce we work with Agentforce Observability for agent analytics, session tracing and health, the Einstein audit and feedback data for Trust Layer events, and Shield Event Monitoring where it is licensed. In HubSpot we govern the AI settings and data-access controls and retain the audit log. Because Agentforce Observability covers only Agentforce agents, any other AI connected to your CRM is monitored through its own platform logs and the application that calls it.
Yes. Vendor guardrails reduce risk inside the model service, but they cannot see your permissions, your business rules or what an agent did to your records afterwards, and they do not decide who in your organization is accountable. Monitoring tells you when guardrails are being tested, when they let something through, and whether the AI is still doing what you approved.
Not on its own. Prompt injection is prevented, as far as it can be, by filtering inputs, separating instructions from the content an AI reads, and limiting what an agent is allowed to do. Monitoring is the second line: it detects injection attempts, flags sessions where behavior changed after the AI read untrusted content, and shows which actions were taken, so a successful attack is contained quickly instead of discovered weeks later.
ISO/IEC 42001 sets requirements for an AI management system covering your whole organization, so adopting it takes more than any single implementation. What we provide is the operational part that has to run and leave records: an AI inventory, risk assessments, monitoring, incident handling, change records and periodic reviews, organized so they serve as evidence for the standard's Plan-Do-Check-Act cycle.
A first conversation covers the assistants, agents and automations you run, the systems they reach, what is logged today and who would answer for an incident: enough to show where the oversight gaps are and what closing them would take. No obligation to proceed.
Talk to a Salesforce architect who governs AI in production