Build a simple governance log for our AI agents. Every time an agent finishes or fails a task, Make should record the agent name, task ID, status and time in a Google Sheet. Our agents run in Sharkly.ai (disclosure: I work on it) and post results back as Jira comments.
What is the problem?
I’m not sure how to parse the incoming data reliably, or how to send failures to Slack while still logging everything.
What have you tried so far?
A Custom Webhook as the trigger.
A Router with two branches: all runs → Google Sheets “Add a Row” and status = failed → Slack.
I haven’t figured out whether to put the filter before or after the Sheets module.
Filter goes after the router. Top row always gets executed and the item is logged in the sheet. Bottom row triggers only on fails and sends a slack message.
Put the filter on the route, not before Sheets. Use a Router with one route with no filter going to Add a Row, so everything gets logged, and a second route filtered on status equals failed going to Slack. Run the webhook once with a sample payload so Make learns the structure, then map the fields from there.
Thanks, both explanations make sense. I’d also make sure the webhook payload is normalized before the router, so the status field has a consistent value such as completed or failed.
Then the structure would be:
Custom Webhook receives the event.
Parse or normalize the payload if needed.
Router splits into two routes:
Logging route: no filter → Google Sheets “Add a Row” for every event.
Failure alert route: filter status = failed → Slack notification.
That way, failed tasks are still recorded in the sheet before the alert route is evaluated. I’d also test with both a successful and a failed sample payload to confirm the field mapping and filter behavior.
Since the agents run in Sharkly.ai and report back through Jira comments, I’d keep the governance log focused on the structured event payload rather than trying to parse the Jira comment text whenever possible.
The router answer above is the right structure. A few additions that make the sheet hold up as a governance log rather than just a list:
Add a run ID and dedupe on it. Webhooks can be retried, so include the agent’s task/run ID in the payload and use Search Rows first (or a Data Store keyed on run ID) before Add a Row. Otherwise a retry shows up as two runs.
Log the time the agent reported, plus the time Make received it. Two columns: agent_finished_at from the payload and {{now}} as logged_at. When something looks off later, the gap tells you whether the delay was in the agent or the pipeline.
Store a short version of the input and output (first 200–300 characters, or a link to the full result) and the model/version if the agent sends it. “Status = success” on its own doesn’t show what the agent did, and that’s usually what someone asks for in a review.
Catch Make’s own failures too. Add an error handler on the Sheets module (Resume or Break with retries). If the Sheets write fails, the run is silently missing from your log, which is the worst outcome for governance.
Set the webhook’s data structure explicitly (Redetermine once with a real sample, or define it in the webhook settings) so a missing field from the agent doesn’t shift columns.
If the volume grows, Sheets gets slow past a few tens of thousands of rows. At that point, the same scenario can write to a Data Store or a database, and keep the Sheet as a daily summary.
I’m adding AI agents to a Jira-like workflow. An AI agent (I use Sharkly.ai, disclosure: I work on it) completes coding tickets and writes its result back as a Jira comment. I want Make to notify the right reviewer on Slack whenever the agent posts a result, so nobody has to watch the board.
What is the problem?
I’m not sure which trigger to use to catch new comments, and I don’t know how to filter them so that only the agent’s comments trigger a Slack message. Comments from humans should be ignored.
What have you tried so far?
Started a scenario with Jira → Watch Issues, but it seems to trigger on issue changes rather than on new comments specifically.
Thinking about using a Custom Webhook with a Jira webhook on “comment created” instead.
Planning a Router with a filter on the comment author (the agent’s account), followed by Slack → Create a Message.
Is the webhook approach better than Watch Issues here? And what’s the cleanest way to filter by comment author?
No need for the router and filters, you can have a switch function instead that switches the Jira user to their slack channel id, that you then use in the slack module.
I’d lean toward the comment-created webhook here. It gives you a much more specific event than just watching general issue updates
Filter on the agent’s Jira account ID instead of the display name, then use the comment ID as a dedupe key before sending the Slack notification. With a persistent dedupe check in place, webhook retries are less likely to send the reviewer the same message twice
+1 to the comment-created webhook and filtering on the agent’s account ID. A couple of practical details:
In Jira, create the webhook (Settings → System → WebHooks) for the comment_created event only, and add a JQL filter like project = ABC so you’re not receiving every comment in the instance.
The payload has comment.author.accountId. Filter on that rather than the display name, since names can change and two users can share one.
For routing to Slack: if you only have a handful of reviewers, a switch() from the issue’s assignee/reporter accountId to a Slack user ID works fine, as suggested. If the list changes often, keep the mapping in a Data Store so you can edit it without touching the scenario.
To avoid double notifications on webhook retries, store comment.id in a Data Store and check it first.
On the “Make or dedicated tool” question: for notify the right person when the agent posts, Make is plenty. It’s a thin event → filter → message flow. A dedicated tool starts to make sense when you need things Make doesn’t track well: approvals with an audit trail, SLA timers, or reassigning work when the agent’s output is rejected.
I’d use the jira comment-created webhook rather than Watch Issues, since you only care about new comments. then filter by the comment author’s account ID or a dedicated bot username before sending anything to slack. One thing to watch for is, make sure you’re checking the author of the comment itself, not the issue’s assignee or the user who last updated the ticket. I’d also add the issue link and comment text to the slack message, and handle duplicate webhook events to avoid notifying reviewers twice
choosing between instant webhook triggers and scheduled polling intervals usually comes down to cost and rate limit tolerances. webhooks give you immediate execution for time-sensitive customer flows, while scheduled fifteen minute runs allow you to bundle records and stay well within api consumption budgets.
if your downstream services charge per webhook invocation, polling batches of pending records on a steady schedule often saves significant operational spend.
Exactly. I’d choose based on how quickly the notification needs to arrive and how Make operations are being consumed.
For Jira comment notifications, I’d lean toward webhooks because reviewers usually need to know as soon as the AI agent finishes. If a 15-minute delay is acceptable, scheduled polling can be simpler and may reduce execution overhead in some setups. the important detail is that polling should track which comments have already been processed. Otherwise, the same pending comments could trigger duplicate Slack messages on every run
I want to build a reliable automation that improves productivity for enterprise teams using AI agents. The goal is to track agent task outcomes in Google Sheets and send Slack notifications whenever an agent fails a task.
Our agents run in Sharkly.ai (disclosure: I work on it) and can post their results back to Jira.
What is the problem?
As teams use more AI agents, it becomes harder to maintain visibility into task ownership, execution status, and failures.
I want every task event to be logged, whether it succeeds or fails, while ensuring that failed tasks trigger Slack alerts. I’m also looking for a reliable way to parse incoming webhook payloads and handle missing or inconsistent fields.
What have you tried so far?
Created a Custom Webhook to receive agent task events.
Added a Router with two routes:
Route 1: Send every event to Google Sheets using “Add a Row”.
Route 2: Filter events where status = failed and send a Slack notification.
Started mapping the agent name, task ID, status, and timestamp from the webhook payload.
I’m unsure whether I should normalize the payload before the Router and how best to handle malformed events without losing the original task record.
Create public scenario page
I haven’t created a public scenario page yet. I’d appreciate guidance on the cleanest scenario structure before sharing a reproducible version.
Hi Herve, yes, normalize before the Router. It makes everything after it simpler. Here’s the structure I’d use:
Webhook → Set multiple variables (right after the webhook)
Clean every field once, with a default when it’s missing:
agent = ifempty(agent_name; “unknown”)
task_id = ifempty(task_id; “missing”)
status = lower(trim(ifempty(status; “unknown”)))
time = ifempty(timestamp; now)
lower() matters: “Failed”, “FAILED” and “failed” all match the same filter. After this, the routes only use these variables, never the raw webhook fields.
Keep the original payload
Turn on JSON pass-through in the webhook’s advanced settings, then add a Parse JSON module. Save the raw text in a “raw” column in the sheet. If a field was wrong, you can always go back to what the agent actually sent.
Router with 3 routes
Route 1: every event → Google Sheets (Add a Row), including the raw column
Route 2: status = failed → Slack alert
Route 3 (fallback route): task_id = missing, or status not in success/failed → a row marked “invalid” + a message to a separate Slack channel, so malformed events are seen without spamming the main alerts
Error handling
On the Google Sheets module: add an error handler with Break, so a temporary Google error is retried instead of losing the row
In scenario settings, turn on “Allow storing of incomplete executions”
On the Slack module: Ignore, so a Slack problem never blocks the logging
With this, every event is logged at least once with its raw version, failures alert you, and bad payloads land in their own place instead of breaking the scenario.
connecting enterprise agents with automation scenarios gets messy when every tool requires a custom webhook payload.
for streamlining our content pipelines, routing multi-channel drafts and asset previews through blotato lets the agent pass structured json without handling platform-specific api nuances.
how are you managing authentication across different client toolsets?
Put a filter on the Slack route so it only runs when status equals failed, and leave the Sheets route unfiltered so everything gets logged. For missing fields, wrap values in ifempty() so the row still writes. A third fallback route for unknown statuses stops odd payloads getting silently dropped.
I would normalize the payload once before the Router, log every event to Sheets, and keep failure alerts separate from malformed-payload alerts. One extra safeguard: use a stable event ID to deduplicate retries, otherwise “log everything” can quickly become duplicate rows when webhooks are redelivered. For authentication across client toolsets, I would keep credentials in each platform’s managed connections and use a consistent credential strategy per client, rather than passing tokens through payloads or hardcoding them in scenarios
Good call on the event ID. Redelivered webhooks will double up rows otherwise, so a lookup on the ID before the Sheets write (or a data store check) is a solid way to catch them. Agree on keeping credentials in managed connections too.