PubNub Integration

Wolfram Alpha: Computational Knowledge

Data Streaming & Dashboards

Data Streaming & Dashboards

Alerts & Notifications

Alerts & Notifications

Last Updated:

2016/09/08

Author:

PubNub

Getting Started TutorialGet Wolfram API Keys

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.

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"
}

Feedback & Support

Need help? Contact PubNub Support.


Talk to an expert

Contact Sales