Reply to with text messaging - coldfusion

Is there a way to send a text message to someone and in the message have a single button/link that will send a text message from their phone to a voting mechanism?
Example: Pedro is running for class president. I want to send a text to everyone that says:
Vote for Pedro!
And when they click on the link, it sends a text message from their phone to 73774 with the text: 110084.
I'm asking this in the ColdFusion section because I know ColdFusion and don't know PHP.

No, text messages are just that... text.
Now, if you send a link, such as http://vote.for/pedro, most phones will automatically highlight that and open it in the users browser, but this isn't quite what you are looking for.

Related

TaskPane in Office Add-in word document close event

Is there an event available in Office.js which notifies the office addin when the word/excel document closes. I want to implement a scenario where if the user closes the word document (where the taskpane addin is added) the user is shown a custom message before the word/excel document closes.
That event is not supported in Office.js. But it's a good idea. Please go to Office Developer suggestion box and search for "word events". Vote up any suggestions that match your needs, or create a new suggestion.

how to get a welcome message in aws lex chat bot

I am creating a chatbot using amazon lex.
There is a use case for which I have to display a welcome message like 'Hello my name is LexC. How can i help you?'
How can I implement this? This message should be displayed without user type anything, so basically without invoking any intent.
Your Lex bot cannot display a "welcome" message without any prompts from the user. You would have to implement this functionality on the client side where the bot is integrated.
Since you mention that you're using the bot inside your web/mobile app, you can implement your own code to simply show a message to the user once your chat UI loads up in the app. For Slack however, you would have to look into their docs to see if something like that can be configured.
If you are trying it to do with Facebook Page, Then you can do this by following steps:
You can create a customized greeting from your Page that will appear in Facebook messages and in the Messenger app for iPhone, iPad and Android when someone begins a conversation with your Page for the first time. Your Page's greeting will appear before any messages are sent.
To create a Messenger greeting:
Click Settings at the top of your Page.
Click Messaging in the left column.
Next to Show a Messenger greeting, click to select On.
Click Change, edit the greeting, then click Save.

Trigger User Action from Facebook Messenger Bot

I have a working Facebook messenger bot.
From the Messenger app, I would like my bot to trigger the "camera" action (to snap a new picture or video) for the user.
To clarify with a hypothetical context, I would create persistent menu action which mimics the behavior of clicking the "camera" button under the message text area.
I looked into the "Page Call To Action" operation of the Graph Api but could not find parameters that would produce the desired behavior.
Here is the solution to your problem.
In Facebook Messenger, you can open a webview and load a webpage. But remeber that good old HTML 5 provides us with a simple way of asking the user to use their camera when they are on mobile.
These steps below work today
You can use a url button to open a webview as such
"buttons":[
{
"type":"web_url",
"url":"https://url_to_your_webpage",
"title":"View Item",
"webview_height_ratio": "compact"
}
]
In your webpage, include this HTML5 element that allows user to take image via camera on mobile
<input type="file" accept="image/*" capture="camera" />
Submit the image to your servers, close the webview, and do any processing required. For example you can now send the image back to the user from your bot.
I'm pretty sure there is no way to do what you want, right now. Hopefully, in the future, the Messenger team will add more features like this to bots.
You can simply send a message to the user to click on the camera icon, click the picture and send it to the bot. You can then receive that image as the attachment -> read 'Message with image attachment' and reply to the user. This will be more of the native experience. In webview the user can deny permission to the camera (if asked for). Hope this helps!

Sitecore - Email Campaign manager: $fullname$ is not replaced on the online version

For my newsletter implementation, I have defined a text like this:
Hello $fullname$,
The variable is correctly replaced when the email is sent. The user will see his first name.
Inside the newsletter, the reader is allowed to read the newsletter online.
Via a link, he will be redirected to a web site.
On the online version, the variable is not replaced.
The user will read Hello $fullname$,
Is there something that should be configured / developped ?
Thank you,
You should add sublayout called Process Personalization Tokens to the item Presentation.
Take a look at the standard module templates(like One Column Message) as an example.

Interact with websites C++ [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
How do I interact with websites in C++?
For example, a website has a dropbox, text area and a button, and I want my program to fill text inside the text area, choose an option from the dropbox, and make the button fire its event("clicking" it).
How can I achieve something like that?
thanks!
First you have to understand that on the server there is no text box or button.
These are constructs that are built by the browser to display to you.
The browser will then take user input into the text box and interprets the clicks on the button. What happens (usually) when the button is clicked is that the browser sends an HTML "POST" request to the server. The browser builds the post request based on what the user has done in the UI.
Example:
Server Sends to browser:
<html>
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8"><title>TestDoc</title></head>
<body>
<form action="http://website.com/form.html" method="post">
<div>
<textarea name="userinfo" rows="2" cols="30">Some Text</textarea>
<input type="submit">
</div>
</form>
</body>
</html>
Your browser interprets this and displays a text box and submit button. When you press the submit button the browser builds an HTTP post command that is sent back to the browser. It connects to the website at http://website.com/form.html (see form tag in code snippet above) and sends the content of the text area (tagged with the value userinfo).
You can manually do the same.
But you need to understand what values the website is expecting and build the appropriate command based on what the website is expecting. To do this, the easiest way is to use libCurl. The documentation for this package explains in detail how to build a post request.
Here is a post example:
Take a look al libcurl. It's a C library, but you could definitely use it from C++ to achieve what you want.
If you need just to do some casual WebSite interaction I would suggest you to take a look at languages that are more suitable (and easier to use) than C++ for that task. Python (with Mechanize library), Ruby, PHP, Perl...
Even Java and C# have native libraries to deal with stuff like this.
Okay, it really depends on a few things. You may be overcomplicating your problem by thinking that you need to get the program to fill in the form as though it was a human. Instead, why don't you skip that step?
When you submit a form, your browser sends a HTTP POST (usually) request across the Internet with your form details in the header. If you know what the form is going to be beforehand, you can simply get the program to send POST requests to the server as though somebody had submitted a form.
If you don't know what the form will be, then you need to send a GET request to the server to retrieve the page and then somehow analyse the page to extract the information needed to fill the form details (that's your problem) and then send the POST request with the details as above.
This can all be done with the libcurl library. It allows you to send HTTP requests through a simple interface.
Now, if your problem actually requires you to make a program that acts as a human and really manipulates the browser to fill in the form, then you need to learn about simulating key presses and mouse clicks, which is likely going to be platform dependent.
If libcurl is not enough for your needs you might want to take a look at Qt, specifically the QtWebKit module. It basically incorporates a complete browser engine which also Google Chrome uses. Using that engine you can even execute your own JavaScript code in the context of the Website and simulate for instance a login .