Exercise - Update webpages generated with Copilot

Completed

In this exercise, you'll update additional pages of your website created in the previous exercise. You'll add content to these pages using Copilot.

Update the About Us page

  1. Sign in to your Microsoft Power Pages environment.

  2. On the Home page, under Active sites, identify the Contoso Real Estate site that you previously created and then select Edit.

    Screenshot displaying the Contoso Real Estate website under the Active sites section.

  3. In the Power Pages design studio, select Pages in the left pane to open the Pages workspace.

    Screenshot displaying the Pages workspace in Power Pages design studio.

  4. Select About Us to open this page in the design studio.

  5. Delete all sections between the Header and Footer sections by selecting each section, selecting the ellipsis (...), and then selecting Delete.

  6. Under the Site Header, select Add a section > One third (left).

    This layout creates a two-column section where the left column occupies one-third of the width.

    Screenshot displaying the one-third left layout in Power Pages design studio.

  7. On the left column, select Text and change the text type from Paragraph to Heading 2.

  8. Change the text to Our Vision.

  9. Select the plus icon below the Our Vision heading and then select Text again.

  10. Clear the default text so the text box is empty, then select Copilot in the toolbar.

    In the Describe the text you need pane, enter Two paragraphs describing the vision of the Contoso Real Estate company.

    Press Enter to generate the content.

    Screenshot displaying the Copilot generated text in Power Pages design studio.

  11. Use the available options to Rewrite, adjust the Tone, or change the Length of the text until you're satisfied with the content.

    Select Add to page to insert the content. You may need to manually add a paragraph break.

  12. In the right column, select Image > Stock Images and search for office building. Select an image that you like and then select Insert.

    Screenshot displaying the Our Vision section on the About Us page.

  13. Add a new section to introduce the company team.

    • Use the One third (right) layout.
    • Set the heading to Our Team.
    • Use Copilot to generate a descriptive paragraph about the team.
    • Add a relevant image of a team.

    Screenshot displaying the Our Team section on the About Us page.

  14. Add a button below the Our Team that links to the Contact Us page.

    Screenshot displaying the Our Team section with a button to navigate to the Contact Us page.

Update the Property Listings page

  1. On the left pane under Pages and Main navigation, select Property Listings to open the Property Listings page in the design studio.

  2. Delete all sections between the Header and Footer by selecting each section, selecting the ellipsis (...), and then selecting Delete.

  3. Add a section and then select Edit background on the toolbar. Select Image > Add an image.

  4. Select Stock images and search for house, choose, and image, and then select Insert.

  5. Hover over and select the section and then select the Design icon on the toolbar.

    Screenshot displaying the Design icon in Power Pages design studio.

  6. Under the Standard tab, set the Overlay to 65%. Also set the Overlay Color to Black or another dark color. Exit the Design pane by clicking the X.

    Screenshot displaying the Design pane in Power Pages design studio.

  7. On top of the image, select Text and change the text type from Paragraph to Heading 2. Change the Text color to White or a visible color that contrasts with the image.

  8. Select the Design icon on the toolbar. Under the Typography tab, set the Font weight to Bold. Exit the Design pane.

  9. Set the Alignment to Center Align and change the text to Featured Listings.

    Screenshot displaying the Featured Listings section on the Property Listings page.

  10. Open the Copilot pane and enter Create a new section to show real estate listings, then press Enter.

    Select Keep it to add the generated section to the page.

  11. Use a combination of Copilot and the design studio toolbar to update the section to display at least three listings. The section should have a 3 Column layout.

    Note

    You'll be hardcoding the data for the Real Estate Listings. In a production scenario, this data would typically be connected to a data source such as a SharePoint list, a Dataverse table, or an external source.

    Data display would then be handled using a Custom Component. This step is beyond the scope of this module.

    To learn more, see the Used code components in Power Pages article.

  12. Each column should contain an image. Use the URL option to add the images.

    • For the first image, select Image > URL and enter this URL: https://raw.githubusercontent.com/microsoft/PowerPlatformAdvocates/main/MSLearn/AIModule/Images/property1.jpg
    • For the second image, use this URL: https://raw.githubusercontent.com/microsoft/PowerPlatformAdvocates/main/MSLearn/AIModule/Images/property2.jpg
    • For the third image, use this URL: https://raw.githubusercontent.com/microsoft/PowerPlatformAdvocates/main/MSLearn/AIModule/Images/property3.jpg

    Screenshot displaying the Real Estate Listings images on the Listing page.

  13. Each column should contain a Heading 3 text that contains the property's price.

    • For the first column, use the price $350,000.
    • For the second column, use the price $250,000.
    • For the third column, use the price $600,000.
  14. Each column should contain Small text text that contains the property's address.

    • For the first column, use the address 432 Elm Street, Riverside, CA 92501
    • For the second column, use the address 789 Maple Avenue, Lexington, KY 40502
    • For the third column, use the address 210 Pine Road, Portland, OR 97204
  15. Each column should contain a Button that navigates to the Contact Us page.

    • Button label should be Enquire Now.

    Screenshot displaying the Real Estate Listings section on the Listing page.

    You're free to customize the section as you see fit.

