I am using bot framework web chat and I have an adaptive card with just one input field.Is it possible to handle auto complete as user's type in the card's input field ?
Example : Input field is for city.As user type the first 3 character of city i want to provide the suggestions and users can pick from it.
I found the below link in github but its about auto complete for chat typing area not for cards.
https://github.com/Microsoft/BotFramework-WebChat/issues/476
To the best of my knowledge this is not possible today in v1.0 of the Adaptive Card specification. The cards are rendered without any control over their behavior except for the built-in actions: Submit, OpenURL, ShowCard.
Adaptive Cards are very much like HTML 2.0... if you were [un]fortunate to have lived through those days. 😄 The spec defines all the possible behaviors and the agent/host is considered compliant with a version of the spec when they implement those behaviors and no additional behaviors are supported via any kind of extensibility.
It may require a little work and some react knowledge, but you should be able to create a custom AdaptiveCard Renderer using WebChat's attachmentMiddleware. In your custom renderer, you should be able to add an input field with your autocomplete logic. For more details on how to create a custom AdaptiveCard Renderer, take a look at this WebChat Example that creates a custom GitHub Card.
Hope this helps!
Related
I want to customize webchat send input field, by adding label tag above the input field and remove the placeholder and add send text instead of icon using react.
Currently, I have tweaked using javascript(Es6)
Unfortunately, at this time, there is no built in feature of Web Chat that allows the developer to alter the send box (beyond hiding / not hiding it). If you feel strongly about this as a feature others could benefit from, I would suggest you present it as a feature request on the BotFramework-WebChat repo. You can do so here.
The method you are using (i.e. altering the DOM directly) is the correct method.
Hope of help!
I need to add a custom element/mini-app/extension to CRM Dynamics sales such that it shows globally on all pages that the user navigates to and also can navigate the users urls when certain events happen.
What options exactly do I have to satisfy the above criteria?
The screenshot below shows a sample area that I need to build the app within as an example.
Id imagine there are many use cases where customizing a global element is worthwhile, especially since custom applications may need to be built.
I understand I can use the Resources to create a SPA such as angular which is running so long as the URL stays at the SPA url. But for our use case, we are looking to allow end users to be able to navigate the CRM using the custom controls. but when something happens in a another subsystem, we need end users who are logged into the CRM to instantly view data that is important to them.
Is this technically possible?
Unfortunately this is not feasible. There are some concepts to show learning path like that. It won’t satisfy your need.
I understand what you need, like a news feed or ad rotator for rolling content but context specific flyout area which is always pinned. There is no OOB option or customization/configuration available for achieving this. You can initiate this concept in Dynamics Ideas.
Like you said there can be a HTML web resource developed & embedded in a dashboard, this is very limited for your requirement.
Edit:
I think you are looking for Channel Integration Framework which will help you to configure third party CTI apps.
In CRM V9, they have introduced a new API call for 'Panel'. This panel loads to the side of the screen, and can display content regardless of where the user moves throughout the entire application. I've played around with it a bit for my own person reasons at work, but it looks to be exactly what you're looking for.
The call is 'Xrm.Panel.loadPanel(URL/WebResource)'
https://learn.microsoft.com/en-us/dynamics365/customer-engagement/developer/clientapi/reference/xrm-panel
However, the feature is currently in development, and should only be used in production at your own risk.
Is it possible to add some code or something else to make it possible that whenever I type a hashtag followed by a number that this will be replaced by a url?
My requirement is whenever some developer mention a ticket number like #1234 in his chat post into a channel I want to make this clickable and directly opens a url like myticketsystem.com?id=1234.
If I understand correctly, you're looking to implement an auto-linking similar to how GitHub handles things like Fixes issue #xxxx? It isn't possible to implement this in Teams today, it isn't possible to inject your own logic into the composition rendering pipeline.
What you could do however is build a Compose Extension. This wouldn't replicate the GitHub experience but it would certainty make it easier to insert links to tickets into the compose editor. It could also be a more powerful tool, allowing users to search the ticketing system rather than having to know the number before writing the post.
Dears ,
I would like to know how can i make the dialog dynamic in microsoft bot framework? Now from the code samples it's all using enums to represent values , but how if the values shall be returned from a service?
I also have another question , where can I find the luis intents that are being used in the samples? and from where the word " Please select " comes from the github bot builder sample , especially the pizzabot .
I blogged about Dynamic FormFlow Forms in Bot Builder. This was written for FormFlow. I haven't figured out how to get string arrays to work with dialogs or if there might be a bug there.
The Prompts are using the defaults for properties in the PizzaOrder class. and you can change them with Prompt and Template attributes. The SandwichBot explanation in the docs covers these attributes.
I don't know if Microsoft opened the LUIS intents for PizzaBot (or if it's practical to let the general public view your original model). Maybe you can visit their Feedback site and ask them to share the JSON for the LUIS PizzaBot model. The LUIS video tutorial and docs might help if you want to create your own model and replace the LUIS model tokens with your own.
I have designed a small (403 pixels wide) informational dashboard (jQuery, HTML) and subscription app. I wish to be able for the user to install the app and place it onto their TimeLine, however I am clueless as to how to do that.
Can someone explain to me how that is achieved? I see how users can put fluffy stuff on the TimeLine (pics, links, etc.) but how to you get an actual app in there?
My app is no wider than the pics that my (potential) customers display on their Timeline.
Any help would be appreciated.
I'm afraid that your approach is wrong and you can't display an application on Facebook's Timeline per se.
Your App can post content (text, images, etc) to a user's timeline and it can also have a dedicated section (collection) on Timeline (you need to explicitly ask the user to add it after they activate your application, it's not automatic).
A prerequisite to having sections is that your App has custom actions and a custom collection (see detailed description in the later link), which can be displayed in one of the three custom collection types supported by Facebook - List, Gallery or Map.
Note that your custom collection will require a review.
Unfortunately it seems you will have to rework your application to fit the Facebook framework.