Skip to content

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

feat(twilio): ui improvement (#16357)

Talal Jaber40e46395c93d
diff --git a/bun.lock b/bun.lock
index 0095c0fcb79..751b4cdc302 100644
--- a/bun.lock
+++ b/bun.lock
@@ -9349,7 +9349,7 @@
},
"packages/pieces/community/twilio": {
"name": "@activepieces/piece-twilio",
- "version": "0.6.1",
+ "version": "0.7.0",
"dependencies": {
"@activepieces/core-piece-types": "workspace:*",
"@activepieces/core-utils": "workspace:*",
diff --git a/packages/pieces/community/twilio/package.json b/packages/pieces/community/twilio/package.json
index b768f8522f7..97ad59506eb 100644
--- a/packages/pieces/community/twilio/package.json
+++ b/packages/pieces/community/twilio/package.json
@@ -1,6 +1,6 @@
{
"name": "@activepieces/piece-twilio",
- "version": "0.6.1",
+ "version": "0.7.0",
"main": "./dist/src/index.js",
"types": "./dist/src/index.d.ts",
"scripts": {
diff --git a/packages/pieces/community/twilio/src/lib/action/download-recording-media.ts b/packages/pieces/community/twilio/src/lib/action/download-recording-media.ts
index 113e853fc4f..abecd8f94ee 100644
--- a/packages/pieces/community/twilio/src/lib/action/download-recording-media.ts
+++ b/packages/pieces/community/twilio/src/lib/action/download-recording-media.ts
@@ -22,10 +22,11 @@ export const twilioDownloadRecordingMedia = createAction({
description: 'MP3 files are smaller. WAV keeps full quality.',
required: false,
defaultValue: 'mp3',
+ display: 'cards',
options: {
options: [
- { label: 'MP3', value: 'mp3' },
- { label: 'WAV', value: 'wav' },
+ { label: 'MP3', value: 'mp3', description: 'Smaller file', icon: 'file' },
+ { label: 'WAV', value: 'wav', description: 'Full quality', icon: 'file' },
],
},
}),
diff --git a/packages/pieces/community/twilio/src/lib/action/make-call.ts b/packages/pieces/community/twilio/src/lib/action/make-call.ts
index 898879d42b2..d3cb3106002 100644
--- a/packages/pieces/community/twilio/src/lib/action/make-call.ts
+++ b/packages/pieces/community/twilio/src/lib/action/make-call.ts
@@ -11,6 +11,22 @@ export const twilioMakeCall = createAction({
audience: 'both',
aiMetadata: { description: 'Places an outbound voice call from a Twilio number that reads a text-to-speech message to the recipient. Use to deliver a spoken notification or alert by phone. Requires both numbers in E.164 format and the message text; each call places a real, billable phone call, so it is not idempotent.', idempotent: false },
displayName: 'Call Phone',
+ propertyGroups: [
+ {
+ key: 'numbers',
+ display: 'section',
+ label: 'Phone numbers',
+ icon: 'users',
+ props: ['from', 'to'],
+ },
+ {
+ key: 'speech',
+ display: 'section',
+ label: 'Message',
+ icon: 'text',
+ props: ['message', 'voice', 'language'],
+ },
+ ],
props: {
from: twilioCommon.phoneNumberDropdown({
displayName: 'From',
@@ -66,6 +82,11 @@ export const twilioMakeCall = createAction({
description: 'Seconds to ring before giving up, up to 600. Empty: 60.',
required: false,
advanced: true,
+ display: 'stepper',
+ min: 5,
+ max: 600,
+ step: 5,
+ defaultValue: 60,
})
},
async run(context) {