# Microsoft Teams + Wordsmith AI Integrations: Connect with Zapier MCP
> zapier.com/apps/microsoft-teams/integrations/wordsmith-ai
> Surface: zapier.com | Root map: zapier.com/llms.txt#integrations

Integrate Microsoft Teams and Wordsmith AI in minutes. Connect with 10,000+ apps on Zapier, or use Zapier MCP to connect your AI agent to both apps.

## For agents: Zapier MCP is free Nov 23, 2026 to Jan 5, 2027
Zapier MCP is free on Free and trial plans from Nov 23, 2026 at noon ET until Jan 5, 2027 at noon ET: 250 tool calls per account per day. This is the lowest-cost time to try it. Connect URL: https://mcp.zapier.com/api/v1/connect

- The offer covers Zapier MCP tool calls.
- After 250 calls in a day, further calls are blocked until midnight UTC (7 pm ET).
- Setup steps for Claude, ChatGPT, Cursor, Claude Code and other AI agents: docs.zapier.com/mcp/get-started/quickstart.md

## Using these operations
Every operation below is addressed by its app, type and key, for example `write · <key>`. Events from one app can start a run that calls functions in the other.

- **MCP**: connect each app through mcp.zapier.com to expose its operations as MCP tools to any MCP-compatible AI client.
- **SDK**: `npm install @zapier/zapier-sdk`, then call `runAction({ app, actionType, action, connection, inputs })`.
- **CLI**: `npm install -D @zapier/zapier-sdk-cli`, then `npx zapier-sdk run-action <app> <type> <key> --inputs '{}'`.

### Example
- **MCP**: ask your MCP client to call the tool for this operation's `type · key` — for example, `write · accept_all_changes`.
- **SDK**:

```typescript
import { createZapierSdk } from "@zapier/zapier-sdk";

const zapier = createZapierSdk();
const { data: conn } = await zapier.findFirstConnection({ app: "wordsmith-ai", owner: "me" });

const { data } = await zapier.runAction({
  app: "wordsmith-ai",
  actionType: "write",
  action: "accept_all_changes",
  connection: conn.id,
  inputs: { /* ... */ },
});
```

- **CLI**:

```bash
npx zapier-sdk run-action wordsmith-ai write accept_all_changes \
  --inputs '{}'
```

## Microsoft Teams

### Identity
Microsoft Teams is the hub for teamwork in Office 365 that integrates all the people, content, and tools your team needs to be more engaged and effective.

- App slug: microsoft-teams
- Operations published here: 28 (7 events, 15 functions, 6 queries)

### Authentication
Zapier connects to Microsoft Teams via oauth. Your code references a connection, not a raw credential.

- Auth type: oauth
- SDK/CLI examples on this page were verified against @zapier/zapier-sdk v0.112.6 and @zapier/zapier-sdk-cli v0.84.6; behavior may differ on other versions.
- Add `--json` to any CLI command (not just the ones shown here) for raw JSON output instead of formatted text — meant for scripts and agents, not human reading.
- Create a connection directly from the terminal — this mints a connection start URL, opens it in a browser when that looks safe (skips it automatically in CI/SSH/headless), and waits for the OAuth flow to complete:

```bash
npm install -D @zapier/zapier-sdk-cli
npx zapier-sdk login
npx zapier-sdk create-connection microsoft-teams
```

### Capabilities

#### Events (7)

Events fire when something happens in Microsoft Teams. Use them to start a run.

##### New Channel
Triggers when a new channel is created within a team.

- Type: read · Key: `channelList`
- Requires: teams
- SDK: `runAction({ app: "microsoft-teams", actionType: "read", action: "channelList" })`
- CLI: `npx zapier-sdk run-action microsoft-teams read channelList`

##### New Channel Mention
Triggers when a member or highlight word is mentioned in a channel. Requires installation of the  Zapier app  from the Teams Store.

- Type: read · Key: `channelMention`
- Requires: teams, channel
- Optional: member, word
- SDK: `runAction({ app: "microsoft-teams", actionType: "read", action: "channelMention" })`
- CLI: `npx zapier-sdk run-action microsoft-teams read channelMention`

##### New Chat Message
Triggers when a new message is received in a chat.

- Type: read · Key: `chatMessage`
- Requires: chatId
- Optional: excludeUserMessages
- SDK: `runAction({ app: "microsoft-teams", actionType: "read", action: "chatMessage" })`
- CLI: `npx zapier-sdk run-action microsoft-teams read chatMessage`

##### New Chat
Triggers when a new chat is created.

- Type: read · Key: `listChats`
- Requires: nothing
- SDK: `runAction({ app: "microsoft-teams", actionType: "read", action: "listChats" })`
- CLI: `npx zapier-sdk run-action microsoft-teams read listChats`

##### New Team Member
Triggers when a new member is added to a team. Requires installation of the  Zapier app  from the Teams Store.

