Airgentic Help
When CRM sync is on, Airgentic writes the captured visitor profile — and any Human Handoff conversation tags — onto a HubSpot contact, a Marketo lead, or a Salesforce or SugarAI Lead or Contact. The platform owns that write (one sync, one adapter per CRM). You turn destinations on and map extra fields; you do not write a CRM function.
The same rules apply to every destination:
On HubSpot and Marketo, an unknown property name fails the whole contact or lead update. Salesforce and SugarAI leave out a field the record does not have, and write the rest. Either way, create the fields before the first live sync.
You do not need a field mapping for these.
| Visitor detail | HubSpot property | Marketo REST name | Salesforce field | SugarAI field |
|---|---|---|---|---|
email |
email |
Email |
email (new Leads only) |
|
| First name | firstname |
firstName |
FirstName |
first_name |
| Last name | lastname |
lastName |
LastName |
last_name |
| Phone | phone |
phone |
Phone |
phone_mobile |
| Organisation | company |
— | Company (Leads only) |
account_name (Leads only) |
| Conversation tags | airgentic_conversation_tags |
airgenticConversationTags |
Airgentic_Conversation_Tags__c |
airgentic_conversation_tags_c |
| Chat session id | airgentic_session_id |
— | Airgentic_Session_Id__c |
airgentic_session_id_c |
| External user id | airgentic_user_id |
airgenticUserId |
Airgentic_User_Id__c |
airgentic_user_id_c |
Conversation tags are the labels from Human Handoff and from AI tagging (Callback; Enrolment; Visa issue). The CRM field builds up over time: tags from the contact's earlier conversations stay, and this conversation's tags are added to them. Removing a chip removes it from the CRM only if it was added in this conversation. On Marketo the field holds 255 characters, and on Salesforce and SugarAI it holds the length you gave the field. When the combined tags would be longer, the oldest whole tags are left off so the newest ones fit, and the value is never cut in the middle of a tag.
The external user id is written only when the chat session has a user_id — typically from a first-party cookie named in Configuration & Design or data-user-id-cookie. It is an opaque value. It is not mapped to Marketo’s lead id. HttpOnly cookies cannot be read. When the cookie is Marketo's own Munchkin cookie (_mkto_trk), Airgentic does not copy it into airgenticUserId; see Munchkin cookie.
Map extra fields (campus, study area, and so on) only after those properties exist in the CRM, using the exact API / REST name.
Override a built-in name only if your CRM already uses a different property. Otherwise leave the extra mapping list empty for that field. On the Visitor profile screen the built-in rows are listed above your extra mappings. An extra row for the same field replaces the built-in one: that row is marked Replaced below, and the value goes to the property in your extra row.
For a choice-list field, the allowed values in Airgentic must be the CRM picklist's values, copied exactly. The assistant can only store a value from that list, and anything else is discarded before the write. See Choice lists.
Airgentic does not verify an email typed into chat, so a visitor could enter someone else's address. By default, values captured in the conversation replace the values on the matching contact or lead. List the fields that should only ever fill an empty CRM field:
visitor_profile:
integrations:
marketo:
fill_blank_only: [first_name, last_name, phone]
Fields in that list are written only when the CRM record has no value for them. Other fields, such as study area or intended intake, still take the latest value from the conversation. A visitor can still correct a value they gave earlier in the same chat. email and conversation tags cannot be listed.
Values that Airgentic reads from the CRM are shown to staff on Human Handoff, but never to the AI assistant or the visitor. The assistant treats them as unknown until the visitor states or confirms them. So a mistyped email, or a shared computer that matches someone else's record, does not lead the assistant to repeat another person's details.
A shared computer can also match the wrong lead. If the visitor then gives an email for a different lead, everything filled from the cookie-matched record is cleared and is not written to the new lead. Once the visitor has given their own email, a later cookie match to someone else is ignored. If they give the same email as the matched lead, those details stay and are written to that lead.
When a chat session already has a user_id and/or email, Auti looks up the contact once in the background and fills empty visitor-profile fields. Conversation values always win; CRM never overwrites a field the visitor (or the LLM extract) already set.
Search order is visitor_profile.lookup (default: user_id, then email):
| Destination | First lookup | Then |
|---|---|---|
| HubSpot | Contact Search on airgentic_user_id |
Existing email search |
| Marketo | filterType=cookies for a Munchkin cookie, otherwise filterType=airgenticUserId |
filterType=email |
| Salesforce | Airgentic_User_Id__c on Contacts, then Leads |
Email on Contacts, then Leads |
| SugarAI | airgentic_user_id_c on Contacts, then Leads |
Any email address on Contacts, then Leads |
airgenticUserId must be searchable in Marketo Field Management. If it is not filterable, identify falls through to email and this page still applies. On Salesforce and SugarAI, a missing user id field also falls through to email, and converted Leads are never matched because their Contact is the live record.
If your website runs Marketo Munchkin tracking, set the user id cookie to _mkto_trk:
user_id_cookie: _mkto_trk
Then:
A cookie that Marketo has only seen anonymously is not used as a match. The visitor is matched once they give an email address.
Hydrate does not create or patch the CRM record. Writes still happen on the usual sync after the fingerprint changes.
The lookup asks for every mapped field, so phone and custom qualification fields fill as well as name and email. Filled values are visible to staff, not to the assistant (see above).
Lookup runs in the background after the session is identified, so the first answer may not yet include CRM fields. Playbooks that match on a hydrated attribute can add a layer on a later turn (earlier URL or geo layers stay).
A playbook CRM lead source is applied on the next write, not on hydrate, and freezes after that write succeeds. On HubSpot it appears on the conversation note — one note per conversation, updated as the chat goes on (and on a lead-source contact property if one is configured for the service). On Salesforce and SugarAI it is the Lead Source of a Lead Airgentic creates (on SugarAI it must be one of the Lead Source dropdown values). Marketo does not currently map that label.
Optional YAML:
visitor_profile:
lookup: [user_id, email]
Do these in your HubSpot, Marketo, Salesforce or SugarAI account — the one whose credentials you will paste into Airgentic. Salesforce and SugarAI have their own steps in Salesforce setup and SugarAI setup.
HubSpot (Settings → Properties → Contact properties):
| Internal name | Label | Type |
|---|---|---|
airgentic_conversation_tags |
Airgentic conversation tags | Multi-line text |
airgentic_session_id |
Airgentic session id | Single-line text |
airgentic_user_id |
Airgentic user id | Single-line text |
Also create any extra qualification properties you will map (for example campus, study_area).
Add those properties to the About this contact card (pencil on that left-sidebar card). HubSpot stores the values even if they are not on the layout; they are easy to miss until you add them.
Marketo (Admin → Field Management):
| REST API name | Label | Type |
|---|---|---|
airgenticConversationTags |
Airgentic conversation tags | Text / string |
airgenticUserId |
Airgentic user id | Text / string |
Create extra custom fields only for qualification details you will map. Confirm each REST API name in Field Management before adding a mapping in Airgentic.
On Configuration & Design → Visitor profile:
| Destination | Credentials |
|---|---|
| HubSpot | Private app access token with permission to read and write contacts (and notes, if conversation notes are enabled). |
| Marketo | Identity endpoint, REST endpoint, client id, and client secret. |
| Salesforce | My Domain URL, and the consumer key and secret of an External Client App. |
| SugarAI | Instance URL, integration username and password, and the API platform name. |
Tokens and secrets are stored securely. They are not shown again after you save.
Optional: set a placeholder email domain (for example youruniversity.edu) so chats without a real email still upsert as {session id}@{domain}. Use a domain that does not receive mail. Placeholders have limits:
Leave the placeholder domain empty unless you need anonymous chats in the CRM.
Built-in rows (email, name, phone, conversation tags) are already wired. Add extra rows only for fields you created in step 1.
Do not add a mapping for conversation tags unless your CRM uses a different property name than the table above.
airgentic_conversation_tags / airgenticConversationTags updates within a few seconds.Sync does not run when capture is off, CRM sync is off, the destination has no credentials, or there is no email (captured or placeholder).
If a property name in the mapping does not exist in HubSpot or Marketo, the update fails and nothing on that contact or lead is changed. Check the property exists, then try again. Salesforce instead leaves that field out, along with any field the integration user cannot edit and any value a restricted picklist does not allow, and writes the rest. A Salesforce duplicate rule or validation rule can still reject the whole write; the error names the rule. SugarAI likewise leaves out fields the module lacks, read-only fields and dropdown values that are not in the field's list.
A failed or deferred write is retried on the visitor's next turn.
Airgentic can record each conversation as a custom activity on the visitor's lead, so it shows in the lead's Activity Log and can drive smart lists and campaigns ("had an Airgentic conversation in the last 7 days", "handed off to an advisor", "tagged Callback").
quiet_minutes, 5–1440). If the visitor clicks to start a new conversation, the previous one is written straight away.airgenticUserId. Conversations that never match a lead are not written.airgenticConversationTags on the lead.In Marketo, Admin → Marketo Custom Activities → New Custom Activity:
airgenticConversation (or your own; set it as activity_type)conversationId, type String| API name | Type | Contents |
|---|---|---|
startedAt |
Datetime | When the conversation started |
endedAt |
Datetime | Last message |
pageUrl |
Link | Page the visitor was on |
airgenticService |
String | Airgentic service name |
playbooks |
String | Playbooks that applied |
conversationTags |
String | This conversation's tags, including ones the AI added |
handedOff |
Boolean | A human advisor took part |
agentName |
String | Advisor's first name |
messageCount |
Integer | Visitor, AI and advisor messages |
csatRating |
Integer | Visitor's 1–5 rating, if given |
openingQuestion |
String | First thing the visitor asked (first 255 characters) |
summary |
Text | Short AI summary of what the visitor asked and said |
transcript |
Text | Full transcript (only with include_transcript: true) |
transcriptUrl |
Link | Opens the conversation in the Airgentic console, for staff with a console login for this service. Staff who are not signed in sign in first and land on the conversation. |
String and Link values are cut to Marketo's 255 characters before they are sent, so a long value never fails the write. A page URL that is too long loses its query string first, which is usually tracking parameters, and the page address is kept. airgenticService is the service's title in Airgentic, the same value on every conversation from that service. playbooks lists the playbooks that shaped the conversation, and csatRating is the visitor's 1–5 rating, left empty when they did not rate. summary and transcript are Text fields, so they can be much longer; the whole activity is kept under Marketo's size limit by trimming the longest text, usually the transcript.
The Marketo API user also needs the Read-Write Activity permission.
visitor_profile:
integrations:
marketo:
activity:
activity_type: airgenticConversation
quiet_minutes: 30
include_summary: true
include_transcript: false
attributes: {} # e.g. {tags: chatTags} to use your own field name, or {page_url: ""} to leave one out
Transcripts can be long and may contain personal details the visitor typed. Leave include_transcript off if staff should open the transcript in Airgentic instead.
Marketo limits are per instance and shared with your other integrations: 100 calls per 20 seconds, and a daily quota. Airgentic keeps its share small:
max_calls_per_20s (1–100) to change this.daily_call_limit caps Airgentic's own calls per Marketo day.visitor_profile:
integrations:
marketo:
max_calls_per_20s: 20
daily_call_limit: 20000
A conversation that identifies a visitor typically uses one lookup plus one write for each change. Linking a Munchkin cookie adds one call per lead per visit. Conversation activities are batched up to 300 per call, plus one call an hour to read the activity type. Use a dedicated Marketo API user for Airgentic so its usage shows separately under Admin → Integration → Web Services.
Airgentic works with Salesforce editions that include API access: Enterprise, Unlimited and Developer Edition, or Professional with the API add-on.
[not provided]. That placeholder is replaced once the real value is known, and it is never shown to staff as a captured value.visitor_profile:
integrations:
salesforce:
lookup_objects: [Contact, Lead] # search order; leave out Contact to only ever use Leads
update_contacts: true # false: a visitor who is already a Contact gets a new Lead instead
lead_source: Airgentic # Lead Source on new Leads; a playbook lead source wins
placeholders: {LastName: "[not provided]", Company: "[not provided]"}
fill_blank_only: [first_name, last_name, phone]
In Setup, open External Client App Manager → New External Client App:
Give the Run As user a permission set with API Enabled, plus Read, Create and Edit on Leads, Contacts and Tasks, and Edit on the fields Airgentic writes.
In Object Manager, on both Lead and Contact:
| Field label | API name | Type |
|---|---|---|
| Airgentic conversation tags | Airgentic_Conversation_Tags__c |
Text (255) |
| Airgentic user id | Airgentic_User_Id__c |
Text (255), External ID |
| Airgentic session id | Airgentic_Session_Id__c |
Text (255) |
Map any extra fields with their full API name, including __c for custom fields (for example Study_Area__c). For a restricted picklist, copy its values exactly into the Airgentic choice list.
On the Salesforce tab of the Visitor profile screen, enter the My Domain URL (Setup → My Domain, for example https://yourorg.my.salesforce.com), consumer key and consumer secret. The secret is stored securely and not shown again.
Airgentic can record each conversation as a completed Task on the visitor's Lead or Contact, so it shows in the record's Activity timeline. It follows the same timing as the Marketo activity: one Task per conversation, written after 30 quiet minutes, only for conversations matched to a record.
The Task's Subject is "Airgentic conversation". Its Comments hold the AI summary, tags, playbooks, opening question, page, advisor, CSAT rating, a follow-up request, a link to the conversation in the Airgentic console and, with include_transcript: true, the transcript, cut to fit the field.
These custom fields on the Activity object are optional. Airgentic fills each one the org has:
| API name | Type | Contents |
|---|---|---|
Airgentic_Conversation_Id__c |
Text (64) | Conversation id |
Airgentic_Conversation_Tags__c |
Text (255) | This conversation's tags |
Airgentic_Transcript_URL__c |
URL | Opens the conversation in the Airgentic console |
Airgentic_Page_URL__c |
URL | Page the visitor was on |
Airgentic_Message_Count__c |
Number | Visitor, AI and advisor messages |
Airgentic_CSAT_Rating__c |
Number | Visitor's 1–5 rating, if given |
Airgentic_Handed_Off__c |
Checkbox | A human advisor took part |
visitor_profile:
integrations:
salesforce:
activity:
quiet_minutes: 30
include_summary: true
include_transcript: false
task_subject: Airgentic conversation
conversation_id_field: Airgentic_Conversation_Id__c # a conversation that continues updates its Task
attributes: {} # e.g. {page_url: ""} to leave a field out
Without conversation_id_field, a conversation that continues after its Task was written gets a second Task, as on Marketo.
Salesforce gives each org a daily allowance of API calls, shared with your other integrations and counted over a rolling 24 hours. A conversation that identifies a visitor typically uses one or two lookups, plus one write for each change, and each Task takes one or two calls. Airgentic also reads each object's field list about once an hour. If Salesforce reports that the allowance is used up, Airgentic stops calling that org for an hour and then retries. Setup → Company Information shows the allowance and current usage.
Airgentic works with SugarAI Sell (formerly SugarCRM) on SugarCloud, and with on-site instances on a recent release. It uses REST API version v11_27, which Sugar 25.2 to 26.2 provide; set sugar_api_version on the Advanced row for an older on-site release. An on-site instance must be reachable from the internet, because Airgentic's servers call it directly.
[not provided]. That placeholder is replaced once the real value is known, and it is never shown to staff as a captured value.visitor_profile:
integrations:
sugar:
lookup_objects: [Contacts, Leads] # search order; leave out Contacts to only ever use Leads
update_contacts: true # false: a visitor who is already a Contact gets a new Lead instead
lead_source: Web Site # must be a Lead Source dropdown value; left out if it is not
placeholders: {last_name: "[not provided]"}
fill_blank_only: [first_name, last_name, phone]
Create a local Sugar user for Airgentic (not a SAML or LDAP user), and give it a role that can view, create and edit Leads, Contacts and Notes. Use a user that only Airgentic signs in as: Sugar keeps one session per user for each API platform, so a person signing in as the same user on the same platform signs Airgentic out.
In Admin → Configure API Platforms, add a platform named airgentic (or your own name, entered on the SugarAI tab). Sugar rejects sign-ins from a platform that is not registered.
In Admin → Studio, on both Leads and Contacts, create these TextField fields. Studio adds _c to the name you type.
| Field name | Label | Type |
|---|---|---|
airgentic_conversation_tags_c |
Airgentic conversation tags | TextField (255) |
airgentic_user_id_c |
Airgentic user id | TextField (255) |
airgentic_session_id_c |
Airgentic session id | TextField (255) |
Map any extra fields with their full field name, including _c for custom fields (for example study_area_c). For a dropdown field, copy its values exactly into the Airgentic choice list; Airgentic checks each value against the dropdown and leaves out one the list does not have.
On the SugarAI tab of the Visitor profile screen, enter the instance URL (for example https://yourcompany.sugarondemand.com), the integration username and password, and the API platform name. The password is stored securely and not shown again. Leave the Advanced fields blank unless your admin created a custom OAuth key for Airgentic.
Airgentic can record each conversation as a Note on the visitor's Lead or Contact, so it shows in the record's History. It follows the same timing as the Marketo activity: one Note per conversation, written after 30 quiet minutes, only for conversations matched to a record.
The Note's Subject is "Airgentic conversation". Its Description holds the AI summary, tags, playbooks, opening question, page, advisor, CSAT rating, a follow-up request, a link to the conversation in the Airgentic console and, with include_transcript: true, the transcript.
These custom fields on Notes are optional. Airgentic fills each one the instance has:
| Field name | Type | Contents |
|---|---|---|
airgentic_conversation_id_c |
TextField (64) | Conversation id |
airgentic_conversation_tags_c |
TextField (255) | This conversation's tags |
airgentic_transcript_url_c |
URL | Opens the conversation in the Airgentic console |
airgentic_page_url_c |
URL | Page the visitor was on |
airgentic_message_count_c |
Integer | Visitor, AI and advisor messages |
airgentic_csat_rating_c |
Integer | Visitor's 1–5 rating, if given |
airgentic_handed_off_c |
Checkbox | A human advisor took part |
visitor_profile:
integrations:
sugar:
activity:
quiet_minutes: 30
include_summary: true
include_transcript: false
note_subject: Airgentic conversation
conversation_id_field: airgentic_conversation_id_c # a conversation that continues updates its Note
attributes: {} # e.g. {page_url: ""} to leave a field out
Without conversation_id_field, a conversation that continues after its Note was written gets a second Note.
SugarCloud allows 20 API requests per second per instance, shared with your other integrations. It does not slow callers down: an IP address that goes over the limit is blocked for a while. So Airgentic keeps to its own budget of 5 calls per second across all of its servers, and waits for the next second (or the next turn) rather than going over. Set max_calls_per_second (1–20) to change it, leaving room for your other integrations.
visitor_profile:
integrations:
sugar:
max_calls_per_second: 5
A conversation that identifies a visitor typically uses one or two lookups, plus one write for each change, and each Note takes two or three calls. Airgentic also reads each module's field list, and the values of dropdowns it writes, about once an hour. All Airgentic servers share one sign-in, renewed about once an hour. If several calls in a row get no answer, which is what a SugarCloud block looks like, Airgentic stops calling the instance for 10 minutes and logs an error. Writes wait and are retried on a later turn.