@Daniele Somma You can update the headers and change the HTTP methods from the code i.e from the composer's "show code" feature.
A composer is basically a visual tool to help create bot with the bot framework SDK under the hood to minimize effort in creating a bot. If you are looking to add an advanced functionality to call HTTP methods you can first create a basic bot using the composer and publish it and later update the published bot by downloading its code from azure portal and add advanced functionality with the help of the actual botframework SDK.
@Daniele Somma Thanks for the details. Yes, in this case it does not look like it is directly possible to set the methods on a single HTTP request object. A workaround for this scenario could be to add a check like a if/else or switch to validate your dialog response and then use the appropriate HTTP object which set the required headers and methods.
I would also encourage to post your query on the botframework composer repo for any guidance from the composer team which could make it simpler. Thanks!!
Hi @romungi-MSFT ,
thanks for your reply.
Yes, at the moment I'm following this solution for the "method" field, but it's not efficient because I need to use one "switch" object and five "HTTP request" objects to cover all values. And more important, don't resolve the point to dynamically set the header field.
Ok, I'll open a request over GitHub.
Thanks a lot for your support
Daniele
Referencing the feature request created from this discussion on the bot composer repo.
Sign in to comment