- You'll need to be connected to a Slack Workspace (aka, have a Slack account). If you don't have one, get one know, it's pretty easy.
- You'll need to create a Slack Webhook URL. If you don't have one follow the instructions below
- Open this [https://script.google.com/d/1JhJC2Ku_bBfxa0C1rgN5JCBSKW7oAZa9GGL1zuOsRtagAel2rJ7-vnFC/edit](Google App Script)
- Go to File > Project Properties > User Properties
- Click Add Row
- Fill name with: CALENDAR_IDS
- Press on value column (there's no indication of it) and type your desired calendar ids
- Make sure the ids are comma separated:
- eg: home@gmail.com, work@gmail.com
- Click Add Row
- Fill name with: SLACK_WEBHOOK_URL
- Press on the value column and paste your slack Webhook Url (if you don't have one or know how to create one, follow the instructions below)
- Press on the scripts.gs file (on the left sidebar)
- Press on the "Select Function" Dropdown on the top toolbar > Select the function "sendEventsForToday"
- Now press the ▸ button next to the functions selector.
- If everything went well you will have received a Slack Notification. If not, review the User properties step
- Go to the menu Edit > Current Project's Triggers
- Add a new trigger. Set is as: time-driven / Day Timer / 7a-8m (or whatever time works best for you)
- You're set!
reach out to me on twitter at @bernatfortet
You need to be logged in to a slack workspace (aka, account) do it on your browser
- Go to https://api.slack.com/apps
- Click on Create New App
- Give it a name. I recommended: "Agenda"
- Select your workspace. I recommend that you create a personal workspace to keep it isolated from other stuff
- Click Create App
- Under "Add features and functionality" click "Incoming Webhooks"
- The page navigate to the "Incoming Webhooks" page. Now mark "Activate Incoming Webhooks" to On (by pressing on the switch button at the top right)
- A new section will appear below titled "Webhook URLs for Your Workspace"
- Click on the button "Add New Webhook to Workspace"
- Select which channel you want the agenda to be posted
- A new entry will be created. Under "Webhook Url", you'll se a url. Copy it, this is your slack webhook URL
- Continue with your AGENDA NOTIFICATIONS SETUP