This topic was automatically generated from Slack. You can find the original thread here.
Hey guys I need to connect a CRM (such as Pipedrive or GHL) and SMS platform (such as Telnyx), which I see is possible, and then relay all SMS text messages being sent back and fourth through a conversational AI platform (such as Voiceflow).
This way the leads are put in the CRM, the texts are sent through the SMS platform, and the actual responses are received and the answers are made through Voiceflow. I am struggling to confirm if this can be done due to my lack of knowledge and would greatly appreciate any confirmation or advice! Also open to other suggestions if someone has a better idea as well! Thanks in advance!
It’s definitely possible to connect a CRM like Pipedrive with an SMS platform like Telnyx and a conversational AI platform like Voiceflow using Pipedream. You can create a workflow that triggers on new or updated persons in Pipedrive, sends SMS messages via Telnyx, and processes responses through Voiceflow. To get started, you can use the “New Person” or “Updated Person” triggers for Pipedrive in your Pipedream workflow. Then, you can use the Telnyx API to send SMS messages. Here’s an example of how to send an SMS using Telnyx in a Pipedream component: ```
import { axios } from “@pipedream/platform”; export default defineComponent({ props: { telnyx: { type: “app”, app: “telnyx”, }, toPhoneNumber: { type: “string”, label: “Recipient Phone Number”, }, fromPhoneNumber: { type: “string”, label: “Sender Phone Number”, }, message: { type: “string”, label: “Message Content”, }, }, async run({ steps, $ }) { return await axios($, { method: “POST”, url: “https://api.telnyx.com/v2/messages”, headers: { Authorization: Bearer ${this.telnyx.$auth.api_key}, }, data: { to: this.toPhoneNumber, from: this.fromPhoneNumber, text: this.message, }, }); }, });
Okay that makes sense thank you. And can the integration of Voiceflow into this workflow be done within Pipedream, or would this have to be externally done? I am very confused about how to make this interact with Voiceflow. Thanks!
Yes, you can integrate Voiceflow into your Pipedream workflow. To do this, you’ll need to use Voiceflow’s API within a Pipedream component code step. You can make API calls to Voiceflow using the axios function from the @pipedream/platform package, just like you would with any other API. First, you’ll need to refer to Voiceflow’s API documentation to understand how to interact with their API and what endpoints to use for your specific use case. Once you have that information, you can create a Pipedream component code step that makes the necessary API calls to Voiceflow and processes the responses as needed. If you need help with a specific API call or have any questions, feel free to ask!