Pre-fill Slack message in web interface - slack

Is there a URL parameter or other means to pre-populate the message field when navigating to a Slack channel in Slack's web interface?
That is, a user would click on a link to a Slack channel in their browser, and on arriving at the linked page would have part of their message already written, but not sent.

When you work with the Slack API, they offer some "confirmation fields" codes to request user confirmation before taking certain action.
This could apply to your case, by getting a certain piece of text ready but requiring an OK before actually sending that over the chat.
"confirm": {
"title": "Are you sure?",
"text": "Wouldn't you prefer a good game of chess?",
"ok_text": "Yes",
"dismiss_text": "No"
}
Protect users from destructive actions or particularly distinguished decisions by asking them to confirm their button click one more time. Use confirmation dialogs with care.
These fields should be presented as a JSON hash buried deep within the confirm field of an action within the actions array that's also part of an attachment that's inside the attachments array field of a message.

Related

Send Data to Mailchimp Audience

I have a form on my website and if user left the form after filling email id or something else that lead should go to Mailchimp Abandoned Form/list or if user filling up whole form and click on submit then it should go to Mailchimp Success Audience/list.
So Right now, I can not define when and how to use the conditions or code that track both of these scenarios.

Identify which button in message was clicked

I'm sending messages with Block elements(buttons) to users using Slack API (python-slackclient). Different users can get number of these and can click the buttons with a delay obviously, for example the next day.
I need to identify which button in which message was clicked.
After checking the documentation on Slack API pages it looks like action_id is the way to go as I can specify it in my request and assign it a unique value. I shall get the action_id back in response coming to my endpoint once user clicks one of the buttons which will allow me to match it with sent message.
Is this the correct way to achieve it? Are you aware any better way to implement this?
You can use an action_id on your button in order to tie your button to a response action.
So if you have several buttons that should all trigger the same action, but you'd still need to know which of those buttons was clicked, maybe you could give them all the same action_id (so you can link them to the same action), but specify unique button values.
You need to make sure your action_ids are unique, BUT you can receive a message or an action using RegEx and thus still point them all to the same handler.
For example, this action handler receives all button presses where the action_id starts with "hello"
app.action(/^hello.*/, async ({ body, ack, say }: any) => {
await ack();
await say(`<#${body.user.id}> clicked the button`);
});

Use input for update message in a Teams Flow - Post Adaptive Card action

With the "Post an adaptive card" action in Flow / Power Automate -> Microsoft Teams there's the option to specify an "update message" following the user response to the card.
How can I access the data inputs and the submitActionId for use in this message?
The use case is as follows:
user receives the card and enters data into a textfield.
user clicks one of two buttons (similar to "approve" and "reject")
(what I want to do:) card is updated to show what text the user entered and which button was pressed.
I can access other dynamic data that have been created by previous actions in the "update message" field. But the output of this adaptive card action itself is not available "within" the action, not by normal means anyway. Later in the flow it's necessary to parse the JSON output of this action.
Supplementary question: Is it possible to style the "update message". Currently it appears all bold.
Supplementary info: the "update message" field does not appear to accept another adaptive card (would have been logical...). If I enter adaptive card json there, it just gets spat back out literally in Teams.

Lotus notes survey form

I have Created a Notes Survey form using Lotus Notes Designer.
I select "Preview in Notes" and from there i forward the survey form to end user.
However this goes as an email and End user's has to Click on reply button to select their answers and then reply.
I am looking for some Notes Script / Commands which i can embed in a Notes button on the form, which will help end user to select the answer and once done, the reply should automatically mailed back to us.
Please let me know if additional information required, related to requirement.
Note: I am new to Notes Designer, and unable to club multiple options to get this working.
This is NOT the sense of a Lotus Notes application to send the information via mail. The most you do is, to send a button with the Command #Command([Compose]; "YourServer" : "YourDatabase.nsf"; "YourForm")
To the users. When they click the button, a new document with your form is created. Then you use #Command([FileSave]) in an action to save the document. Usually one checks, using #dblookup, if there is already an entry fo that user an prohibits more than one document per user.
Then you create views to show the documents and see instantly:
How many users took part so far,
How many users selected option 1, option 2, etc.
You have all the information in one place, it is structured and can be easily read / found / evaluated.
Sending mails around would meen, that you have to collect that information yourself and count manually...

How to add RSVP button options in MailChimp template

I've created a party invitation template in MailChimp with an RSVP section within the body of the email that contains 3 buttons:
yes
maybe
no
I have also added a custom text field on the list called "RSVP".
Is there a way I can automate the user click event to automatically update the profile and target this field?
I realize I can add the |UPDATE_PROFILE| merge tag and send the user to a custom form where they choose their RSVP option, but ideally i want to bypass the form and handle the response using the buttons in the email body ONLY.
Is this possible?
Yes, this is possible, mostly. You can do most of what you want with survey tags. The result won't be put in your custom text field in your list called "RSVP", but you will still be able to make segments of your list based on who clicked a particular response, as described below.
Anywhere in your email, in a text portion, include the following:
*|SURVEY: 1. yes|*
*|SURVEY: 2. maybe|*
*|SURVEY: 3. no|*
When the recipient gets the email, they will see three links:
1. yes
2. maybe
3. no
These links will take them to a survey landing page. (You can edit this: in your lists page, click the drop down to the right of the stats button, then choose Signup Forms, and then choose Form Builder, then in the drop down choose Survey Landing Page)
After you send out the email, and some people have clicked some of your yes/maybe/no links, it's time to see the results.
Click on Campaigns at the top of mailchimp, then the View Report button to the right of the email you sent. Scroll down and you will see a box called Poll Information, and in this there is a link to View poll results. There you can see who clicked on which link.
You can also make a list segment based on Poll/Survey Activity, which lets you do things like see who all didn't pick any of your RSVP options, who did, and who clicked which one.

Resources