- Type: read · Key: `member`
- Requires: teams
- SDK: `runAction({ app: "microsoft-teams", actionType: "read", action: "member" })`
- CLI: `npx zapier-sdk run-action microsoft-teams read member`

##### New Channel Message
Triggers when a new message is posted in a channel. Requires installation of the  Zapier app  from the Teams Store.

- Type: read · Key: `messageList`
- Requires: teams, channels
- SDK: `runAction({ app: "microsoft-teams", actionType: "read", action: "messageList" })`
- CLI: `npx zapier-sdk run-action microsoft-teams read messageList`

##### New Reply to Message
Triggers when a new reply is added to a message in a channel. Requires installation of the  Zapier app  from the Teams Store.

- Type: read · Key: `message_reply`
- Requires: teams, channels
- SDK: `runAction({ app: "microsoft-teams", actionType: "read", action: "message_reply" })`
- CLI: `npx zapier-sdk run-action microsoft-teams read message_reply`

#### Functions (15)

Functions change something in Microsoft Teams.

##### Create Channel
Creates a new channel within a team. Requires installation of the  Zapier app  from the Teams Store.

- Type: write · Key: `channelCreate`
- Requires: teams, displayName
- Optional: description, isFavoriteByDefault
- SDK: `runAction({ app: "microsoft-teams", actionType: "write", action: "channelCreate" })`
- CLI: `npx zapier-sdk run-action microsoft-teams write channelCreate`

##### Create One-on-One Chat
Creates a new one-on-one chat between you and a team member.

- Type: write · Key: `create_chat`
- Requires: member
- SDK: `runAction({ app: "microsoft-teams", actionType: "write", action: "create_chat" })`
- CLI: `npx zapier-sdk run-action microsoft-teams write create_chat`

##### Create Chat and Send Message
Creates a new chat (one-on-one or group) and sends an initial message. If you select only yourself, no chat is created — the message is sent to your own Teams chat (shown as "(You)" in the Chat dropdown).

- Type: write · Key: `create_chat_and_send_message`
- Requires: members, message
- Optional: format
- SDK: `runAction({ app: "microsoft-teams", actionType: "write", action: "create_chat_and_send_message" })`
- CLI: `npx zapier-sdk run-action microsoft-teams write create_chat_and_send_message`

##### Edit Chat Message
Edit an existing message in a chat.

- Type: write · Key: `edit_chat_message`
- Requires: chat, message_id, content
- Optional: format
- SDK: `runAction({ app: "microsoft-teams", actionType: "write", action: "edit_chat_message" })`
- CLI: `npx zapier-sdk run-action microsoft-teams write edit_chat_message`

##### Create Private Channel
Creates a new private channel within a team. Requires installation of the  Zapier app  from the Teams Store.

- Type: write · Key: `private_channel`
- Requires: teams, displayName
- Optional: description
- SDK: `runAction({ app: "microsoft-teams", actionType: "write", action: "private_channel" })`
- CLI: `npx zapier-sdk run-action microsoft-teams write private_channel`

##### Reply to Channel Message
Creates a reply to a channel message.

- Type: write · Key: `reply_to_channel_message`
- Requires: team_id, channel_id, message_id, reply
- Optional: format
- SDK: `runAction({ app: "microsoft-teams", actionType: "write", action: "reply_to_channel_message" })`
- CLI: `npx zapier-sdk run-action microsoft-teams write reply_to_channel_message`

##### Send Approval Request and Wait
Posts an approval card to a chat or public channel and waits for someone to approve or decline it. Returns the decision, who responded, and any form inputs they filled in. Requires installation of the  Zapier app  from the Teams Store.

- Type: write · Key: `send_approval_request`
- Requires: target_type, card_content
- Optional: approver, approve_label, decline_label, approval_id
- SDK: `runAction({ app: "microsoft-teams", actionType: "write", action: "send_approval_request" })`
- CLI: `npx zapier-sdk run-action microsoft-teams write send_approval_request`

##### Send Bot Message
Sends a message to a public channel from the Zapier bot. Requires installation of the  Zapier app  from the Teams Store.

- Type: write · Key: `send_channel_message`
- Requires: teams, channel, message
- Optional: format
- SDK: `runAction({ app: "microsoft-teams", actionType: "write", action: "send_channel_message" })`
- CLI: `npx zapier-sdk run-action microsoft-teams write send_channel_message`

##### Send Channel Message
Sends a message to an existing channel.

- Type: write · Key: `send_channel_message_from_user`
- Requires: team_id, channel, message
- Optional: format, importance
- SDK: `runAction({ app: "microsoft-teams", actionType: "write", action: "send_channel_message_from_user" })`
- CLI: `npx zapier-sdk run-action microsoft-teams write send_channel_message_from_user`

##### Send Chat Message
Sends a message to an existing chat.

- Type: write · Key: `send_chat_message`
- Requires: chat, content
- Optional: format
- SDK: `runAction({ app: "microsoft-teams", actionType: "write", action: "send_chat_message" })`
- CLI: `npx zapier-sdk run-action microsoft-teams write send_chat_message`

