This workflow serves as a general-purpose frontend to control external services and smart home devices via IFTTT Webhooks directly from Alfred.
Without modifying any code, you can dynamically expand candidate items (Script Filter) simply by adding or editing Environment Variables in Alfred's GUI. It also offers the flexibility to execute unregistered events on the fly by typing them directly.
- Direct Download: ifttt-webhook.alfredworkflow (v1.0.0)
- Releases Page: GitHub Releases Page
- Zero-Code Endpoint Management: Add new actions effortlessly by simply adding environment variables.
- Reduced Cognitive Load: Just type
iftttto list all registered actions, eliminating the need to memorize keywords. - Smart Direct Input: Unregistered event names can be typed directly and executed immediately.
- Safe Parameter Transmission: Text after the event name is safely passed to IFTTT's
value1as a single string, preventing parsing errors from spaces or special characters.
- Go to the IFTTT Webhooks Settings Page and click "Documentation".
- Copy the Webhook key string shown as
Your key is: xxxxxx. - Open the workflow configuration panel in Alfred and click "Configure Workflow...".
- Paste the copied key into the
ifttt webhook key(cfg_key) field and save.
Add your favorite actions via the Environment Variables panel in Alfred:
- Name:
event_[IFTTT Event Name] - Value: Description to display as the subtitle in Alfred (e.g.,
Turn on living room light)
event_log_slack_cal:Send input text to Slack and Google Calendar(Triggerslog_slack_cal)event_wakeup:Trigger morning applet (No arguments)(Triggerswakeup)
Launch Alfred and type the keyword (Default: ifttt).
ifttt log_slack_cal Test message
このワークフローは、IFTTTのWebhook(Webhooksサービス)を介して、あらゆる外部サービスやスマートホームデバイスをAlfredから一元操作するための汎用フロントエンドです。
スクリプト(コード)本体には一切触れることなく、AlfredのGUI上の環境変数(Environment Variables)を追加・変更するだけで、動的に候補(Script Filter)を拡張できます。また、未登録のイベントもその場で直接入力して実行できる柔軟性を備えています。
- コードの追加不要: 新しいアクションの追加は、環境変数を1行足すだけです。
- 思考負荷の軽減:
iftttと叩くだけで登録済みのアクションが一覧され、探すコストがゼロになります。 - スマートな直打ち対応: 環境変数に登録していないイベント名でも、入力すれば最優先で「直接実行」の候補が生成されます。
- 安全なテキスト送信: 第2引数のスペースや特殊文字をパースエラーにせず、1つの塊として安全にIFTTTの
value1へ流し込みます。
- IFTTT Webhooks の設定ページ にアクセスし、「Documentation」 を開きます。
Your key is: xxxxxxという文字列(Webhookキー)をコピーします。- Alfredのワークフロー設定画面を開き、「Configure Workflow...」 をクリックします。
ifttt webhook key(cfg_key) の欄に、コピーしたキーを貼り付けて保存します。
予測候補に出したいお気に入り操作は、「Environment Variables(環境変数)」 画面から追加します。
- Name (変数名):
event_[IFTTT側で設定したイベント名] - Value (値): Alfredの候補一覧の「サブタイトル」に表示したい説明文(例:
〇〇を点灯するなど)
event_log_slack_cal:第2引数の内容をslack、Googleカレンダーに送信(log_slack_calを呼び出す)event_wakeup:起床時アプレット動作(第2引数無し)(wakeupを呼び出す)
Alfredを起動し、キーワード(初期値: ifttt)に続けて入力します。
ifttt log_slack_cal テストメッセージ