struct parameter lists the fields you want back and, optionally, the type of each one, so People Intelligence, Company Intelligence and QA Agent return data your code can use without parsing.
Define a field
Each key instruct is a field name. Its value is either a description or a typed object.
Field names must be letters, numbers and underscores. The description is what the agent researches, so say exactly what you want:
"Current job title at the company in the input" beats "title".
Use a typed object for every field that isn’t a string. It’s the only form that behaves the same on every endpoint (details below).
Types
Parse
dict values client-side with json.loads() (Python) or JSON.parse() (JavaScript).
Enums
enum and list[enum] require a non-empty options list. The value is constrained to those options.
Nested objects
object and object_list take subfields: a list of {"key", "type", "description"} objects. A subfield can be any type except object and object_list; enum and list[enum] subfields take options. type defaults to string and description is optional.
Missing values
Every field you request is present in the response. A field the agent couldn’t establish isnull (Company Intelligence returns [] for list fields). Values are never invented to satisfy a type.
How each endpoint resolves types
In Company Intelligence, a field without an explicit
type whose key also appears in target_company with a value takes that value’s type. Company Intelligence follows the People Intelligence column when any field in the struct is an object or object_list.
QA Agent accepts descriptions only and returns every field as a string. See QA Agent.
Type casting
When a researched value doesn’t match its field’s type, Sixtyfour converts it only if the conversion loses nothing:
Nothing else is cast:
"about 50" never becomes 50.
Input fields in the output
In People Intelligence, fields you send inlead_info but don’t list in struct come back in structured_data unchanged, with their original values and types. Fields you do list in struct are researched and returned with the struct’s type, even if you sent a value for them.
Generate a struct from a description
POST /struct-builder/generate turns a plain-English description of the data you want into a list of typed fields.
struct as a map, so key each field by its name:
There is no image type. A field whose description asks for an image (a headshot, a logo, a screenshot) is an ordinary string field whose value is a permanent image URL hosted by Sixtyfour. See Image fields.