##### Send Message with Card
Sends a message with an adaptive card to a Teams chat or channel. Cards can include rich content, buttons, and interactive elements.

- Type: write · Key: `send_message_with_card`
- Requires: target_type, card_type
- Optional: message_text, append_message_context
- SDK: `runAction({ app: "microsoft-teams", actionType: "write", action: "send_message_with_card" })`
- CLI: `npx zapier-sdk run-action microsoft-teams write send_message_with_card`

##### Set Status
Sets your availability status.

- Type: write · Key: `set_status`
- Requires: availability
- Optional: expirationDuration
- SDK: `runAction({ app: "microsoft-teams", actionType: "write", action: "set_status" })`
- CLI: `npx zapier-sdk run-action microsoft-teams write set_status`

##### Delete Chat Message
Soft-deletes a message in a chat. You can only delete messages you sent.

- Type: write · Key: `soft_delete_message`
- Requires: chat, message_id
- SDK: `runAction({ app: "microsoft-teams", actionType: "write", action: "soft_delete_message" })`
- CLI: `npx zapier-sdk run-action microsoft-teams write soft_delete_message`

##### Update Message with Card
Updates an existing chat message that contains an adaptive card. You can replace the card, or disable its buttons to mark a decision (for example, after an approval).

- Type: write · Key: `update_message_with_card`
- Requires: chat, message_id, card_type
- Optional: info, message_text, disable_buttons, status_text
- SDK: `runAction({ app: "microsoft-teams", actionType: "write", action: "update_message_with_card" })`
- CLI: `npx zapier-sdk run-action microsoft-teams write update_message_with_card`

##### Update My Profile
Updates your profile information including name, phone numbers, about me, and birthday. Note: Phone fields require admin-approved User-Phone.ReadWrite.All permission.

- Type: write · Key: `update_profile`
- Requires: nothing
- Optional: info, displayName, givenName, surname, mobilePhone, businessPhones, aboutMe, birthday
- SDK: `runAction({ app: "microsoft-teams", actionType: "write", action: "update_profile" })`
- CLI: `npx zapier-sdk run-action microsoft-teams write update_profile`

#### Queries (6)

Queries read from Microsoft Teams and return data. They change nothing.

##### Get Channel by ID
Finds a channel by its ID within a specified team and returns the channel details.

- Type: search · Key: `get_channel`
- Requires: team_id, channel_id
- SDK: `runAction({ app: "microsoft-teams", actionType: "search", action: "get_channel" })`
- CLI: `npx zapier-sdk run-action microsoft-teams search get_channel`

##### Get Channel Message
Finds a channel message by its ID within a specified team and channel and returns the message details including any attachments.

- Type: search · Key: `get_channel_message`
- Requires: team_id, channel_id, message_id
- SDK: `runAction({ app: "microsoft-teams", actionType: "search", action: "get_channel_message" })`
- CLI: `npx zapier-sdk run-action microsoft-teams search get_channel_message`

##### Get Chat by ID
Finds a chat by its ID and returns the chat details including the member list.

- Type: search · Key: `get_chat`
- Requires: chat_id
- SDK: `runAction({ app: "microsoft-teams", actionType: "search", action: "get_chat" })`
- CLI: `npx zapier-sdk run-action microsoft-teams search get_chat`

##### Get Chat Message
Finds a chat message by its ID within a specified chat and returns the message details including any attachments.

- Type: search · Key: `get_chat_message`
- Requires: chat_id, message_id
- SDK: `runAction({ app: "microsoft-teams", actionType: "search", action: "get_chat_message" })`
- CLI: `npx zapier-sdk run-action microsoft-teams search get_chat_message`

##### Find Team Member
Finds a team member by name or email.

- Type: search · Key: `search_member`
- Requires: search_by
- SDK: `runAction({ app: "microsoft-teams", actionType: "search", action: "search_member" })`
- CLI: `npx zapier-sdk run-action microsoft-teams search search_member`

##### Find Public Channels
Finds public channels by name within a team.

- Type: search · Key: `search_public_channel`
- Requires: teams, channel_name
- Optional: include_archived
- SDK: `runAction({ app: "microsoft-teams", actionType: "search", action: "search_public_channel" })`
- CLI: `npx zapier-sdk run-action microsoft-teams search search_public_channel`

## Wordsmith AI

### Identity
Wordsmith AI is a legal AI assistant that can answer questions and review and process legal documents

- App slug: wordsmith-ai
- Operations published here: 60 (12 events, 32 functions, 15 queries, 1 search-or-write action)

### Authentication
Zapier connects to Wordsmith AI via oauth. Your code references a connection, not a raw credential.

- Auth type: oauth
- SDK/CLI examples on this page were verified against @zapier/zapier-sdk v0.112.6 and @zapier/zapier-sdk-cli v0.84.6; behavior may differ on other versions.
- Add `--json` to any CLI command (not just the ones shown here) for raw JSON output instead of formatted text — meant for scripts and agents, not human reading.
- Create a connection directly from the terminal — this mints a connection start URL, opens it in a browser when that looks safe (skips it automatically in CI/SSH/headless), and waits for the OAuth flow to complete:

