I am wondering if a card is possible to update through the skill, while the session is still on.
The use case would be, for example, streaming audio and then, after certain timestamp update the related card.
No, you can only send Cards, but they are not editable afterwards. You can neither delete them nor edit them after you sent them.
I think something like this could be done by using APL, but only on display-activated devices.
You can suggest the implementation of editable cards here.
No, it is not possible. Alexa works on a request-response model, so you can only set a new/updated card when you send out the response from your skill.
No, you cannot update the cards which are already sent. But remember the latest card will be shown first in the Alexa app. So you can send the updated card as a response to another subsequent request with a little hint like ”Please check the latest card for the updated details.”
Related
We get messages/tasks from an external PHP-server via incoming webhook in a Teams channel. They are posted in the Adaptive Card format using the 'message with attachments' method.
I would like to find a possibility to mark these messages as done.
My idea would be that the message has a button, that turns green and maybe changes the text when clicked. This has to be permanent. Also the text of the card should be hidden.
I tried to implement a button that toggles the visibility of the card, but it turns out the toggle is not persistent but gets reset every time the channel is opened.
As a workaround we are using reactions at the moment, but I would like to find a more obvious way.
Obviously an incoming webhook does not support the use of Action.Submit (as stated in the link above). So I cannot obviously update the card with this method.
I was thinking to use the Post adaptive card and await answer -method from Flow, but it cannot post an answer to a post, but only post a new card, so the context is missing, which of the posts in the channel you ant to mark as done.
A Power automate Flow could achieve this, if it could be told to alter the posted message.
I realize that it is actually a Task I want to post, not necessarily a message/card in a Teams channel. But there seems no way to post a new task directly to a Tasks tab in a Teams channel via an incoming webhook?
Has anybody an idea what technique could be used to achieve my goal?
This is possible using Actions with O365 connector card format, and is not a currently supported feature in Adaptive cards,
Ref Doc: Create and send messages - Teams | Microsoft Docs
Could you please raise an User Voice
What is a proper way to handle AdaptiveCard action on the client side using DirectLine? Should I build "value" for activity by hand?
If so, I realized that multi-select's value is handled in different way for different channels (BotFrameworkEmulator sends the values separated with commas while WebChat uses semicolons). Which format should I pick? Isn't this inconsistency a bug?
The Emulator is in a sense a form of WebChat. I don't think the inconsistency is a bug, but if you see WebChat in different places then it's likely to be different versions and may therefore have different behavior.
Fortunately your bot code is free to interpret the received values however you want it to. If your bot is likely to run on multiple channels then you may want to make your bot smart enough to account for multiple possible choice-separators. Otherwise you can just make sure your bot is looking for the right separator for the channel you want to run it on.
As far as I can tell commas are the more standard up-to-date separators, so it's probably best to go with those. But if you're making your own Direct Line client then it's ultimately up to you how you format the activities that your client sends to the bot.
I would say that the inconsistency is not a bug, it is just the way the data is sent back by different channels. Please remember, Adaptive cards are a fairly new concept of exchanging data between the user and the bot code. It is still going to take time how the values are rendered and posted by each channel to come to a common format. That being said, I would not over think this problem much.
The design pattern for the bot should always be made after fixing the channels that the bot will be published on. Once the channels are fixed then it would just be matter of coding to handle the various ways in which the post back data is sent back to the bot
I'm making a bot that sends a user a list of requests that have to be accepted or rejected so I want to disable the card or delete it or disable the submit button whenever the user accepts or rejects a request.
Is that possible? and if not, what are the other alternatives?
Thank you
As #stuartd replied:
No. Once you have sent the card it's gone. The client application renders it, and shows it to the user, and the cards are not dynamic (ie cannot contain scripts). If the user interacts with the card you will get a postback, but you cannot change the existing card, you can only send another card or message.
I'm new comer in mobile value added service field. I searched & read other company's presentation for mobile value added service with sms platform. But I can't find the right way. I don't know where to start, which platform or server should use for it. I will explain road map first. I will provide content with sms. If you wanna get the contents from me, you need to subscribe first. Then, I will sent contents to all subscribed numbers daily. Then, I will charge for content daily. Please help me which platform or server should I use?
You can use a short code for that, in which country are you in?
I want to have a mobile number validate for my site not just string validations ..what i need is to actually validate the mobile number with the same user exists..
one option i know is to send a pin to that mobile number & ask user to put that pin on form submit to validate ...so are there any ready to use services for this to use it on my website or what i have to do for this ...
Also tell if you know any other options available
You could use http://www.twilio.com/ to call the number and have the person respond (press 1 for ok, 0 for not ok) to your call.
But note that calling the number would work if the number was either a land-line or mobile. If you want to make sure that the number is mobile, then SMS is a good idea.
Twilio has an SMS api too.
you can use this service that give you web service that you can use to validate mobile number in any country http://www.data-8.co.uk/integr8/services/mobile_validation.aspx#Demo
Some push agregattors have APIs for HLR-look up, then you could know if number is right and it is active or off, etc.
If it's not super important that someone can fake their confirmation, then you could look at some of the headers received from the network operator containing the user's number: Can a mobile web application access the devices phone number?