How to use Juji API to connect it to mobile App

We were able to test our Juji chatbot using https://github.com/juji-io/cli-client, but we need more information on how to connect Juji to our mobile app that we have through Azure. We looked at https://juji.io/docs/chat/ and have a few questions :

  1. Do we need a subscription for Websocket and GraphQL?
  2. How do we fetch and push data (get and post method) from Juji to our mobile app?
  3. Is there someone we can talk to for support?

Thank you for trying out Juji platform.

  1. Yes, As described in the documentation, the handshake sequence includes the following: 1. first your client needs to obtain a websocketurl using HTTP POST, 2. then the client needs to HTTP GET that url to upgrade the connection to WebSocket protocol, 3. finally, the client needs to make a GraphQL subscription call over WebSocket to respond to the first WebSocket message sent by the server.

Once this sequence of operations are successfully accomplished by your client, the server will push messages to your client automatically.

  1. For pushing data to server, your client needs to send GraphQL calls over the WebSocket connection established above to the server, and the server will push data back to you automatically over WbSocket as well, as indicated above.

  2. For free use, this forum is the venue for support.

We do have dedicated service for paid customers. Please send email to hello@juji.io if you would like to talk to our sales regarding paid service. Or you can subscribe to our paid service online directly right now, before our pricing page is changed soon.

Hi Huahai,

Thank you very much for your email.

I was trying to reach out to you over email.

After going through the GraphQL JUJI API documentation I have the following questions :

  1. How can I get a Websocket protocol to make a GraphQL subscription (how to get a GraphQL subscription).

  2. Do we have free subscription or paid (please share any documentation to follow, if possible).

  3. Could you elaborate or provide more examples on the use of HTTP POST calls to push data to the server.

Looking forward to hearing from you.

Regards,
Aniket Sinha

Hi, Aniket Sinha!

I’m looking forward to be able to fetch data from the server through Websocket and GraphQL, just as you. So, I’m very interested in this subject and in the answers of the Juji support for this topic

Hi There,

Thank you for your email. Did you get any solution on how to fetch data from the server through Websocket and GraphQL or did you hear back from JUJI forum.

Hi!
I stopped using Juji API because there’s little documentation about the GraphQL and websocket, and these are new ‘subjects’ to me, so I was learning them only to acces Juji API. So it wasn’t a practical deal for me…
And I’ve found that the requests were too slow when trying the free version to build a bot, but I don’t know if I was using it correctly