Questions tagged [circuit-sdk]

Questions related to Circuit REST API, JavaScript, Node.js and iOS SDK.

Technical questions related to any of the Circuit SDKs or APIs, or Circuit OAuth 2.0.

Current supports SDKs/APIs are:

JS SDK API reference at https://circuitsandbox.net/sdk/

Examples listed at https://circuit.github.io/ and complete examples apps at https://github.com/circuit

OAuth related info and app registration at https://circuit.github.io/oauth.html

68 questions
0
votes
1 answer

How to get an item by itemId in Circuit JS SDK?

I handle a formSubmission event on Circuit using Circuit JS SDK. Then I update an item that contains this form by using method updateTextItem. I want to save previous value of item.content. But received event contains only itemId. Is it possible to…
0
votes
1 answer

Set Bot presence using Node-red

Could someone help me with this newbie question? I'm trying to set the Bot presence using setPresence node, but without success until now. I tried a lot of ways to pass the presence state, but didn't work. Do you know what I'm doing…
0
votes
1 answer

Q: How to display radio horizontally and not vertically on Circuit

I am sending a form to Circuit. But I would like the radio buttons to be displayed horizontally and no vertical. ... form.controls.push({ type: 'LABEL', text: '' + intents + '' },{ …
Alberto Linde
  • 75
  • 1
  • 5
0
votes
1 answer

Submitting a form in Circuit SDK

I'm sending a form by bot to conversation using Circuit SDK. That contains a couple of buttons: client.addTextItem(item.convId, { content: 'Form test', form: { id: 'form123', title: 'Form test', …
0
votes
1 answer

Pass subject, content, etc with node.js

How can I pass subject content in the node.js using add.textitem node? I have tried the code below but the bot only sends the content, I never get subject, parentItemId, etc.. var content = { subject: 'test', content:…
0
votes
1 answer

How can I access to Circuit sandbox?

I'm unabled to connect to my circuit sandbox for two days already. I tried to request new sandbox but there are error message. Do I missed some changes of how sandbox work now?
0
votes
1 answer

Slash commands in Circuit

I'm creating a bot using Circuit JS SDK. And I want that users could interact with bot by sending slash commands (eg. "/help"). Does Circuit supports auto-sending command by clicking on command (like Telegram does)? And if it's not, is there…
0
votes
1 answer

How to add bot to coversation in Circuit sandbox?

I had created bot app using Circuit SDK and got a sandbox in circuitsandbox.net. To create a bot application I went to "Manage Applications" -> "Custom Apps" and created a bot app. It works great but only way to add bot to conversation I found is to…
Andrew
  • 5
  • 1
0
votes
1 answer

Download attachment from Circuit Conversation via REST API

I'd like to download an attachment from the conversation via REST API (Circuit Sandbox) If I query the Conversation Item, I can see the attachments and within that the fileID. Then, if I am logged with a user account who is a member of the…
0
votes
2 answers

Upload file to Circuit Conversation via REST API - Backend Upload

I am unable to upload a file with the file API I've tried this HTTP request in POSTMAN and Curl with no success and the same result on both: Attach a file (picture) to a conversation Would you be able to share a real working example from Postman, or…
0
votes
1 answer

How to submit through webhooks a table with borders?

I can post tables but it's without borders.. curl -X POST "https://eu.yourcircuit.com/rest/v2/webhooks/incoming/randomID" -H "accept: application/json" -H "content-type: application/x-www-form-urlencoded" -d "{ \"text\":…
0
votes
1 answer

How to get email of user who send message to bot in Circuit JavaScript SDK?

I'm creating a bot that will receive a messages in Circuit and then send it somewhere else with email of user that printed this message. As example I use xlator-bot https://github.com/circuit/xlator-bot this.receiveItem = function receiveItem(item)…
Andrew
  • 5
  • 1
0
votes
1 answer

enableWhiteboard() function getting a response with SERVICE_EXCEPTION error in Circuit SDK

I am trying to enable Whiteboard using Circuit SDK by running enableWhiteboard(callId, viewbox), where callId is the ID of the current call and viewbox an object containing the device's screen width and height. When I call it, the response code is…
0
votes
1 answer

How to connect bot to communication application?

Is it possible to connect bot created using Microsoft Bot Framework on .NET Core that deployed in Azure and bot account that was created in Circuit messenger (by Unify)? And if it's possible, what should I use?
Andrew
  • 5
  • 1
0
votes
1 answer

Why am i getting the following error when trying the run Yarn start

I'm getting the following error and i'm not sure where the problem is, can anyone help please? Server listening at port 3100 Error at new circuit.Error…