communication
Gong CLI for Shell Scripts
Use the Gong CLI for shell scripts with headless JSON commands, schema discovery, credentials, and permission controls.
8 functions 8 read 0 write API key auth
Gong CLI for Shell Scripts
Call integration functions from shell scripts with stable JSON input and output.
Use shell scripts for small local automations that need one or more integration calls. The Gong CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.
Command Shape
# Gong CLI for Shell Scripts
kosmokrator integrations:configure gong --set access_key="$GONG_ACCESS_KEY" --set access_key_secret="$GONG_ACCESS_KEY_SECRET" --enable --read allow --write ask --json
kosmo integrations:call gong.gong_list_calls '{"fromDateTime":"example_fromDateTime","toDateTime":"example_toDateTime","workspaceId":"example_workspaceId","userId":"example_userId","cursor":"example_cursor","limit":1}' --json Discovery Before Execution
Agents and scripts can inspect Gong docs and schemas before choosing a function.
kosmo integrations:docs gong --json
kosmo integrations:docs gong.gong_list_calls --json
kosmo integrations:schema gong.gong_list_calls --json
kosmo integrations:search "Gong" --json
kosmo integrations:list --json Useful Gong CLI Functions
| Function | Type | Parameters | Description |
|---|---|---|---|
gong.gong_list_calls | Read | fromDateTime, toDateTime, workspaceId, userId, cursor, limit | List call recordings from Gong. Filter by date range, participants, or other criteria. Returns call metadata including title, duration, participants, and timestamps. |
gong.gong_get_call | Read | callId | Get detailed information about a specific call in Gong, including metadata, participants, and tracking data. |
gong.gong_list_transcripts | Read | page, limit, download_date, call_type, status | List call transcripts from Gong. Filter by download date, call type, or status. Returns transcript metadata including call ID, language, and processing status. |
gong.gong_get_transcript | Read | transcript_id | Get the full transcript of a specific call in Gong, including speaker turns, timestamps, and transcript metadata. |
gong.gong_list_users | Read | cursor, limit | List users in the Gong workspace. Returns user details including name, email, title, and manager. |
gong.gong_list_deals | Read | fromDateTime, toDateTime, pipelineId, stageIds, cursor, limit | List deals tracked in Gong. Filter by date range or pipeline stage. Returns deal metadata including name, stage, amount, and associated users. |
gong.gong_list_interactions | Read | fromDateTime, toDateTime, activityTypes, cursor, limit | List customer interactions tracked in Gong. Filter by date range, activity type, or participants. Returns interaction metadata including type, duration, and parties involved. |
gong.gong_get_current_user | Read | none | Get the currently authenticated Gong user profile. Useful for verifying credentials and understanding whose data is being accessed. |
Automation Notes
- Use
--jsonfor machine-readable output. - Keep credentials out of argv by using environment variables or stored KosmoKrator configuration.
- Configure read/write policy before unattended runs; use
--forceonly for trusted automation. - Use the MCP gateway instead when the agent needs dynamic tool discovery inside a conversation.