@agent-comm/piece-agent-comms 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agent-comm/piece-agent-comms",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Agent Comms — voice-agent communications. Triggers on calls, appointments and chats; place outbound calls, upsert contacts and send SMS.",
5
5
  "type": "commonjs",
6
6
  "main": "./src/index.js",
package/src/index.js CHANGED
@@ -19,7 +19,7 @@ exports.agentComms = (0, pieces_framework_1.createPiece)({
19
19
  description: 'Agent communications. Trigger flows on completed calls, new appointments and finished chats; place outbound calls, upsert CRM contacts, and send SMS.',
20
20
  auth: auth_1.bellvoxAuth,
21
21
  minimumSupportedRelease: '0.36.1',
22
- logoUrl: 'https://ajhcthysvaaqunjvqlgy.supabase.co/storage/v1/object/public/public/agent-comms-logo.png',
22
+ logoUrl: 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMjggMTI4IiB3aWR0aD0iMTI4IiBoZWlnaHQ9IjEyOCI+CiAgPGRlZnM+CiAgICA8bGluZWFyR3JhZGllbnQgaWQ9ImFjIiB4MT0iMCIgeTE9IjAiIHgyPSIxIiB5Mj0iMSI+CiAgICAgIDxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iIzJkZDRiZiIvPgogICAgICA8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiMzYjgyZjYiLz4KICAgIDwvbGluZWFyR3JhZGllbnQ+CiAgPC9kZWZzPgogIDxyZWN0IHdpZHRoPSIxMjgiIGhlaWdodD0iMTI4IiByeD0iMzAiIGZpbGw9InVybCgjYWMpIi8+CiAgPHBhdGggdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjgsMjgpIHNjYWxlKDMpIiBmaWxsPSIjZmZmZmZmIiBkPSJNNi42MiAxMC43OWMxLjQ0IDIuODMgMy43NiA1LjE0IDYuNTkgNi41OWwyLjItMi4yYy4yNy0uMjcuNjctLjM2IDEuMDItLjI0IDEuMTIuMzcgMi4zMy41NyAzLjU3LjU3LjU1IDAgMSAuNDUgMSAxVjIwYzAgLjU1LS40NSAxLTEgMS05LjM5IDAtMTctNy42MS0xNy0xNyAwLS41NS40NS0xIDEtMWgzLjVjLjU1IDAgMSAuNDUgMSAxIDAgMS4yNS4yIDIuNDUuNTcgMy41Ny4xMS4zNS4wMy43NC0uMjUgMS4wMmwtMi4yIDIuMnoiLz4KPC9zdmc+Cg==',
23
23
  categories: [shared_1.PieceCategory.COMMUNICATION, shared_1.PieceCategory.SALES_AND_CRM],
24
24
  authors: ['agent-comms'],
25
25
  triggers: [call_completed_1.callCompleted, appointment_created_1.appointmentCreated, chat_completed_1.chatCompleted],
package/src/index.ts CHANGED
@@ -18,7 +18,7 @@ export const agentComms = createPiece({
18
18
  'Agent communications. Trigger flows on completed calls, new appointments and finished chats; place outbound calls, upsert CRM contacts, and send SMS.',
19
19
  auth: bellvoxAuth,
20
20
  minimumSupportedRelease: '0.36.1',
21
- logoUrl: 'https://ajhcthysvaaqunjvqlgy.supabase.co/storage/v1/object/public/public/agent-comms-logo.png',
21
+ logoUrl: 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMjggMTI4IiB3aWR0aD0iMTI4IiBoZWlnaHQ9IjEyOCI+CiAgPGRlZnM+CiAgICA8bGluZWFyR3JhZGllbnQgaWQ9ImFjIiB4MT0iMCIgeTE9IjAiIHgyPSIxIiB5Mj0iMSI+CiAgICAgIDxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iIzJkZDRiZiIvPgogICAgICA8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiMzYjgyZjYiLz4KICAgIDwvbGluZWFyR3JhZGllbnQ+CiAgPC9kZWZzPgogIDxyZWN0IHdpZHRoPSIxMjgiIGhlaWdodD0iMTI4IiByeD0iMzAiIGZpbGw9InVybCgjYWMpIi8+CiAgPHBhdGggdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjgsMjgpIHNjYWxlKDMpIiBmaWxsPSIjZmZmZmZmIiBkPSJNNi42MiAxMC43OWMxLjQ0IDIuODMgMy43NiA1LjE0IDYuNTkgNi41OWwyLjItMi4yYy4yNy0uMjcuNjctLjM2IDEuMDItLjI0IDEuMTIuMzcgMi4zMy41NyAzLjU3LjU3LjU1IDAgMSAuNDUgMSAxVjIwYzAgLjU1LS40NSAxLTEgMS05LjM5IDAtMTctNy42MS0xNy0xNyAwLS41NS40NS0xIDEtMWgzLjVjLjU1IDAgMSAuNDUgMSAxIDAgMS4yNS4yIDIuNDUuNTcgMy41Ny4xMS4zNS4wMy43NC0uMjUgMS4wMmwtMi4yIDIuMnoiLz4KPC9zdmc+Cg==',
22
22
  categories: [PieceCategory.COMMUNICATION, PieceCategory.SALES_AND_CRM],
23
23
  authors: ['agent-comms'],
24
24
  triggers: [callCompleted, appointmentCreated, chatCompleted],
@@ -1,4 +1,5 @@
1
1
  export declare const makeOutboundCall: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
2
2
  assistant_id: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
3
3
  to_number: import("@activepieces/pieces-framework").ShortTextProperty<true>;
4
+ variables: import("@activepieces/pieces-framework").ObjectProperty<false>;
4
5
  }>;
@@ -41,6 +41,11 @@ exports.makeOutboundCall = (0, pieces_framework_1.createAction)({
41
41
  description: 'Destination phone number in E.164 format, e.g. +15557654321.',
42
42
  required: true,
43
43
  }),
44
+ variables: pieces_framework_1.Property.Object({
45
+ displayName: 'Variables',
46
+ description: 'Optional name/value pairs sent into the call as {{variables}} (e.g. customer_name → John). The agent can reference them in its prompt to personalize the conversation.',
47
+ required: false,
48
+ }),
44
49
  },
45
50
  async run(context) {
46
51
  const res = await pieces_common_1.httpClient.sendRequest({
@@ -50,6 +55,7 @@ exports.makeOutboundCall = (0, pieces_framework_1.createAction)({
50
55
  body: {
51
56
  assistant_id: context.propsValue.assistant_id,
52
57
  to_number: context.propsValue.to_number,
58
+ variables: context.propsValue.variables ?? {},
53
59
  },
54
60
  });
55
61
  return res.body;
@@ -37,6 +37,11 @@ export const makeOutboundCall = createAction({
37
37
  description: 'Destination phone number in E.164 format, e.g. +15557654321.',
38
38
  required: true,
39
39
  }),
40
+ variables: Property.Object({
41
+ displayName: 'Variables',
42
+ description: 'Optional name/value pairs sent into the call as {{variables}} (e.g. customer_name → John). The agent can reference them in its prompt to personalize the conversation.',
43
+ required: false,
44
+ }),
40
45
  },
41
46
  async run(context) {
42
47
  const res = await httpClient.sendRequest({
@@ -46,6 +51,7 @@ export const makeOutboundCall = createAction({
46
51
  body: {
47
52
  assistant_id: context.propsValue.assistant_id,
48
53
  to_number: context.propsValue.to_number,
54
+ variables: context.propsValue.variables ?? {},
49
55
  },
50
56
  });
51
57
  return res.body;