ai-agents
agents

Criar agente de IA

Changed on

Cria um agente de IA. No modo manual (padrão) informe name, description, default_provider e default_model; tools aceita apenas os nomes devolvidos pelo endpoint de ferramentas disponíveis. Com auto_generate: true basta enviar description: o sistema redige nome, prompt base, ferramentas e os contextos iniciais do agente, e nesse modo a criação respeita o limite de agentes contratado, respondendo 402 quando ele já foi atingido.

post/api/management/ai/agents

Request

  • Base URL: https://api.olie.ai
  • URL: https://api.olie.ai/api/management/ai/agents
  • Auth: HTTP bearer

Request body

namestring

Nome do agente. Obrigatório quando auto_generate é falso ou ausente.

descriptionstring required

Descrição curta do agente. No modo de geração automática é a partir dela que o agente inteiro é redigido.

default_provider'openrouter' | 'google' | 'openai' | 'anthropic'

Provedor de IA padrão do agente. Obrigatório quando auto_generate é falso ou ausente.

default_modelstring

Identificador do modelo padrão, conforme o id devolvido pelo catálogo de modelos disponíveis. Obrigatório quando auto_generate é falso ou ausente.

base_promptstring

Prompt base que define o comportamento do agente.

toolsstring[]

Ferramentas que o agente pode usar; nomes fora do catálogo são rejeitados.

auto_generateboolean

Quando verdadeiro, nome, prompt base, ferramentas e contextos iniciais são gerados a partir de description e os demais campos enviados são ignorados.

Response

Sucesso

responseboolean

Indicador de sucesso da requisição; sempre verdadeiro nesta resposta.

