Skip to content

Commit

Permalink
docs: update usage of $ instead of @, equal sign when assigning (#2872)
Browse files Browse the repository at this point in the history
Just updating 2 issues I found while following the tutorial

Co-authored-by: Andy Brown <asbrown002@gmail.com>
  • Loading branch information
sLedgem and a-b-r-o-w-n authored May 4, 2020
1 parent 3681f68 commit 711ca92
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/tutorial/tutorial-get-weather.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ Before you can get the weather forecast you need to know the desired location. Y

2. In the **Unrecognized Prompt** field, enter:

**Sorry, I do not understand '@{this.value}'. Please specify a zip code in the form 12345**
**Sorry, I do not understand '${this.value}'. Please specify a zip code in the form 12345**

3. In the **Invalid Prompt** field, enter:

**Sorry, '@{this.value}' is not valid. I'm looking for a 5 digit number as zip code. Please specify a zip code in the form 12345**
**Sorry, '${this.value}' is not valid. I'm looking for a 5 digit number as zip code. Please specify a zip code in the form 12345**

4. In the **Validation Rules** field, enter:

Expand Down Expand Up @@ -99,9 +99,9 @@ The entire process of adding an HTTP request, capturing the results into a prope

- Enter the following in the **Url** field:

**http://weatherbot-ignite-2019.azurewebsites.net/api/getWeather?zipcode=@{user.zipcode}**
**http://weatherbot-ignite-2019.azurewebsites.net/api/getWeather?zipcode=${user.zipcode}**

This will enable the bot to make an HTTP request to the specified URL. The reference to **@{user.zipcode}** will be replaced by the value from the bots' **user.zipcode** property.
This will enable the bot to make an HTTP request to the specified URL. The reference to **${user.zipcode}** will be replaced by the value from the bots' **user.zipcode** property.

![http url](../media/tutorial-weatherbot/03/http-url.png)

Expand Down Expand Up @@ -133,15 +133,15 @@ The entire process of adding an HTTP request, capturing the results into a prope

7. Next, enter the following in the **Value** field:

**dialog.api_response.content**
**=dialog.api_response.content**

![set a property](../media/tutorial-weatherbot/03/set-a-property.png)

8. While still in the **True** branch, select the **+** button that appears beneath the action created in the previous step, then select **Send a response**.

9. In the **Properties panel** on the right, enter the following response to send:

`The weather is @{dialog.weather.weather} and the temp is @{dialog.weather.temp}&deg;`
`The weather is ${dialog.weather.weather} and the temp is ${dialog.weather.temp}&deg;`

The flow should now appear in the **Authoring canvas** as follows:

Expand All @@ -151,7 +151,7 @@ You will now tell the bot what to do in the event that the [statusCode](https://

10. Select the **+** button in the **False** branch, then select **Send a response** and set the text of the message to:

**I got an error: @{dialog.api_response.content.message}**
**I got an error: ${dialog.api_response.content.message}**

11. For the purposes of this tutorial we will assume that if you are in this branch, it is because the zip code is invalid, and if it is invalid it should be removed so that the invalid value does not persist in the **user.zipcode** property. To remove the invalid value from this property, select the **+** button that follows the **Send a response** action you created in the previous step, then select **Delete a property** from the **Manage properties** menu.

Expand Down

0 comments on commit 711ca92

Please sign in to comment.