Apps
Teams Bot
12 min
learn how to connect wolt to engini getting started with teams bot prerequisites a teams account connecting engini to teams bot enter your engini account at https //engini io/ navigate to connections page by clicking on the connections on the left side bar or by clicking https //app engini io/connections click on the “new integration” option located at the top bar choose “teams bot” option from available applications enter the following details in the “add connection” form connection name choose a significant name teams bot id insert the unique id of you account teams bot key insert the unique key that you retrieved from you account sign in with microsoft save settings when you finish click save settings triggers adaptive card button click triggered when a user clicks a button inside an adaptive card sent by the teams bot it allows the bot to process the action and respond accordingly button this field defines the specific button from the adaptive card that will trigger the action when it is clicked by the user command received this trigger fires when a user sends a command to your teams bot (usually starting with / or a short keyword) command name this field defines which command should activate the workflow help message received triggered when the user asks for help (for example by typing “help”) the bot can then return guidance or instructions on how to use it message received message received triggers the workflow whenever a user sends any message to the teams bot, enabling free text and conversational interactions actions post reply action post reply is a bot action that sends a response back to the user after an action is performed message choose the text you want from the bot to sends back to the user add attachments attachments allow the bot to include rich content such as cards, images, or files in its reply, in addition to plain text choose from the drop down the attachment type you want to send (for example card, file, image) click on the empty field to the right to open the tooltip with all available options and properties you can populate the attachment in one of the following ways (depending on the attachment type) static value – a fixed value (such as text, url, or json) property value from a previous activity – select a file, card, or content returned earlier in the workflow expression – build the attachment dynamically using https //app archbee com/docs/ixqqblwfxopjg0nave78y/o3kkbgi5xnqf yvnuqkcv , previous activity properties, and/or static values repeat these steps for each attachment you want to include in the reply note it works only with a teams bot trigger , because the trigger identifies the user and provides the azure user id needed to know who to reply to send adaptive card sends an adaptive card to the teams chat adaptive cards allow rich interactive content such as buttons, forms, and structured information message – defines the text message that will accompany the adaptive card when it is sent to the teams chat adaptive card builder – defines the adaptive card content and structure (such as layout, text, buttons, and inputs) that will be sent to the user add field by clicking the “add field” button, you can choose how to fill in the various fields in the record you are creating you can add one field to the activity or more fields to the activity definitions, up to the number of fields you have in the selected object the fields vary depending on the selected object choose from the drop down the field you want to fill click on the empty field to the right of the dropdown to see a tooltip with all the available options you can use to fill the field you can populate the field in one of the following options static value – number / string when using strings, you need to surround them with single quotes (‘) property value from a previous activity (using the tooltip that opens when clicking on the field) expression – using https //app archbee com/docs/ixqqblwfxopjg0nave78y/o3kkbgi5xnqf yvnuqkcv and/or previous activity properties and/or static values (using the tooltip that opens when clicking on the field) repeat steps 1 3 for all the fields you want to populate send teams message send teams message sends a message (with optional attachments) to a teams chat, channel, or directly to a specific user if a user id is provided message choose the text you want from the bot to sends back to the user user id insert the unique user's id, the one you want to send the message add attachments attachments allow the bot to include rich content such as cards, images, or files in its reply, in addition to plain text choose from the drop down the attachment type you want to send (for example card, file, image) click on the empty field to the right to open the tooltip with all available options and properties you can populate the attachment in one of the following ways (depending on the attachment type) static value – a fixed value (such as text, url, or json) property value from a previous activity – select a file, card, or content returned earlier in the workflow expression – build the attachment dynamically using https //app archbee com/docs/ixqqblwfxopjg0nave78y/o3kkbgi5xnqf yvnuqkcv , previous activity properties, and/or static values repeat these steps for each attachment you want to include in the reply