Setting the solution for your data

  1. You'll now start working with Dataverse tables and data. Keeping with the theme of organizing your Real Estate Solution components, you need to assign a solution for all data.

    On the left pane, select Data.

  2. On the top of the Data pane, select the gear Set a solution icon.

  3. Select the Real Estate Solution solution from the dropdown. This ensures that all tables, columns, views, and forms you create are added to the Real Estate Solution.

    Exit the Set a solution pane.

    Screenshot displaying the Set a solution pane in Power Pages design studio.

Update the Contact Us page

  1. On the left pane, select Pages.

  2. Then select Contact Us to open the Contact Us page in the design studio.

  3. Delete all sections between the Header and Footer sections by selecting each section, choosing the ellipsis (...), and selecting Delete.

  4. Use the steps from the Property Listings page to add a title banner to the Contact Us page.

    Screenshot displaying the Contact Us page with a title banner.

  5. Under that, add a section with the One third (left) layout.

  6. On the left column, select Text and change the text type from Paragraph to Heading 2.

    Change the text to We want to hear from you!.

  7. Select the plus icon below the We want to hear from you heading and then select Text again.

    Change the text to:

    Explore the world of real estate with us. Whether you're buying, selling, or investing, our expert team is here to guide you every step of the way. 
    
    Contact us today to start your real estate journey!
    
  8. On the right column of the section, select the More ellipsis and then select Form. A pop-up appears where we can create an AI-generated form.

    Screenshot displaying AI generated form pane in Power Pages design studio.

  9. In the Describe a form to create it field, enter Create a contact us form to capture user inquiries.

    Press Enter and Copilot will generate the form. A preview appears on the right.

    Screenshot displaying the Copilot generated form in Power Pages design studio.

  10. You can modify the form by entering prompts such as Move the Email field up or Remove the Subject field.

    Once you're satisfied with the form, select OK to add it to the page.

    Copilot will also create a Dataverse table to store the submitted form data.

  11. Next, configure permissions so all users can view and submit the form. Select + New permission.

    Screenshot displaying the New permission pane in Power Pages design studio.

  12. Configure the table permission:

    • Name: Contact Us Form
    • Table: Leave the preselected table as is
    • Access type: Global Access
    • Permission to: Create
    • Under Roles, select + Add roles, then choose Anonymous and Authenticated users

    Select Save to save the permission.

    On the confirmation pane that states The data displayed in your site can be seen by anyone pane, select Save again.

    Screenshot displaying the Contact Us Form permission in Power Pages design studio.

    Note

    In a previous module, you configured a flow that uses AI to analyze email content from users.

    You can configure a similar flow to analyze Contact Us form submissions and perform actions based on the data.

    This step is outside the scope of this module, but you can learn more in the Power Pages configuration documentation

Update the Services page

Use your creativity and knowledge gained thus far to update the Services page. Use a combination of Copilot and the in-product toolbar to add relevant content to the page.