LogoLogo
Book a DemoWebsite
  • Overview
  • Basics
    • Design Your Data
    • Templates
    • Fields
    • Research Questions
    • Profiles
  • Client
    • Templates
    • Fields
    • Research Questions
    • Profiles
  • API Reference
    • Templates
    • Fields
    • Research Questions
    • Profiles
  • Quick Starts
    • Company
Powered by GitBook
On this page
  1. Quick Starts

Company

Resources to start creating Company data


Client Template

from evrim import Evrim
from evrim.types.template import Template
from evrim.types.field import Field
import os
import time


# create a template using the provided types
template = Template(
    name="company",
    description="Collect high level information about a company",
    fields=[
        Field(
            name="name",
            description="Official legal name of the company",
            type="str",
        ),
        Field(
            name="description",
            description="A short description of the company",
            type="str",
        ),
        Field(
            name="industry",
            description="The industry the company operates in",
            type="str",
        ),
        Field(
            name="employees",
            description="The number of employees in the company",
            type="int",
        ),
        Field(
            name="website",
            description="The company's website",
            type="str",
        ),
    ],
    questions=["What are the main products or services offered by the company?"],
)


client = Evrim(api_token=os.getenv("EVRIM_API_KEY"))
template = client.templates.create(template)
PreviousQuick Starts

Last updated 3 months ago