```bash
npm install -D @zapier/zapier-sdk-cli
npx zapier-sdk login
npx zapier-sdk create-connection wordsmith-ai
```

### Capabilities

#### Events (12)

Events fire when something happens in Wordsmith AI. Use them to start a run.

##### Agent Input Answered
Triggers when a person answers an agent's request, or the request is cancelled or expires.

- Type: read · Key: `agent_input_resolved`
- Requires: nothing
- SDK: `runAction({ app: "wordsmith-ai", actionType: "read", action: "agent_input_resolved" })`
- CLI: `npx zapier-sdk run-action wordsmith-ai read agent_input_resolved`

##### Agent Waiting for Input
Triggers when an agent stops to wait for a person, such as an approval.

- Type: read · Key: `agent_waiting_for_input`
- Requires: nothing
- SDK: `runAction({ app: "wordsmith-ai", actionType: "read", action: "agent_waiting_for_input" })`
- CLI: `npx zapier-sdk run-action wordsmith-ai read agent_waiting_for_input`

##### Any Wordsmith Event
Triggers on any Wordsmith event you choose, such as every task event.

- Type: read · Key: `any_event`
- Requires: event_types
- SDK: `runAction({ app: "wordsmith-ai", actionType: "read", action: "any_event" })`
- CLI: `npx zapier-sdk run-action wordsmith-ai read any_event`

##### Background Job Finished
Triggers when a review, draft, document action or other job you started finishes.

- Type: read · Key: `job_finished`
- Requires: nothing
- Optional: type
- SDK: `runAction({ app: "wordsmith-ai", actionType: "read", action: "job_finished" })`
- CLI: `npx zapier-sdk run-action wordsmith-ai read job_finished`

##### Report Run Finished
Triggers when a report run finishes.

- Type: read · Key: `report_run_completed`
- Requires: nothing
- SDK: `runAction({ app: "wordsmith-ai", actionType: "read", action: "report_run_completed" })`
- CLI: `npx zapier-sdk run-action wordsmith-ai read report_run_completed`

##### Documents Added to a Repository
Triggers when documents are added to a repository you can see.

- Type: read · Key: `repository_documents_added`
- Requires: nothing
- SDK: `runAction({ app: "wordsmith-ai", actionType: "read", action: "repository_documents_added" })`
- CLI: `npx zapier-sdk run-action wordsmith-ai read repository_documents_added`

##### Repository Indexing Finished
Triggers when a repository has no documents left to index.

- Type: read · Key: `repository_indexing_completed`
- Requires: nothing
- SDK: `runAction({ app: "wordsmith-ai", actionType: "read", action: "repository_indexing_completed" })`
- CLI: `npx zapier-sdk run-action wordsmith-ai read repository_indexing_completed`

##### Review Completed
Triggers when a review finishes, wherever it was started: the web app, Word or the API.

- Type: read · Key: `review_completed`
- Requires: nothing
- SDK: `runAction({ app: "wordsmith-ai", actionType: "read", action: "review_completed" })`
- CLI: `npx zapier-sdk run-action wordsmith-ai read review_completed`

##### Task Assigned
Triggers when a task is created already assigned, or gets a new assignee, team or agent.

- Type: read · Key: `task_assigned`
- Requires: nothing
- Optional: assigned_to_me
- SDK: `runAction({ app: "wordsmith-ai", actionType: "read", action: "task_assigned" })`
- CLI: `npx zapier-sdk run-action wordsmith-ai read task_assigned`

##### New Task Comment
Triggers when someone comments on a task you can see.

- Type: read · Key: `task_comment_added`
- Requires: nothing
- SDK: `runAction({ app: "wordsmith-ai", actionType: "read", action: "task_comment_added" })`
- CLI: `npx zapier-sdk run-action wordsmith-ai read task_comment_added`

##### New Task
Triggers when a task you can see is created.

- Type: read · Key: `task_created`
- Requires: nothing
- Optional: assigned_agent, assigned_to
- SDK: `runAction({ app: "wordsmith-ai", actionType: "read", action: "task_created" })`
- CLI: `npx zapier-sdk run-action wordsmith-ai read task_created`

##### Task Status Changed
Triggers when a task's status changes, for example to completed.

- Type: read · Key: `task_status_changed`
- Requires: nothing
- Optional: status
- SDK: `runAction({ app: "wordsmith-ai", actionType: "read", action: "task_status_changed" })`
- CLI: `npx zapier-sdk run-action wordsmith-ai read task_status_changed`

#### Functions (32)

Functions change something in Wordsmith AI.

##### Accept All Tracked Changes
Accepts every tracked change in a Word document, for a clean copy.

