Skip to content

Commit 911b0f1

Browse files
committed
Add a people and company search agent
1 parent fc39ebd commit 911b0f1

File tree

2 files changed

+541
-0
lines changed

2 files changed

+541
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,267 @@
1+
icon: ""
2+
name: Company Search Agent
3+
config:
4+
model: gpt-4o-mini
5+
layout: >-
6+
<pa-layout sx='{"maxWidth": "1200px", "margin": "0 auto", "padding": "0",
7+
"height": "100%"}'>
8+
<pa-grid container="true" spacing="2" sx='{"height": "100%", "flexDirection": "column"}'>
9+
<pa-grid item="true" xs="12" sx='{"overflow": "auto !important", "flex": "1 1 0 !important", "padding": "0 !important"}'>
10+
<pa-chat-output></pa-chat-output>
11+
</pa-grid>
12+
<pa-grid item="true" xs="12" sx='{"alignSelf": "flex-end", "flex": "0 !important", "width": "100%", "padding": "0 !important"}'>
13+
<pa-input-form clearonsubmit="true"></pa-input-form>
14+
</pa-grid>
15+
</pa-grid>
16+
</pa-layout>
17+
provider: openai
18+
max_steps: 10
19+
temperature: 0.7
20+
user_message: ""
21+
window_color: "#477195"
22+
input_template: ""
23+
system_message: >-
24+
You are Promptly Company SearchGPT, a helpful assistant from Promptly. You
25+
help users find companies given a set of filter conditions from the user.
26+
Filter conditions you accept are
27+
28+
lookalike: When user provided this they are trying to search for company
29+
similar to the one provided in lookalike
30+
31+
industries: A comma Separated list of industries the user is interested in
32+
33+
company_size: The number of employees for companies
34+
35+
keywords: A comma separated list of keywords that are associated with
36+
companies
37+
38+
locations: A comma separated list of locations the company's hq is located
39+
in.
40+
41+
42+
If no user filters are provided add a default filter of companies in
43+
location Milpitas with employee size of 1,10.
44+
45+
You have access to the following tools, use these tools to accomplish the
46+
task.
47+
## Organization Search
48+
- Uses Apollo's database to search for companies that match the filter criteria.
49+
50+
## Web search (web_search2)
51+
52+
- Searches the web for URLs containing realtime information. Only use web
53+
search when you cannot answer from your knowledge. Once the URLs are
54+
available, visit these URLs with static web browser to pull more
55+
information.
56+
57+
## Static web browser (static_web_browser3)
58+
59+
- Access a URL to retrieve information from a web page. Following are the
60+
only valid instruction types for browser input: Click, Type, Wait, Goto,
61+
Copy, Terminate, Enter, Scrollx, Scrolly
62+
63+
Follow the below guidelines while responding to the user:
64+
1. Always Provide your response in JSON only, when responding in JSON format, never wrap your response in ```json <CODE_TEXT>```.
65+
2. Never ask users any follow up questions.
66+
67+
Your response will be used to make an API call, hence the response should
68+
always be a valid response and should adhere to the below schema.
69+
70+
RESPONSE SCHEMA:
71+
72+
{
73+
"type": "object",
74+
"properties": {
75+
"results": {
76+
"type": "array",
77+
"items": [
78+
{
79+
"type": "object",
80+
"properties": {
81+
"name": {
82+
"type": "string"
83+
},
84+
"description": {
85+
"type": "string"
86+
},
87+
"industry": {
88+
"type": "string"
89+
},
90+
"size": {
91+
"type": "string"
92+
},
93+
"location": {
94+
"type": "string"
95+
},
96+
"domain": {
97+
"type": "string"
98+
},
99+
"linkedin_url": {
100+
"type": "string"
101+
}
102+
},
103+
"required": [
104+
"name",
105+
"description",
106+
"industry",
107+
"size",
108+
"location",
109+
"domain",
110+
"linkedin_url"
111+
]
112+
}
113+
]
114+
}
115+
},
116+
"required": [
117+
"results"
118+
]
119+
}
120+
121+
Now let's think step by step -
122+
assistant_image: ""
123+
welcome_message: ""
124+
chat_history_limit: 0
125+
suggested_messages: []
126+
type_slug: agent
127+
processors:
128+
- id: organization_search1
129+
name: Organization Search
130+
input:
131+
organization_ids: []
132+
q_organization_name: ""
133+
organization_locations: []
134+
organization_not_locations: []
135+
q_organization_keyword_tags: []
136+
organization_num_employees_ranges: []
137+
config:
138+
page: 1
139+
limit: 10
140+
page_size: 19
141+
connection_id: feae386b-1f4c-49cd-a5b4-5623362da374
142+
description: >-
143+
Use the Organization Search tool to find companies in the Apollo database.
144+
organization_num_employees_ranges The number range of employees working
145+
for the company. This enables you to find companies based on headcount.
146+
You can add multiple ranges to expand your search results e.g 1,10.
147+
organization_locations The location of the company headquarters. You can
148+
search across cities, US states, and countries example north america,
149+
california. organization_not_locations Exclude companies from search
150+
results based on the location of the company headquarters. You can use
151+
cities, US states, and countries as locations to exclude. Filter search
152+
results based on keywords associated with companies. For example, you can
153+
enter mining as a value to return only companies that have an association
154+
with the mining industry.
155+
dependencies: []
156+
provider_slug: apollo
157+
processor_slug: organization_search
158+
output_template:
159+
jsonpath: null
160+
markdown: "{{response}}"
161+
- id: web_search2
162+
name: Web Search
163+
input:
164+
query: ""
165+
config:
166+
k: 5
167+
search_engine: Google
168+
advanced_params: ""
169+
description: Search the web for answers
170+
dependencies: []
171+
provider_slug: promptly
172+
processor_slug: web_search
173+
output_template:
174+
jsonpath: $.results
175+
markdown: |-
176+
{% for result in results %}
177+
{{result.text}}
178+
{{result.source}}
179+
180+
{% endfor %}
181+
- id: static_web_browser3
182+
name: Static Web Browser
183+
input:
184+
url: ""
185+
instructions: []
186+
config:
187+
timeout: 10
188+
extract_html: false
189+
stream_video: false
190+
tags_to_extract: []
191+
capture_screenshot: true
192+
capture_session_video: false
193+
description: >-
194+
Visit a URL and perform actions. Copy, Wait, Goto, Enter, Scollx, Scrolly
195+
and Click are the valid instruction types
196+
dependencies: []
197+
provider_slug: promptly
198+
processor_slug: static_web_browser
199+
output_template:
200+
jsonpath: $.text
201+
markdown: >
202+
203+
{% if session %}
204+
205+
### Live Browser Session
206+
207+
<promptly-web-browser-embed
208+
wsUrl="{{session.ws_url}}"></promptly-web-browser-embed>
209+
210+
{% endif %}
211+
212+
{% if videos %}
213+
214+
### Videos
215+
216+
{% for video in videos %}
217+
218+
<pa-asset url="{{video.data}}" type="{{video.mime_type}}"></pa-asset>
219+
220+
{% endfor %}
221+
222+
{% endif %}
223+
224+
{% if content.screenshot %}
225+
226+
### Screenshot
227+
228+
<pa-asset url="{{content.screenshot}}" type="image/png"></pa-asset>
229+
230+
{% endif %}
231+
232+
{{text}}
233+
description: ""
234+
input_fields:
235+
- name: lookalike
236+
type: string
237+
title: Lookalike
238+
required: false
239+
description: Fetch companies similar to lookalike
240+
- name: industries
241+
type: string
242+
title: Industries
243+
required: false
244+
description: Provide Comma Separated list of industries
245+
- name: company_size
246+
type: string
247+
title: Company size
248+
required: true
249+
description: Provide a company size
250+
- name: keywords
251+
type: string
252+
title: Keywords
253+
required: true
254+
description: Provide a comma separated list of keywords to add
255+
- name: location_
256+
type: string
257+
title: "Location "
258+
required: true
259+
description: Provide a comma separated list of locations
260+
output_template:
261+
markdown: "{{agent.content}}"
262+
version: 0
263+
is_published: false
264+
web_config: null
265+
twilio_config: null
266+
slack_config: null
267+
discord_config: null

0 commit comments

Comments
 (0)