workflow:
  id: teams-adaptive-card-with-mentions
  name: Teams Adaptive Card With Mentions
  description: Sends Microsoft Teams notifications using Adaptive Cards with user mentions to notify specific team members.
  disabled: false
  triggers:
    - type: manual
    - filters:
        - key: source
          value: r".*"
      type: alert
  consts: {}
  owners: []
  services: []
  steps: []
  actions:
    - name: teams-action
      provider:
        config: "{{ providers.teams }}"
        type: teams
        with:
          typeCard: message
          sections: '[{"type": "TextBlock", "text": "Alert: {{alert.name}}"}, {"type": "TextBlock", "text": "Hello <at>John Doe</at>, please review this alert!"}, {"type": "TextBlock", "text": "Severity: {{alert.severity}}"}]'
          mentions: '[{"id": "john.doe@example.com", "name": "John Doe"}]'
