You have no favorites... yet!
Use the Library tree on the left to select a Choreo to call from your gateway device.
Use the Library tree on the left to select a Choreo to call from your edge device via the gateway.
Library . WolframAlpha . Query
Allows your application to submit free-form queries similar to the queries one might enter at the Wolfram|Alpha website.
/*
TembooTask class placeholder
*/
/*
TembooTask header placeholder
*/
Since you've changed your device configuration, you'll need to tell us about this new device.
This feature is in experimental mode - pricing coming soon.
Send your code straight to a GitHub repository.
Your code will be visible by others in your repos. Keep credentials private by saving a Profile or commit code with Placeholder inputs.
The following files will be added to this repo:
You'll be able to edit and share your code from TI's CCS Cloud IDE.
The following will be sent to CCS Cloud:
/*
Your auto-generated code will appear here once you've configured your device above.
*/
/*
A header file containing your Temboo account information will appear here once you've
configured your device above.
*/
/*
Please log in to generate proxy server code for use with the JavaScript SDK.
*/
This Choreo allows your application to submit free-form queries similar to the queries one might enter at the Wolfram|Alpha website. The documentation for this Wolfram Alpha resource can be found here.
Note that there are a few special inputs that can be used to simplify the XML response returned from the Wolfram|Alpha API. To parse a specific value found in an element of the response, you can specify an XPath query to be applied to the response XML. By default, an XPath query functions in "select" mode, but you can use the XPathMode input to change the mode to "recursive" which can be used to iterate through the XML at the position specified by the XPath query. Finally, the XPathRegex input can accept a regular expression which is applied to the result of the XPath query.
Below is an example where an XPath query is specified in order to parse the <plaintext> node at position 2, and apply a regular expression to find only the decimal number in the result.
AppID: {YOUR WOLFRAM ALPHA APP ID}
Input: APPL
XPath: /queryresult/pod[position()=2]/subpod/plaintext
XPathRegex: \d+.\d+
In this example, when using the search input "APPL", the value of the <plaintext> without applying the regular expression would look like this:
$517.32 (AAPL | NASDAQ | 1:06:55 pm PST | 1 hr 12 mins ago)
If the regular expression is provided, the Choreo will search the string using the regex pattern, and return only the decimal: 517.32
The complete XML response from the Wolfram|Alpha API can contain information that can be parsed and used in subsequent queries. For example, the <assumptions> tell you what assumptions Wolfram|Alpha made about certain parts of the input, and what the alternative values are for each assumption. You could use this information to resubmit a query using a different assumption about the meaning.
The assumptions can be found in the <assumptions/> element in the response:
<assumptions count="1"> <assumption type="SubCategory" word="largest" template="Assuming "${word}" refers to ${desc1}. Use ${desc2} instead" count="3"> <value name="Area" desc="total area" input="*DPClash.CountryP.largest-_*Area-"/> <value name="GDPUSD" desc="GDP" input="*DPClash.CountryP.largest-_*GDPUSD-"/> <value name="Population" desc="population" input="*DPClash.CountryP.largest-_*Population-"/> </assumption> </assumptions>
In above sample, the assumptions Wolfram|Alpha provides are:
*DPClash.CountryP.largest-_*Area- *DPClash.CountryP.largest-_*GDPUSD- *DPClash.CountryP.largest-_*Population-
The following is a sample of the XML information returned by this Choreo:
<?xml version="1.0" encoding="UTF-8"?> <queryresult success="true" error="false" numpods="9" datatypes="Financial" timedout="" timedoutpods="Daily returns versus S&P 500,Company information,Company logo,Company management" timing="9.152" parsetiming="0.092" parsetimedout="false" recalculate="" id="MSPa9091ig2bcid00a21e1600003ag5727bc585885h" host="http://www5a.wolframalpha.com" server="7" related="http://www5a.wolframalpha.com/api/v2/relatedQueries.jsp?id=MSPa9101ig2bcid00a21e1600000decc3e0667a721b&s=7" version="2.6"> <pod title="Input interpretation" scanner="Identity" id="Input" position="100" error="false" numsubpods="1"> <subpod title=""> <plaintext>Apple (AAPL)</plaintext> <img src="http://www5a.wolframalpha.com/Calculate/MSP/MSP9111ig2bcid00a21e1600005hef6ie1d5f7f5d9?MSPStoreType=image/gif&s=7" alt="Apple (AAPL)" title="Apple (AAPL)" width="89" height="18"/> </subpod> </pod> <pod title="Latest trade" scanner="FinancialData" id="Quote" position="200" error="false" numsubpods="1" primary="true"> <subpod title=""> <plaintext>$517.32 (AAPL | NASDAQ | 1:06:55 pm PST | 1 hr 21 mins ago)</plaintext> <img src="http://www5a.wolframalpha.com/Calculate/MSP/MSP9121ig2bcid00a21e16000039e470b8b31ggda7?MSPStoreType=image/gif&s=7" alt="$517.32 (AAPL | NASDAQ | 1:06:55 pm PST | 1 hr 21 mins ago)" title="$517.32 (AAPL | NASDAQ | 1:06:55 pm PST | 1 hr 21 mins ago)" width="348" height="18"/> </subpod> <states count="1"> <state name="More" input="Quote__More"/> </states> </pod> <warnings count="1"> <spellcheck word="APPL" suggestion="apple" text="Interpreting "APPL" as "apple""/> </warnings> <sources count="1"> <source url="http://www.wolframalpha.com/sources/FinancialDataSourceInformationNotes.html" text="Financial data"/> </sources> </queryresult>
https://ACCOUNT_NAME.temboolive.com/callback/google
© 2025 Temboo, Inc Privacy Terms