@patchbay-nebius/agent 0.0.0-stage → 0.1.0

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.
@@ -0,0 +1,192 @@
1
+ {
2
+ "prompt": "When someone submits our Typeform contact form, create the lead in Pipedrive as organization, person and deal.",
3
+ "plan": {
4
+ "summary": "On every Typeform form_response webhook, create a Pipedrive organization (if a company was given), a person linked to it, and a deal for that person.",
5
+ "source": {
6
+ "app": "Typeform",
7
+ "trigger": "form_response webhook",
8
+ "docsQuery": "Typeform webhooks form_response payload answers field ref"
9
+ },
10
+ "target": {
11
+ "app": "Pipedrive",
12
+ "action": "create organization, person and deal",
13
+ "docsQuery": "Pipedrive API v1 add person add deal add organization request body api token"
14
+ },
15
+ "fieldMapping": [
16
+ {
17
+ "from": "answer with field ref lead_name (text)",
18
+ "to": "person.name"
19
+ },
20
+ {
21
+ "from": "answer with field ref lead_email (email)",
22
+ "to": "person.email[0].value"
23
+ },
24
+ {
25
+ "from": "answer with field ref lead_phone (phone_number)",
26
+ "to": "person.phone[0].value"
27
+ },
28
+ {
29
+ "from": "answer with field ref lead_company (text)",
30
+ "to": "organization.name, deal title"
31
+ }
32
+ ],
33
+ "assumptions": [
34
+ "Field refs are configurable because every Typeform form uses different refs.",
35
+ "Webhook signature verification happens before the connector is called.",
36
+ "Every submission is a new lead; no deduplication against existing persons."
37
+ ]
38
+ },
39
+ "sources": [
40
+ {
41
+ "title": "Webhooks payload | Typeform Developer Platform",
42
+ "url": "https://www.typeform.com/developers/webhooks/example-payload/",
43
+ "official": true
44
+ },
45
+ {
46
+ "title": "Webhooks | Typeform Developer Platform",
47
+ "url": "https://www.typeform.com/developers/webhooks/",
48
+ "official": true
49
+ },
50
+ {
51
+ "title": "Persons - Pipedrive API Reference",
52
+ "url": "https://developers.pipedrive.com/docs/api/v1/Persons",
53
+ "official": true
54
+ },
55
+ {
56
+ "title": "Deals - Pipedrive API Reference",
57
+ "url": "https://developers.pipedrive.com/docs/api/v1/Deals",
58
+ "official": true
59
+ }
60
+ ],
61
+ "spec": {
62
+ "source": {
63
+ "app": "Typeform",
64
+ "role": "source",
65
+ "method": "POST",
66
+ "url": "(your webhook endpoint)",
67
+ "auth": {
68
+ "type": "none",
69
+ "envVar": "TYPEFORM_WEBHOOK_SECRET"
70
+ },
71
+ "example": {
72
+ "event_id": "01H...",
73
+ "event_type": "form_response",
74
+ "form_response": {
75
+ "form_id": "lT4Z3j",
76
+ "token": "a3a12ec67a1365927098a606107fac15",
77
+ "submitted_at": "2026-10-01T09:00:00Z",
78
+ "answers": [
79
+ {
80
+ "type": "text",
81
+ "field": {
82
+ "id": "f1",
83
+ "ref": "lead_name",
84
+ "type": "short_text"
85
+ },
86
+ "text": "Ada Lovelace"
87
+ },
88
+ {
89
+ "type": "email",
90
+ "field": {
91
+ "id": "f2",
92
+ "ref": "lead_email",
93
+ "type": "email"
94
+ },
95
+ "email": "ada@example.com"
96
+ }
97
+ ]
98
+ }
99
+ },
100
+ "docsUrl": "https://www.typeform.com/developers/webhooks/example-payload/",
101
+ "notes": [
102
+ "Each answer carries its value under a key named after its type (text, email, phone_number, ...).",
103
+ "Answers are matched by field.ref, which the form owner can set; field ids are generated."
104
+ ]
105
+ },
106
+ "target": [
107
+ {
108
+ "app": "Pipedrive",
109
+ "role": "target",
110
+ "method": "POST",
111
+ "url": "https://api.pipedrive.com/v1/organizations",
112
+ "auth": {
113
+ "type": "header",
114
+ "name": "x-api-token",
115
+ "envVar": "PIPEDRIVE_API_TOKEN"
116
+ },
117
+ "example": {
118
+ "name": "Analytical Engines Ltd"
119
+ },
120
+ "responseExample": {
121
+ "success": true,
122
+ "data": {
123
+ "id": 11
124
+ }
125
+ },
126
+ "docsUrl": "https://developers.pipedrive.com/docs/api/v1/Organizations",
127
+ "notes": [
128
+ "Only call when a company was answered."
129
+ ]
130
+ },
131
+ {
132
+ "app": "Pipedrive",
133
+ "role": "target",
134
+ "method": "POST",
135
+ "url": "https://api.pipedrive.com/v1/persons",
136
+ "auth": {
137
+ "type": "header",
138
+ "name": "x-api-token",
139
+ "envVar": "PIPEDRIVE_API_TOKEN"
140
+ },
141
+ "example": {
142
+ "name": "Ada Lovelace",
143
+ "email": [
144
+ {
145
+ "value": "ada@example.com",
146
+ "primary": true,
147
+ "label": "work"
148
+ }
149
+ ],
150
+ "org_id": 11
151
+ },
152
+ "responseExample": {
153
+ "success": true,
154
+ "data": {
155
+ "id": 22
156
+ }
157
+ },
158
+ "docsUrl": "https://developers.pipedrive.com/docs/api/v1/Persons",
159
+ "notes": [
160
+ "email and phone are arrays of { value, primary, label }.",
161
+ "The API token can be sent as the x-api-token header instead of the api_token query parameter."
162
+ ]
163
+ },
164
+ {
165
+ "app": "Pipedrive",
166
+ "role": "target",
167
+ "method": "POST",
168
+ "url": "https://api.pipedrive.com/v1/deals",
169
+ "auth": {
170
+ "type": "header",
171
+ "name": "x-api-token",
172
+ "envVar": "PIPEDRIVE_API_TOKEN"
173
+ },
174
+ "example": {
175
+ "title": "Website lead: Analytical Engines Ltd",
176
+ "person_id": 22,
177
+ "org_id": 11
178
+ },
179
+ "responseExample": {
180
+ "success": true,
181
+ "data": {
182
+ "id": 33
183
+ }
184
+ },
185
+ "docsUrl": "https://developers.pipedrive.com/docs/api/v1/Deals",
186
+ "notes": [
187
+ "title is required. Link both person_id and org_id so the deal shows up on the organization."
188
+ ]
189
+ }
190
+ ]
191
+ }
192
+ }