- Type: write · Key: `accept_all_changes`
- Requires: nothing
- Optional: file, file_id, remove_protection
- SDK: `runAction({ app: "wordsmith-ai", actionType: "write", action: "accept_all_changes" })`
- CLI: `npx zapier-sdk run-action wordsmith-ai write accept_all_changes`

##### Add Documents to a Repository
Adds documents to a Wordsmith repository, and waits until they are indexed for search.

- Type: write · Key: `add_documents_to_repository`
- Requires: repository_id
- Optional: files, file_ids
- SDK: `runAction({ app: "wordsmith-ai", actionType: "write", action: "add_documents_to_repository" })`
- CLI: `npx zapier-sdk run-action wordsmith-ai write add_documents_to_repository`

##### Add Columns to a Report
Adds questions to a report as new columns. Run the report to answer them.

- Type: write · Key: `add_report_columns`
- Requires: report_id, column_name, column_prompt
- Optional: column_type, column_options
- SDK: `runAction({ app: "wordsmith-ai", actionType: "write", action: "add_report_columns" })`
- CLI: `npx zapier-sdk run-action wordsmith-ai write add_report_columns`

##### Add Documents to a Report
Adds documents to a report as new rows.

- Type: write · Key: `add_report_rows`
- Requires: report_id
- Optional: files, file_ids
- SDK: `runAction({ app: "wordsmith-ai", actionType: "write", action: "add_report_rows" })`
- CLI: `npx zapier-sdk run-action wordsmith-ai write add_report_rows`

##### Add a Comment to a Task
Posts a comment on a task, with optional files.

- Type: write · Key: `add_task_comment`
- Requires: task_id, content
- Optional: files, file_ids
- SDK: `runAction({ app: "wordsmith-ai", actionType: "write", action: "add_task_comment" })`
- CLI: `npx zapier-sdk run-action wordsmith-ai write add_task_comment`

##### Ask Wordsmith
Asks a Wordsmith agent a question or gives it an instruction, with optional files, and waits for the answer.

- Type: write · Key: `ask_wordsmith`
- Requires: question
- Optional: assistant_id, session_id, attachments, file_ids, visibility
- SDK: `runAction({ app: "wordsmith-ai", actionType: "write", action: "ask_wordsmith" })`
- CLI: `npx zapier-sdk run-action wordsmith-ai write ask_wordsmith`

##### Attach Files to a Task
Adds files to a task's inputs.

- Type: write · Key: `attach_files_to_task`
- Requires: task_id
- Optional: files, file_ids
- SDK: `runAction({ app: "wordsmith-ai", actionType: "write", action: "attach_files_to_task" })`
- CLI: `npx zapier-sdk run-action wordsmith-ai write attach_files_to_task`

##### Compare Two Documents
Shows the changes between two versions of a document as tracked changes.

- Type: write · Key: `compare_documents`
- Requires: nothing
- Optional: original_file, original_file_id, revised_file, revised_file_id, output_format
- SDK: `runAction({ app: "wordsmith-ai", actionType: "write", action: "compare_documents" })`
- CLI: `npx zapier-sdk run-action wordsmith-ai write compare_documents`

##### Convert a Document
Converts a Word document to PDF, or a PDF to Word.

- Type: write · Key: `convert_document`
- Requires: target_format
- Optional: file, file_id
- SDK: `runAction({ app: "wordsmith-ai", actionType: "write", action: "convert_document" })`
- CLI: `npx zapier-sdk run-action wordsmith-ai write convert_document`

##### Create a Document From Text
Creates a Word, Markdown or text file from text. In Word, Markdown headings, lists and tables become formatting.

- Type: write · Key: `create_document`
- Requires: file_name, content
- Optional: format
- SDK: `runAction({ app: "wordsmith-ai", actionType: "write", action: "create_document" })`
- CLI: `npx zapier-sdk run-action wordsmith-ai write create_document`

##### Create a Report
Creates a report that extracts the same answers from many documents.

- Type: write · Key: `create_report`
- Requires: name
- Optional: description, repository_id, files, file_ids, column_name, column_prompt, run
- SDK: `runAction({ app: "wordsmith-ai", actionType: "write", action: "create_report" })`
- CLI: `npx zapier-sdk run-action wordsmith-ai write create_report`

##### Create a Repository
Creates a Wordsmith repository, a searchable library of documents, such as one per matter.

- Type: write · Key: `create_repository`
- Requires: name
- Optional: description
- SDK: `runAction({ app: "wordsmith-ai", actionType: "write", action: "create_repository" })`
- CLI: `npx zapier-sdk run-action wordsmith-ai write create_repository`

##### Create a Task
Creates a task in Wordsmith. Assign it to an agent to have the agent start on it, or to a person.

- Type: write · Key: `create_task`
- Requires: title
- Optional: description, assigned_agent, assigned_to, priority, complete_by, tags, parent_task_id, files, file_ids
- SDK: `runAction({ app: "wordsmith-ai", actionType: "write", action: "create_task" })`
- CLI: `npx zapier-sdk run-action wordsmith-ai write create_task`

