Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions front-to-admin-chat/front-to-admin-chat.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/bash

# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Front → Admin Chat
# @raycast.mode fullOutput

# Optional parameters:
# @raycast.icon 💬
# @raycast.argument1 { "type": "text", "placeholder": "cnv_xxx or Front URL (empty = active tab)", "optional": true }
# @raycast.argument2 { "type": "text", "placeholder": "Custom ask (optional)", "optional": true }
# @raycast.packageName CX

# Documentation:
# @raycast.description From a Front conversation (active tab or cnv_id), build a question with customer email, UserID, ProjectIDs and the message body, then open the Bolt admin chat with it pre-filled.
# @raycast.author Jorrit Harmamny

set -euo pipefail

SCRIPT_DIR=$(cd "$(dirname "$0")" && pwd)
ARGS=()
[[ -n "${1:-}" ]] && ARGS+=("$1")
if [[ -n "${2:-}" ]]; then
ARGS+=(--ask "$2")
fi

node "$SCRIPT_DIR/index.js" "${ARGS[@]}"
Loading