• Latest:
    1. Authorize REST call in Jscript
    2. Approval Process for external users – Power Automate
    3. Power Automate – Tips and Tricks
  • +45 26 246 341 +91 22 4129 6111
  • engage@kalpavruksh.com
  • Home
  • Services
    • Product Development
    • Technology Consulting
    • Agentic AI & AI/ML Automation
  • Dynamics 365 CoE
  • Blog
  • Careers
  • Company
    • About Us
    • Contact Us
18th May, 2020
  • Category: Smart Enterprise
  • Comments: 0

Creating the Bot App

Welcome to the third blog in our blog post series on Creating smart Apps with PowerApps and Microsoft Q&A Maker. We’ve so far created the BoT Service at Build the Bot service – QnA Maker and also created a custom connector API at Build the Custom Connector API.

Let’s now create a mobile App that can query the custom API. We will use a Flexible Gallery to display the query and results from the interactions.

Launch PowerApps Studio on web or on Windows. Make sure the Studio is connected to the same environment where the custom connection has been deployed earlier.

Create a new Blank App – Phone layout.

From the ribbon menu choose View > Data sources. In the right panel choose Add data source.

Choose the PowerApps Bot connection created earlier.

Now let’s bind the content of the QnA to a collection. Create a Collection chat to hold the conversation. Use an id field to indicate whether the content is from the user or the Bot. Set the OnStart of App.

Add a Vertical Fexible Gallery from Insert option in ribbon menu. Set the Items property of the Gallery to chat. Set the Title to name field in the Collection and the Subtitle to text field. The Gallery will hold the chat conversations.

From the File > Media option, upload an image for the Bot using the Browse option.

Map the Gallery image to show either the Bot or the image of the user using the following expression:

Use the same logic to set the X position of the image. The images need to be on the extreme left or right, in my example, I set X of the image 0 and 500.

For Text controls, set the Align property to Left or Right depending on whether the content is from the Bot or the user. To adjust the length of the text fields use the same condition to adjust the Width and the X properties of the text controls.

Add a Text Input and Button below the Gallery. Set the Button OnSelect to submit information to the Bot service and update the Collection

Test the App

Here is how the final App looks like. Publish the App once your changes are done and its ready to be used by your customers to get answers to their product queries!

Need any assistance? Engage with us!

< Back to previous page

Leave a comment

Cancel reply

Your email address will not be published. Required fields are marked *

Recent posts

Authorize REST call in Jscript
18th December, 2023
Approval Process for external users – Power Automate
21st September, 2023
Power Automate – Tips and Tricks
27th June, 2023
Modern Commands and Power Fx
30th March, 2023
Plugin development – Tricks to avoid infinite loops
20th December, 2022

Contact us





    Contact Us

    Kalpavruksh Technologies Denmark A/S
    Store Kongensgade 68,
    1264 København
    +45 26 24 63 41

    Kalpavruksh Technologies USA
    29 Walter Hammond Pl,
    Waldwick NJ 07463

     

    Kalpavruksh Systems Pvt. Ltd.
    8th Floor, Technocity,
    Mahape, Navi Mumbai 400 710
    +91 22 4129 6111

    Kalpavruksh Technologies Deutschland GmbH
    Gosheimer Straße 26,
    78564 Wehingen

    Company

    • About Us
    • Blog
    • Careers
    • GDPR Compliance
    • Privacy Policy
    • Partners Privacy Policy
    • Contact us

    Microsoft Gold Partner



    Follow us

    © Copyright Kalpavruksh Technologies. 2025. All right reserved.
    Have any questions about our services, or just want to find out more about how we can help you reach your goals? Engage with us!