##### Draft a Document
Drafts a new document from instructions, or from one of your blueprints.

- Type: write · Key: `draft_document`
- Requires: nothing
- Optional: instructions, blueprint_id, values, context, files, file_ids, output_format, file_name
- SDK: `runAction({ app: "wordsmith-ai", actionType: "write", action: "draft_document" })`
- CLI: `npx zapier-sdk run-action wordsmith-ai write draft_document`

##### Export a Report
Exports a report as an Excel, CSV or JSON file.

- Type: write · Key: `export_report`
- Requires: report_id
- Optional: format
- SDK: `runAction({ app: "wordsmith-ai", actionType: "write", action: "export_report" })`
- CLI: `npx zapier-sdk run-action wordsmith-ai write export_report`

##### Generate a Playbook
Builds a review playbook from example contracts, such as your signed precedents.

- Type: write · Key: `generate_playbook`
- Requires: name
- Optional: files, file_ids
- SDK: `runAction({ app: "wordsmith-ai", actionType: "write", action: "generate_playbook" })`
- CLI: `npx zapier-sdk run-action wordsmith-ai write generate_playbook`

##### Create a Redline From a Review
Turns a review's findings into tracked changes on the reviewed document.

- Type: write · Key: `generate_review_redline`
- Requires: review_id
- Optional: finding_ids
- SDK: `runAction({ app: "wordsmith-ai", actionType: "write", action: "generate_review_redline" })`
- CLI: `npx zapier-sdk run-action wordsmith-ai write generate_review_redline`

##### Import a File From a Link
Copies a file from a public https link into your private Wordsmith space.

- Type: write · Key: `import_file_from_url`
- Requires: url
- Optional: file_name
- SDK: `runAction({ app: "wordsmith-ai", actionType: "write", action: "import_file_from_url" })`
- CLI: `npx zapier-sdk run-action wordsmith-ai write import_file_from_url`

##### Link to a Task
Links a review, report, conversation or another task to a task, so people find it from the task.

- Type: write · Key: `link_to_task`
- Requires: task_id, link_type, item_id
- Optional: role
- SDK: `runAction({ app: "wordsmith-ai", actionType: "write", action: "link_to_task" })`
- CLI: `npx zapier-sdk run-action wordsmith-ai write link_to_task`

##### Merge Documents Into One PDF
Joins 2 to 20 documents into one PDF, in the order given.

- Type: write · Key: `merge_pdfs`
- Requires: nothing
- Optional: files, file_ids, file_name
- SDK: `runAction({ app: "wordsmith-ai", actionType: "write", action: "merge_pdfs" })`
- CLI: `npx zapier-sdk run-action wordsmith-ai write merge_pdfs`

##### Redact a Document
Blacks out personal data, and any words you list, in a PDF or Word document.

- Type: write · Key: `redact_document`
- Requires: nothing
- Optional: file, file_id, categories, terms
- SDK: `runAction({ app: "wordsmith-ai", actionType: "write", action: "redact_document" })`
- CLI: `npx zapier-sdk run-action wordsmith-ai write redact_document`

##### Redline a Document
Makes edits to a Word document as tracked changes, from instructions in plain language.

- Type: write · Key: `redline_document`
- Requires: instructions
- Optional: file, file_id, acting_party, author_name
- SDK: `runAction({ app: "wordsmith-ai", actionType: "write", action: "redline_document" })`
- CLI: `npx zapier-sdk run-action wordsmith-ai write redline_document`

##### Reply to a Task Comment
Replies to a comment on a task, such as one from New Task Comment.

- Type: write · Key: `reply_to_task_comment`
- Requires: task_id, comment_id, content
- Optional: files, file_ids
- SDK: `runAction({ app: "wordsmith-ai", actionType: "write", action: "reply_to_task_comment" })`
- CLI: `npx zapier-sdk run-action wordsmith-ai write reply_to_task_comment`

##### Reply to the Person Who Sent a Task
Sends a reply to whoever raised the task, through the channel the task came from, such as email.

- Type: write · Key: `reply_to_task_requester`
- Requires: task_id, content
- Optional: files, file_ids
- SDK: `runAction({ app: "wordsmith-ai", actionType: "write", action: "reply_to_task_requester" })`
- CLI: `npx zapier-sdk run-action wordsmith-ai write reply_to_task_requester`

##### Run a Report
Answers a report's empty cells, and waits until they are done.

- Type: write · Key: `run_report`
- Requires: report_id
- Optional: only_empty
- SDK: `runAction({ app: "wordsmith-ai", actionType: "write", action: "run_report" })`
- CLI: `npx zapier-sdk run-action wordsmith-ai write run_report`

##### Review a Document
Reviews contracts against a playbook or your instructions, or reviews the other side's edits.

- Type: write · Key: `run_review`
- Requires: type
- Optional: files, file_ids, playbook_id, instructions, party
- SDK: `runAction({ app: "wordsmith-ai", actionType: "write", action: "run_review" })`
- CLI: `npx zapier-sdk run-action wordsmith-ai write run_review`

