Log every message the AI agent sends to a Google Sheet

Each reply sent by a reply agent goes by webhook to Zapier or n8n, which logs the prospect, message and thread link in Google Sheets, giving you an audit trail of AI replies.

ReportingGoogle SheetsZapiern8nRevOpsSales leaderTeam plan
When
Sending MessageAll channels
Only if
Sent from is the reply agent
Then
Send a webhookSend the prospect, message text, labels and thread URL to Zapier or n8n, which adds a Google Sheets row

Why teams run it

Leaders can audit what autopilot says, and compliance has a record.

Set it up in Master Inbox

  1. In Master Inbox, open Settings, then Workflows, and click Add a workflow.
  2. Name it Log every message the AI agent sends to a Google Sheet.
  3. Set the trigger to Sending Message and choose All channels.
  4. Add a condition: Sent from is the reply agent.
  5. Add the action Send a webhook: Send the prospect, message text, labels and thread URL to Zapier or n8n, which adds a Google Sheets row.
  6. Save the workflow and switch it to Active.

Or create it with the API

Everything in the workflow builder is also in the Master Inbox API. This request creates the same workflow. Replace the example ids with your own label, list and campaign ids from GET /workflows/filter-fields. This workflow also uses conditions: add them under trigger_config.conditions, as shown on the conditions page.

curl -X POST https://api.masterinbox.com/api/api-webhook/v1/api/workflows/create-workflow \
  -H "Authorization: Bearer $MASTER_INBOX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Log every message the AI agent sends to a Google Sheet",
  "trigger_type": "send_message",
  "trigger_config": {
    "channel_ids": [
      "-1"
    ]
  },
  "action_configs": [
    {
      "action_type": "webhook",
      "webhook_url": "https://hooks.example.com/master-inbox",
      "webhook_payload_variables": [
        "name",
        "email",
        "company_name",
        "label_names",
        "thread_url",
        "text"
      ]
    }
  ]
}'

Full reference: workflow API guide and API docs.

Or ask Claude, ChatGPT or Grok to build it

Our workflow guide is written for AI agents to read. Give your assistant your API key and this prompt:

Read https://app.masterinbox.com/public-workflow-api.md and use my Master Inbox API key to create this workflow: "Log every message the AI agent sends to a Google Sheet". First call GET /workflows/filter-fields and look up my label, list and channel ids, then create the workflow and tell me what you set up.

Questions

Can I log human replies too?

Yes. Drop the sent from condition, or add a column for who sent it.

Does this slow the reply down?

No. The webhook fires after the message is sent.

Can I build this workflow through the API?

Yes. Send the create-workflow request shown on this page with your Master Inbox API key. The API checks the payload first and lists every problem by field if anything is off.

Which plan includes this?

This workflow works on the Team plan. Every plan has unlimited users and starts with a free 7-day POC.

Learn more

Related workflows

Browse all 177 workflows

Run this on your own inboxes

Free 7-day POC. Unlimited users on every plan.

Start your free 7-day POC