View as Markdown
Trengo icon

Trengo ACTION

Log A Voice Call

Logs a phone call from external VOIP applications, See the documentation
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Trengo account once, then configure and run Log A Voice Call from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "trengo-log-a-voice-call",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    trengo: { authProvisionId: "apn_xxxxxxx" },
    channelId: 10,
    recepientPhoneNumber: "Recepient Phone Number",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Log A Voice Call inputs
Property Type Description
channelId Channel ID integer
Channel ID
Required Dynamic
recepientPhoneNumber Recepient Phone Number string
Should be a valid phone number.
Required
callDirection Direction string
The direction of the phone call.
Required
contactName Name string
The name of the contact. Only used when the contact does not already exists.
Optional
note Note string
An optional note used to create an intern ticket message.
Optional
duration Duration integer
The duration in seconds of the phone call.
Optional
recordingUrl Note string
A public recording URL.
Optional

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
trengo-log-a-voice-call
Version
0.0.13
App
Trengo
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes