url

  • Output field: Invokes the given URL and returns the result.

Description

This element is designed to allow your brain invokes an external API, provided by either you or a third party.

<url>web address</url>

Parameters

web address

The full web address (URL) to invoke.

Examples

Example 1. Invoke a fake weather API

  • Cell
    • Weather for New York
    • <url>http://myweather.com/api/get?city=new20%york</url>
  • Log
    • Weather for New York.
    • Sunny.

Tips

  • You can assign the returned value to user object and then use it in condition or output.
  • You can program your own user data API and then provide your brain with the data through <url></url> element.