Questions tagged [botkit]

Botkit is a toolkit for making bot applications. Botkit is designed to ease the process of designing and running useful, creative bots that live inside Slack, Facebook Messenger and other messaging platforms.

It provides a semantic interface to sending and receiving messages so that developers can focus on creating novel applications and experiences instead of dealing with API endpoints.

Botkit features a comprehensive set of tools to deal with popular messaging platforms, including:

  • Slack
  • Facebook Messenger
  • Twilio IP Messaging

GitHub project: https://github.com/howdyai/botkit

174 questions
3
votes
2 answers

Bot Framework Event for Postbacks?

My question: I have an adaptive card with a postback button whose value is say "thisIsMyPostback". Now, I want to act on this postback as one would. The problem is that this postback can also be typed out to reach the same result. In other words,…
3
votes
1 answer

Connect botkit to my service restful api

I installed botkit locally and is working perfect with slack. Now, i want to connect the bot with an external restful api to ask for example: HUMAN: How many clients do you have connected? Bot: The bot execute internally a query over the rest api of…
chan go
  • 137
  • 11
3
votes
3 answers

Botkit With Express

The documentation at Botkit (https://github.com/howdyai/botkit/blob/master/readme-facebook.md) is pretty not meaningful at all: // if you are already using Express, you can use your own server instance... // see "Use BotKit with an Express web…
hiro
  • 261
  • 7
  • 19
2
votes
0 answers

How to use Botkit v4+ with custom express server for Slack bot

For Botkit v0.7.4, a custom express server can be used as follows module.exports = function(webserver, controller) { webserver.post('/slack/receive', function(req, res) { res.status(200); res.send('ok'); …
2
votes
0 answers

Botkit conversation keeps throwing Assertion `((*value)->*typecheck)()' failed

This is the code I'm using module.exports = function(controller) { controller.hears("add",["direct_mention","mention"], (bot,message) => { /*bot.startConversation(message,function(err,convo) { if (err) throw err; convo.ask("Enter…
B3141
  • 21
  • 1
2
votes
2 answers

Unhandled promise rejection while using Microsoft bot framework

I am using microsoft bot framework and trying to integrate it with external HTTP calls. However when i invoke the BotWorker.say in the handler BotKitConversation's ask i start getting (node:5711) UnhandledPromiseRejectionWarning: Unhandled promise…
saurav
  • 5,388
  • 10
  • 56
  • 101
2
votes
1 answer

Botium Botkit 4.0: Specify userId

How can I specify userId in Botium connector for Botkit 4.0? In 0.7, I was able to specify BOTKIT_USERID in my .spec.js file. It was useful to test responses for different user groups.
shawnl
  • 1,861
  • 1
  • 15
  • 17
2
votes
2 answers

How to integrate BotFramework with Hangouts Chat

I'm trying to integrate my bot too the Hangouts Chat API. I migrated from C# to node.js in order to be able to take advantage of the HangoutsAdapter: https://botkit.ai/docs/v4/platforms/hangouts.html The problem is that the HangoutsAdapter expects a…
Martín La Rosa
  • 790
  • 4
  • 17
2
votes
1 answer

How to resolve the Botkit.slackbot is not a function error for my code while trying to build a slackbot using botkit?

I am trying to make a slackbot using botkit and I have written a code however I get the following error when I try to run it- TypeError: Botkit.slackbot is not a function at Object. (E:\Postman…
Aishwarya
  • 31
  • 1
  • 5
2
votes
1 answer

Restrict slash command usage to app channel

I created a slack app using botkit / node.js / express server. My method: controller.on('slash_command', function(bot, message) { SOME_LOGIC } listens for all slash commands in every single channel. Now, my bot (slack app) has it's own direct…
Faye Hayes
  • 263
  • 3
  • 13
2
votes
1 answer

Botkit - pull users data asynchronously

I'm trying to pull users data and than use returned result in another function. I'm trying to implement it using async/await but with no success. const userAllowedToDeploy = (user_id, project) => { controller.storage.users.get(user_id, async…
Artur79
  • 12,705
  • 1
  • 22
  • 22
2
votes
1 answer

How do I use a redirect URI for an application deployed to Heroku running a worker process?

I have a worker process running on Heroku for a bot I made for Slack using Botkit and Node.js. (There is just one worker and no web processes.) When users authenticate with my app, they need to be redirected. My Heroku app is called "updooter2"…
Hannah
  • 23
  • 3
2
votes
1 answer

Slackbot + Heroku: Have to keep logging in

I'm having an issue with my botkit slack bot hosted on Heroku. The bot itself is just the "starter kit." https://github.com/howdyai/botkit-starter-slack After a little while, the bot stops working. The logs complain of not being able to find the…
b15
  • 2,101
  • 3
  • 28
  • 46
2
votes
0 answers

Botkit with HTTPS

I am having trouble getting botkit to run on the https protocol. Here's my setup: I have my own VPS running Centos6. I am using botkit-starter-slack I have SSL certs that pass SSLLabs tests via port 443 with apache listening. My bot runs on port…
AndyG555
  • 31
  • 4
2
votes
1 answer

Slack User Presence Subscription with Botkit startRtm

I am trying to figure out how to subscribe to presence changes in Slack via Botkit's startRTM call. Currently I'm using Botkit's starter slack bot which has an rtm_manager script for handling all rtm starts and closes. bot.startRTM(function(err,…
Eron Salling
  • 185
  • 2
  • 5
1
2
3
11 12