External APIs

Wolfram Alpha: Computational Knowledge

Ask questions and receive incredibly comprehensive answers from a widely curated data set.
Back to BLOCKS

About Wolfram Alpha: Computational Knowledge

Wolfram Alpha is an incredibly powerful computational knowledge engine that allows users to submit a question, and answers the question with a comprehensive answer, whether it's geography, history, mathematics, earth science and physics.

With the Wolfram Alpha block, you can harness the power of the Wolfram Alpha API in your realtime data streams, allowing users to submit questions and receive answers in realtime. You can build Q&A functionality directly into a chat app, collaborative environment, or education app, to name a few.

Try it Now
Categories:
External APIs External APIs
Bots & AI
Bots & AI
Charting & Graphing
Charting & Graphing
Triggers & Notifications
Triggers & Notifications
Last Updated:
20160908 at 10:17:23
Author:
PubNub

Walkthrough

Check out our Getting Started with Wolfram Alpha and PubNub tutorial to build your first computational knowledge app.

Wolfram block queries API endpoint with message text and publishes a new message on output channel. This new message contains the data returned by Wolfram API.

Wolfram supports different kind of queries like spoken, result, query etc. This can be specified to the block using "api" value in JSON object being published to input channel.

Input

Publish Wolfram query message on input channel. Input Channel: wolfram-channel
{
    "text": "what is capital of djibouti",
    "api": "spoken"
}

Output

Output is received on output channel. Output channel: wolfram-channel-response
{
    "result": "The answer is Djibouti"
}