The Spoke Phone API provides a means to programmatically interact with Spoke Phone's voice and SMS services. With this API on Pipedream, you can automate call logging, SMS messaging, and dynamically manage users and call flows. Pipedream's serverless platform allows for the creation of complex workflows, integrating Spoke Phone with a multitude of other apps, triggering actions based on events such as incoming calls or messages, and even processing data with built-in code steps.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
spoke_phone: {
type: "app",
app: "spoke_phone",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://integration.spokephone.com/users`,
headers: {
Authorization: `Bearer ${this.spoke_phone.$auth.oauth_access_token}`,
},
})
},
})
Sync Call Records with CRM: Automatically log call details into a CRM like Salesforce or HubSpot whenever a call ends on Spoke Phone. You can extract call metadata, including duration, participants, and outcome, and push this data to the CRM to keep customer records up to date.
SMS Customer Support Tickets: Create a workflow that listens for incoming SMS messages on Spoke Phone and creates a new support ticket in a tool like Zendesk or Jira. This allows your support team to track and respond to customer inquiries that come in via SMS.
Voice Transcription Analysis: After a call finishes, run a workflow that takes the call recording from Spoke Phone, sends it to a service like Google Speech-to-Text for transcription, analyzes the sentiment with a tool like Google Natural Language API, and then stores the results in a database for quality assurance and training purposes.
Spoke Phone uses OAuth authentication. When you connect your Spoke Phone account, Pipedream will open a popup window where you can sign into Spoke Phone and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Spoke Phone API.
Pipedream requests the following authorization scopes when you connect your account:
POST
https://auth.spokephone.com/oauth/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{custom_fields.client_id}}
&
client_secret={{custom_fields.client_secret}}
&
grant_type=client_credentials
POST
https://auth.spokephone.com/oauth/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{custom_fields.client_id}}
&
client_secret={{custom_fields.client_secret}}
&
grant_type=client_credentials