Example Next.js application that integrates with Slack to receive contact form submissions
MIT License
Shows example contact form that sends messages to a Slack channel
git clone [email protected]:ijjk/slack-contact-form.git
cd slack-contact-form; yarn
SLACK_TOKEN
and CHANNEL_ID
, SLACK_TOKEN='TOKEN' CHANNEL_ID='id' yarn next
now
with now secrets add slack-token 'TOKEN'
and now secrets add slack-channel-id 'id'
now
in the project's rootYou can get find the channel id using the conversations.list
Slack API endpoint.
Example: curl https://ijjk.slack.com/api/conversations.list --form token='SLACK_TOKEN'