Skip to content
SIHub Guides
Select language
Guides/CRM agent actions
SIHub · Guides

CRM actions for agents

internal_crm works with the existing companies, sales opportunities and service cases of the current workspace. search returns at most 100 entries and next_offset; get loads an entry. create and update use the same field validation as the CRM interface. Updates require the previously read revision and the complete record (record.name, record.status, record.data).

create_service_case creates a CRM service case with a verified conversation_id. The summary is stored explicitly in record.data.notes; conversation content is not copied automatically. create_followup creates a service case as a follow-up task, linked via source_kind and source_id. Responsibility and due date are set via record.data.owner_id and due_date respectively. Both actions are then visible in the existing CRM interface.

The caller provides execute_context with an active user in the workspace, a stable request_id per approved action, and a transaction. Write actions require the owner/admin/editor role. Repeating the same work order identifier returns the stored result; different parameters lead to HTTP 409. Business references and conversation assignments remain tied to the client. The transaction must be completed by the caller.

External providers

HubSpot uses a private app access token. The connection check requires crm.objects.companies.read; other objects need the respective read permissions, and write actions need corresponding write permissions. Companies, contacts, deals and tickets are supported via search, get, create, update. The API properties (properties) depend on the HubSpot account, especially pipeline and stage IDs. The adapter uses the still supported v3 API. A failed write call must not be retried automatically: HubSpot offers no general idempotency guarantee here.

Zendesk requires the subdomain and an OAuth access token of an agent or admin. search/get read tickets, create_ticket creates a service case and update_ticket changes it. Comments are internal. Updates use safe_update with the previously read updated_at as updated_stamp. Creating requires idempotency_key; according to its documentation, Zendesk stores these keys for two hours. Account triggers can also send notifications for API actions; write actions therefore belong in the existing human approval of the integration hub.

The adapters use fixed HTTPS targets, no redirects and limited timeouts. Credentials are managed by the integration hub. Live account checks require the customer's own credentials.

Official references: