Interactive cards hangout chat Api - google-api

I'm using interactive card to send a message async to hangout chat API, and I used onClick.action but, when I do the action and click the button, I receive this error:
CARD_CLICKED_ERROR:
Not that I handled card_click event type by adding actionResponse to a NEW_MESSAGE in reply message.

Related

Messageback like feature of Adaptive Card in Slack BlockKit

I am trying to implement messageBack feature of Adaptive Card in Slack Builder Kit where on clicking of a button I can show a default response of the bot before the response comes from the API. This could be implemented in Adaptive Card using messageBack. Is there a way to do similar thing in Slack Builder Kit template.
On clicking the button, I want to show 'Thank you for clicking' and then I want to show the response which comes from the API.
When the button is clicked, you can update the message that you sent with "Thank you for clicking" using the chat.update method. After that, you could update it once more to show the response from the API or just send another message via chat.postMessage.
Alternatively, you could send an ephemeral message with the text "Thank you for clicking" using the chat.postEphemeral method, which would only show up for the user that clicked the button and then send a regular message with the API contents in a later message.

Webex AttachementActionData usage

How is this class used? If there is a submit button using Action.Submit on an adaptive card, how does the Microsoft Bot get this message?
So this question doesn't get flagged as too generic, there is a Webex adapter connected to a Microsoft bot using this exact demo.
https://learn.microsoft.com/en-us/azure/bot-service/bot-service-adapter-connect-webex?view=azure-bot-service-4.0
The OnMessageActivityAsync message gets the message from the bot, for example, if the user types "Hello", and the bot responds back with an adaptive card that has the action "Action.Submit" that will give the user a card with a submit button. Now, if the user clicks "submit", Webex should send something back to the bot. I don't think it's a message, because I never receive a message. Webex has, on it's side of documentation, a webhook with ActionAttachments. But after creating this webhook and clicking submit, what is the bot supposed to receive?
The answer to this was to change the Webex access token from the auto-generated token to the bot's access token. After doing this, the Action Attachment was working and the bot received the Event Activity.

How to send message (card and notification) to Teams Bot from my API?

How to send message (card and notification, and any different actions) to my Teams Bot from my API (Stand-alone application)?
I can send "Activity" to chat using
connectorClient.Conversations.SendToConversationAsync(conversationId, messageActivity); But it's just a message and my Bot doesn't "hear" the message.
I need to send notification or card to specific conversation (specific user that installed my Teams APP and loged in to our service). I use "OAuthPrompt" for authorizing.
Then ... The card should be displayed in chat and user can react on it or ignore.
Card should be interractive and identified by object Id (I need to send the data to Stand-alone application back by object Id if user adds a note)...
Something like the following
PS.: As I wrote ... I send "Activity" using SendToConversationAsync ...Do you know how to handle/catch the message on bot side?

How to add button for "Send Transcript" to Directline WebChat

I would like customers to be able to click a button to send themselves a transcript at any point in the conversation. This button should essentially send a message to the bot which would initiate an “email transcript" dialog to prompt for their email and send the transcript. I was able to add a button to the directline webchat client (in my title bar) but I can't figure out how to have it create an activity for the bot. I have a custom store that sends an "inactive" activity but I wasn't able to use this same method to make the button send an activity. Can this be achieved? Or is there another way for customers to get a copy of their transcript?
I have achieved the actual transcript retrieval and emailing in code, initiates by a LUIS intent, I just want to provide an intuitive "always there" option to do this.
The WebChat offers a simple sample that shows you how to send activities programmatically to the bot. In this sample they are creating a separate button with an Event Listener, which will sent your message as a message activity.
If you would like to sent it as an event in the background, you could have a look at this sample, which you could combine with the event listener of the first example.
How to send a message programmatically
How to send welcome event
Note: you need to use the JavaScript WebChat, it is not possible to add this functionality to the iFrame version of the Bot Service.

Send messages to bot users in microsoft teams via api

I have an use case where i have to trigger notifications with card, message and url to bot users when an event has occured at backend. Is there a way to send message to bot users via api

Resources