I'm trying to do the "Send a dialog-based proactive message" example on this page https://learn.microsoft.com/en-us/bot-framework/nodejs/bot-builder-nodejs-proactive-messages … and have it resume with the dialog that was interrupted. The code doesn't work and then I noticed the note about botadapter.js. I tried to follow the "here" link but am getting a 401 error.
Is the code sample up-to-date because it looks like bot is expecting a function not an object for that 4th parameter.
Related
As mentioned in the title I am trying to send a message to a specific channel using a discord bot that I've built using Discord.js and Node.js. I am using the following code to send the message to the specific channel: message.guild.channels.cache.find('CHANNEL_ID').send(someEmbed);. The problem is, whenever I add this piece of code to the file and run it, I get an error message in the console. The error is message is the following: if (fn(val, key, this)) TypeError: fn is not a function, this error message refers to a file that is automatically generated. So my question is if I'm doing something wrong or if it's some sort of bug.
You could also try
message.guild.channels.cache.get("CHANNEL_ID").send(someEmbed);
although your code should run without any problems.
I make a chat bot on Azure, check on webchat test.
Webchat test is successful, as shown in the image below.
webchat test is success
For publishing this chat bot to Direct Line.
I click "constitute Direct Line channel" button in Channel category.(shown as below image)
click "Direct Line Channel" button
Clicked this button, transited ti error page.
This error page says "The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.".(shown as below image)
enter image description here
This error also occur at other publishing button (teams,cortana,Slack...)
I cannot resolve this error.
Please tell me how to resolve this error.
Thank you.
Today, I click "Direct Line Channel" button, it work fine.
I think this matter is occuered by temporaly link error.
I'm a new developer building a facebook messenger chatbot using node.js and Microsoft's BotFramework. I've got my chatbot up and running nicely and I'm now trying to personalise the welcome message with the user's first name.
I have a welcome message set up when a user clicks the "Get Started" button and I believe I should be able to retrieve the PSID using messaging_optins.
If so, I've got a a function that processes the Facebook payload in onEvent from the EventActivity.Value:
This cycles through some if/else statements to detect whether the Facebook payload is a Postback, Optin or Quick Reply:
If an Optin is detected it then prints "Optin message received" to the console:
The problem I'm finding is that my code isn't detecting the Optin message and so I'm not then able to write any code to extract the PSID to use to personalise my welcome message.
Can anyone point me in the right direction?
I’ve solved this as I found from the documentation here that it’s messaging_postback that are sent when 'Get Started' is clicked.
Heroku worked successfully , facebook page and app was created, webhook setup. But to allow chatbot to send / receive messages , curl command -x POST was used on terminal prompt - graph.api v3.2 ,
But throws an error stating It requires subscribed fields.
v3.2 is current, do I use some other version perhaps where sub fields are not required? I tried 2.6-2.11 till 3.2 . None of it works, throws undefined errors to sub field require errors.
curl -X POST "https://graph.facebook.com/v3.2/me/subscribed_apps?access_token=(here I put my page token id)"
Expecting an output saying - Successful True
subscribed_fields just is a required parameter, so you can not subscribe an app for updates from a page without specifying which fields you want updates for.
Documentation says type is an array of predefined keywords, so you should be able to subscribe to multiple fields in one request using subscribed_fields={field1,field2,...}
I am attempting to use a web request to post updates to Slack whenever content is versioned via the Workflow module, but it keeps failing to post correctly, and send the error email I have programmed to send if the web request fails.
I am trying to post to a slack using a webhook url, and I have tried to send the body text as JSON using:
payload={"text": "A very important thing has occurred! for details!"}
or just:
{"text": "A very important thing has occurred! for details!"}
Both work when I test using a client like POSTMAN, but not within Orchard.
I can not see any logs to get/give more feedback on what's happening either.
Anyone have success?
You need to wrap the json in double parentheses so that the tokenizer does not try to process it. Something like this:
((
"text": "A very important thing has occurred! for details!"
))