Changes

    • breaking

      the request property became not nullable

    • breaking

      the request property became not nullable

    • breaking

      removed the enum value clone-project-tool of the request property /

    • breaking

      removed the enum value create-project-tool of the request property /

    • breaking

      removed the enum value edit-project-tool of the request property /

    • breaking

      removed the enum value get-form-answers-tool of the request property /

    • breaking

      removed the enum value get-form-tool of the request property /

    • breaking

      removed the enum value get-funnel-step-transitions-tool of the request property /

    • breaking

      removed the enum value get-model-dynamic-forms-tool of the request property /

    • breaking

      removed the enum value get-project-details-tool of the request property /

    • breaking

      removed the enum value get-project-funnel-metrics-tool of the request property /

    • breaking

      removed the enum value get-project-media-tool of the request property /

    • breaking

      removed the enum value get-project-step-metrics-tool of the request property /

    • breaking

      removed the enum value get-projects-in-step-tool of the request property /

    • breaking

      removed the enum value get-user-tool of the request property /

    • breaking

      removed the enum value index-project-funnels-tool of the request property /

    • breaking

      removed the enum value index-projects-tool of the request property /

    • breaking

      removed the enum value move-project-to-funnel-step-tool of the request property /

    • breaking

      removed the enum value quick-create-project-tool of the request property /

    • breaking

      removed the enum value save-media-tool of the request property /

    • breaking

      removed the enum value set-form-answers-tool of the request property /

    • breaking

      removed the enum value today-tool of the request property /

    • breaking

      removed the enum value web-search-tool of the request property /

    • info

      removed the clone-project-tool enum value from the // response property for the response status

    • info

      removed the create-project-tool enum value from the // response property for the response status

    • info

      removed the edit-project-tool enum value from the // response property for the response status

    • info

      removed the get-form-answers-tool enum value from the // response property for the response status

    • info

      removed the get-form-tool enum value from the // response property for the response status

    • info

      removed the get-funnel-step-transitions-tool enum value from the // response property for the response status

    • info

      removed the get-model-dynamic-forms-tool enum value from the // response property for the response status

    • info

      removed the get-project-details-tool enum value from the // response property for the response status

    • info

      removed the get-project-funnel-metrics-tool enum value from the // response property for the response status

    • info

      removed the get-project-media-tool enum value from the // response property for the response status

    • info

      removed the get-project-step-metrics-tool enum value from the // response property for the response status

    • info

      removed the get-projects-in-step-tool enum value from the // response property for the response status

    • info

      removed the get-user-tool enum value from the // response property for the response status

    • info

      removed the index-project-funnels-tool enum value from the // response property for the response status

    • info

      removed the index-projects-tool enum value from the // response property for the response status

    • info

      removed the move-project-to-funnel-step-tool enum value from the // response property for the response status

    • info

      removed the quick-create-project-tool enum value from the // response property for the response status

    • info

      removed the save-media-tool enum value from the // response property for the response status

    • info

      removed the set-form-answers-tool enum value from the // response property for the response status

    • info

      removed the today-tool enum value from the // response property for the response status

    • info

      removed the web-search-tool enum value from the // response property for the response status

    • breaking

      request property was restricted to a list of enum values

    • breaking

      request property / was restricted to a list of enum values

    • breaking

      the request property became required

    • breaking

      the / request property type changed from no type to string

    • breaking

      the response property / became nullable for the status

    • breaking

      the response property / became nullable for the status

    • breaking

      the response property / became nullable for the status

    • breaking

      the response property / became nullable for the status

    • breaking

      the response property / became nullable for the status

    • breaking

      the response property / became nullable for the status

    • warning

      the request property's maxLength was set to 255

    • warning

      the request property's maxLength was set to 255

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      added the new anthropic enum value to the / response property for the response status

    • warning

      added the new clone-project-tool enum value to the // response property for the response status

    • warning

      added the new create-project-tool enum value to the // response property for the response status

    • warning

      added the new edit-project-tool enum value to the // response property for the response status

    • warning

      added the new get-form-answers-tool enum value to the // response property for the response status

    • warning

      added the new get-form-tool enum value to the // response property for the response status

    • warning

      added the new get-funnel-step-transitions-tool enum value to the // response property for the response status

    • warning

      added the new get-model-dynamic-forms-tool enum value to the // response property for the response status

    • warning

      added the new get-project-details-tool enum value to the // response property for the response status

    • warning

      added the new get-project-funnel-metrics-tool enum value to the // response property for the response status

    • warning

      added the new get-project-media-tool enum value to the // response property for the response status

    • warning

      added the new get-project-step-metrics-tool enum value to the // response property for the response status

    • warning

      added the new get-projects-in-step-tool enum value to the // response property for the response status

    • warning

      added the new get-user-tool enum value to the // response property for the response status

    • warning

      added the new google enum value to the / response property for the response status

    • warning

      added the new index-project-funnels-tool enum value to the // response property for the response status

    • warning

      added the new index-projects-tool enum value to the // response property for the response status

    • warning

      added the new move-project-to-funnel-step-tool enum value to the // response property for the response status

    • warning

      added the new openai enum value to the / response property for the response status

    • warning

      added the new openrouter enum value to the / response property for the response status

    • warning

      added the new quick-create-project-tool enum value to the // response property for the response status

    • warning

      added the new save-media-tool enum value to the // response property for the response status

    • warning

      added the new set-form-answers-tool enum value to the // response property for the response status

    • warning

      added the new today-tool enum value to the // response property for the response status

    • warning

      added the new undefined enum value to the / response property for the response status

    • warning

      added the new web-search-tool enum value to the // response property for the response status

    • info

      added the new optional request property

    • info

      the request property became nullable

    • info

      the request property became nullable

    • info

      added the new anthropic enum value to the request property

    • info

      added the new clone-project-tool enum value to the request property /

    • info

      added the new create-project-tool enum value to the request property /

    • info

      added the new edit-project-tool enum value to the request property /

    • info

      added the new get-form-answers-tool enum value to the request property /

    • info

      added the new get-form-tool enum value to the request property /

    • info

      added the new get-funnel-step-transitions-tool enum value to the request property /

    • info

      added the new get-model-dynamic-forms-tool enum value to the request property /

    • info

      added the new get-project-details-tool enum value to the request property /

    • info

      added the new get-project-funnel-metrics-tool enum value to the request property /

    • info

      added the new get-project-media-tool enum value to the request property /

    • info

      added the new get-project-step-metrics-tool enum value to the request property /

    • info

      added the new get-projects-in-step-tool enum value to the request property /

    • info

      added the new get-user-tool enum value to the request property /

    • info

      added the new google enum value to the request property

    • info

      added the new index-project-funnels-tool enum value to the request property /

    • info

      added the new index-projects-tool enum value to the request property /

    • info

      added the new move-project-to-funnel-step-tool enum value to the request property /

    • info

      added the new openai enum value to the request property

    • info

      added the new openrouter enum value to the request property

    • info

      added the new quick-create-project-tool enum value to the request property /

    • info

      added the new save-media-tool enum value to the request property /

    • info

      added the new set-form-answers-tool enum value to the request property /

    • info

      added the new today-tool enum value to the request property /

    • info

      added the new web-search-tool enum value to the request property /