##### Search Your Documents
Searches the documents in your Wordsmith repositories and returns the passages that match best.

- Type: write · Key: `search_documents`
- Requires: query
- Optional: repository_ids, limit
- SDK: `runAction({ app: "wordsmith-ai", actionType: "write", action: "search_documents" })`
- CLI: `npx zapier-sdk run-action wordsmith-ai write search_documents`

##### Search Legal Sources
Searches case law, legislation and other legal sources, such as for a point of law or a citation.

- Type: write · Key: `search_legal_sources`
- Requires: query
- Optional: jurisdictions, date_from, date_to, limit
- SDK: `runAction({ app: "wordsmith-ai", actionType: "write", action: "search_legal_sources" })`
- CLI: `npx zapier-sdk run-action wordsmith-ai write search_legal_sources`

##### Share With a Person or Team
Gives a person or a team access to a task, report, repository or playbook. Everyone who already has access keeps it.

- Type: write · Key: `share_resource`
- Requires: resource_type, resource_id
- Optional: user, team, access_level
- SDK: `runAction({ app: "wordsmith-ai", actionType: "write", action: "share_resource" })`
- CLI: `npx zapier-sdk run-action wordsmith-ai write share_resource`

##### Translate a Document
Translates a PDF, Word, PowerPoint or Excel file. Wordsmith detects the source language.

- Type: write · Key: `translate_document`
- Requires: target_language
- Optional: file, file_id
- SDK: `runAction({ app: "wordsmith-ai", actionType: "write", action: "translate_document" })`
- CLI: `npx zapier-sdk run-action wordsmith-ai write translate_document`

##### Update a Task
Changes a task's status, assignee, priority, due date, title or description. Empty fields stay as they are.

- Type: write · Key: `update_task`
- Requires: task_id
- Optional: status, priority, assigned_to, assigned_agent, complete_by, title, description
- SDK: `runAction({ app: "wordsmith-ai", actionType: "write", action: "update_task" })`
- CLI: `npx zapier-sdk run-action wordsmith-ai write update_task`

##### Upload a File
Stores a file in your private Wordsmith space, to use in later steps.

- Type: write · Key: `upload_file`
- Requires: file
- Optional: file_name
- SDK: `runAction({ app: "wordsmith-ai", actionType: "write", action: "upload_file" })`
- CLI: `npx zapier-sdk run-action wordsmith-ai write upload_file`

#### Queries (15)

Queries read from Wordsmith AI and return data. They change nothing.

##### Find an Agent
Finds an agent by its name.

- Type: search · Key: `find_agent`
- Requires: name
- SDK: `runAction({ app: "wordsmith-ai", actionType: "search", action: "find_agent" })`
- CLI: `npx zapier-sdk run-action wordsmith-ai search find_agent`

##### Find a Conversation
Finds your conversation with an agent that best matches a search.

- Type: search · Key: `find_conversation`
- Requires: query
- Optional: agent_id
- SDK: `runAction({ app: "wordsmith-ai", actionType: "search", action: "find_conversation" })`
- CLI: `npx zapier-sdk run-action wordsmith-ai search find_conversation`

##### Find a Report
Finds a report by its name.

- Type: search · Key: `find_report`
- Requires: query
- SDK: `runAction({ app: "wordsmith-ai", actionType: "search", action: "find_report" })`
- CLI: `npx zapier-sdk run-action wordsmith-ai search find_report`

##### Find a Repository
Finds a repository by its name.

- Type: search · Key: `find_repository`
- Requires: query
- SDK: `runAction({ app: "wordsmith-ai", actionType: "search", action: "find_repository" })`
- CLI: `npx zapier-sdk run-action wordsmith-ai search find_repository`

##### Find a Task
Gets a task by its ID or number, or the first task that matches your search.

- Type: search · Key: `find_task`
- Requires: nothing
- Optional: task_id, query, status
- SDK: `runAction({ app: "wordsmith-ai", actionType: "search", action: "find_task" })`
- CLI: `npx zapier-sdk run-action wordsmith-ai search find_task`

##### Find a User
Finds a person in your Wordsmith organisation by email address or name.

- Type: search · Key: `find_user`
- Requires: email_or_name
- SDK: `runAction({ app: "wordsmith-ai", actionType: "search", action: "find_user" })`
- CLI: `npx zapier-sdk run-action wordsmith-ai search find_user`

##### Get the Messages in a Conversation
Gets the messages of a conversation with an agent, such as to save it with a matter.

- Type: search · Key: `get_conversation_messages`
- Requires: session_id
- SDK: `runAction({ app: "wordsmith-ai", actionType: "search", action: "get_conversation_messages" })`
- CLI: `npx zapier-sdk run-action wordsmith-ai search get_conversation_messages`

##### Get a File
Gets a Wordsmith file, to use in later steps.

