Microsoft Exchange · Arazzo Workflow

Microsoft Exchange Reply to Latest Message from a Sender

Version 1.0.0

Find the newest message from a given sender, read it, and send a reply.

1 workflow 1 source API 1 provider
View Spec View on GitHub CalendarCollaborationContactsEmailEnterpriseArazzoWorkflows

Provider

microsoft-exchange

Workflows

reply-to-latest-from-sender
Locate the latest message from a sender and reply to it.
Filters the mailbox to the newest message whose sender matches the supplied address, fetches it, and replies with the supplied comment.
3 steps inputs: replyComment, senderAddress outputs: messageId, replyStatus, subject
1
findLatest
List the single newest message whose from address equals the supplied sender, ordered by received date descending.
2
getMessage
Retrieve the matched message to confirm its subject and conversation before replying.
3
sendReply
Reply to the sender with the supplied comment. Graph accepts the reply for delivery and saves it in Sent Items.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Microsoft Exchange Reply to Latest Message from a Sender
  summary: Find the newest message from a given sender, read it, and send a reply.
  description: >-
    A focused conversational pattern on Microsoft Graph mail. The workflow
    searches the mailbox for the most recent message from a specified sender
    address, retrieves it to confirm the subject and conversation, and then
    sends a reply with a comment back to that sender. Each step inlines its
    request so the flow can be executed without consulting the underlying
    OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: messagesApi
  url: ../openapi/microsoft-exchange-messages-api-openapi.yml
  type: openapi
workflows:
- workflowId: reply-to-latest-from-sender
  summary: Locate the latest message from a sender and reply to it.
  description: >-
    Filters the mailbox to the newest message whose sender matches the supplied
    address, fetches it, and replies with the supplied comment.
  inputs:
    type: object
    required:
    - senderAddress
    - replyComment
    properties:
      senderAddress:
        type: string
        description: The email address of the sender to reply to.
      replyComment:
        type: string
        description: The comment text to include in the reply.
  steps:
  - stepId: findLatest
    description: >-
      List the single newest message whose from address equals the supplied
      sender, ordered by received date descending.
    operationId: listMessages
    parameters:
    - name: $filter
      in: query
      value: from/emailAddress/address eq '$inputs.senderAddress'
    - name: $orderby
      in: query
      value: receivedDateTime desc
    - name: $top
      in: query
      value: 1
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      messageId: $response.body#/value/0/id
    onSuccess:
    - name: found
      type: goto
      stepId: getMessage
      criteria:
      - context: $response.body
        condition: $.value.length > 0
        type: jsonpath
    - name: none
      type: end
      criteria:
      - context: $response.body
        condition: $.value.length == 0
        type: jsonpath
  - stepId: getMessage
    description: >-
      Retrieve the matched message to confirm its subject and conversation
      before replying.
    operationId: getMessage
    parameters:
    - name: message-id
      in: path
      value: $steps.findLatest.outputs.messageId
    - name: $select
      in: query
      value: subject,conversationId,from
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      subject: $response.body#/subject
      conversationId: $response.body#/conversationId
  - stepId: sendReply
    description: >-
      Reply to the sender with the supplied comment. Graph accepts the reply
      for delivery and saves it in Sent Items.
    operationId: replyToMessage
    parameters:
    - name: message-id
      in: path
      value: $steps.findLatest.outputs.messageId
    requestBody:
      contentType: application/json
      payload:
        comment: $inputs.replyComment
    successCriteria:
    - condition: $statusCode == 202
    outputs:
      replyStatus: $statusCode
  outputs:
    messageId: $steps.findLatest.outputs.messageId
    subject: $steps.getMessage.outputs.subject
    replyStatus: $steps.sendReply.outputs.replyStatus

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/microsoft-exchange-reply-to-latest-from-sender-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.