Skip to content

Webex Teams Provider

WebexTeamsProvider is a class that provides a way to notify a 3rd party service using a message.

Authentication

This provider requires authentication.

  • Bot Token: Token of the robot as the sender

Certain scopes may be required to perform specific actions or queries via the provider. Below is a summary of relevant scopes and their use cases: - send_message: The bot has permissions to send message

In workflows

This provider can not be used as "step", only can use "action".

parameter

  • room_id: Space room ID, ensure the robot is in this room
  • messgae: The content of the message to be sent can be in markdown format

Workflow Example

workflow:
  id: 49c308c7-3e4f-479a-8cab-31ef2be483ae
  name: webex team message test
  description: webex team message test
  disabled: false
  triggers:
    - type: manual
  actions:
    - name: webex_teams-action
      provider:
        type: webex_teams
        config: "{{ providers.opsman dev }}"
        with:
          room_id: 28efd3a0-40f0-11f0-bcf1-5794ab6ecb10
          message: |-
            ## Received a event from EMS2.0
            - **alert name**: {{alert.neme}}
            - **reveived time**: {{alert.lastReceived}}

How to get the room id

copy your room link, webexteams://im?space=ad875540-17d2-****-****-5fa24f959bc1, ad875540-17d2-****-****-5fa24f959bc1 is the room id.

copy-room-link