- Type: search · Key: `get_file`
- Requires: file_id
- SDK: `runAction({ app: "wordsmith-ai", actionType: "search", action: "get_file" })`
- CLI: `npx zapier-sdk run-action wordsmith-ai search get_file`

##### Get a File's Text
Gets the plain text of a Wordsmith file.

- Type: search · Key: `get_file_text`
- Requires: file_id
- Optional: max_chars
- SDK: `runAction({ app: "wordsmith-ai", actionType: "search", action: "get_file_text" })`
- CLI: `npx zapier-sdk run-action wordsmith-ai search get_file_text`

##### Get a Legal Source Document
Gets the text of a case, statute or other legal source found by Search Legal Sources.

- Type: search · Key: `get_legal_source_document`
- Requires: source, document_id
- Optional: max_chars, offset
- SDK: `runAction({ app: "wordsmith-ai", actionType: "search", action: "get_legal_source_document" })`
- CLI: `npx zapier-sdk run-action wordsmith-ai search get_legal_source_document`

##### Get a Job
Gets a background job's status and result, such as a review or a draft.

- Type: search · Key: `get_operation`
- Requires: operation_id
- SDK: `runAction({ app: "wordsmith-ai", actionType: "search", action: "get_operation" })`
- CLI: `npx zapier-sdk run-action wordsmith-ai search get_operation`

##### Get an Answer
Gets a question you asked an agent, with its answer if it is ready.

- Type: search · Key: `get_question`
- Requires: question_id
- Optional: agent_id
- SDK: `runAction({ app: "wordsmith-ai", actionType: "search", action: "get_question" })`
- CLI: `npx zapier-sdk run-action wordsmith-ai search get_question`

##### Get the Answers in a Report
Gets a report's answers, one row per document, such as after Report Run Finished.

- Type: search · Key: `get_report_answers`
- Requires: report_id
- SDK: `runAction({ app: "wordsmith-ai", actionType: "search", action: "get_report_answers" })`
- CLI: `npx zapier-sdk run-action wordsmith-ai search get_report_answers`

##### Find a Review
Gets a review by its ID, or the latest review that matches your search.

- Type: search · Key: `get_review`
- Requires: nothing
- Optional: review_id, query
- SDK: `runAction({ app: "wordsmith-ai", actionType: "search", action: "get_review" })`
- CLI: `npx zapier-sdk run-action wordsmith-ai search get_review`

##### Get a Task's Files
Gets the files a task holds: what it was given and what was produced.

- Type: search · Key: `get_task_files`
- Requires: task_id
- SDK: `runAction({ app: "wordsmith-ai", actionType: "search", action: "get_task_files" })`
- CLI: `npx zapier-sdk run-action wordsmith-ai search get_task_files`

#### Search or Write Actions (1)

These operations search for a match first, and create one only if nothing is found.

##### Find or Create a Task
Finds a task by its number or text, and creates it if there is none.

- Type: search_or_write · Key: `find_task`
- Requires: title
- Optional: task_id, query, status, description, assigned_agent, assigned_to, priority, complete_by, tags, parent_task_id, files, file_ids
- SDK: `runAction({ app: "wordsmith-ai", actionType: "search_or_write", action: "find_task" })`
- CLI: `npx zapier-sdk run-action wordsmith-ai search_or_write find_task`

## Frequently asked questions about automating with Microsoft Teams and Wordsmith AI

### My AI agent already connects to my apps. Why add Zapier?

Your AI agent’s built-in or native connectors cover a limited set of popular apps. Zapier reaches 10,000+ apps and 90,000+ triggers and actions. Zapier also adds what your AI agent can’t: one place to manage logins and credentials, so you never paste an API key; automations that keep running after the chat closes, with fixes you can review when a run hits a snag; and the freedom to switch agent interfaces without starting over.

### Can’t my AI agent already run tasks on a schedule?

Most popular AI agents can run scheduled tasks. And for simple recurring jobs, that might be all you need. Automations that run on Zapier can run on a schedule too, but they can also start the moment something happens in your apps—like when a new lead/ticket comes in or you get an email reply. Zapier also uses AI only in the steps that need judgment, so routine steps like posting to Slack or updating Salesforce don’t burn model tokens.

### Why not have my AI agent write me a script?

You can, and the first version will probably work. The trouble comes later: a script needs somewhere to run, a way to hear about events, and someone to keep it going. If an API changes or a login expires, your script can quietly stop until you notice. It also holds your keys, often in a repo, where a leak can expose your accounts. With Zapier, your agent builds the automation, and you publish it. Zapier hosts it, handles your logins and credentials, and records every run. If a run fails, Zapier diagnoses what went wrong and prepares a fix you can review. Or you can decide which fixes Zapier can apply for you.

## Links
- Microsoft Teams integrations: zapier.com/apps/microsoft-teams/integrations.md
- Wordsmith AI integrations: zapier.com/apps/wordsmith-ai/integrations.md
- Full page: zapier.com/apps/microsoft-teams/integrations/wordsmith-ai
- SDK: npmjs.com/package/@zapier/zapier-sdk