1. Add your Morada.ai access
- In the Sources tab, click on the “Add source” button located on the top right of your screen. Then, select the Morada.ai option from the list of connectors.
- Click Next and you’ll be prompted to add your access.
-
API Key: Your workspace API key, in the
mk_...format. Generate it inside Morada.ai under Integrações → Configurar API. - Start Date: (Optional, advanced) The earliest change timestamp to sync on the first run. Leave it empty to export the full history of your workspace — the message errors and analytics streams then cover the last 365 days, since those endpoints always require a time window.
- Click Next.
2. Select your Morada.ai streams
-
The next step is letting us know which streams you want to bring. You can select entire groups of streams or only a subset of them.
Tip: The stream can be found more easily by typing its name.
If you don’t see a stream you were expecting to find, please check if your access key has access to it. If that’s not the issue, then it’s probably because we still haven’t implemented it. Feel free to get in touch and request it!
- Click Next.
3. Configure your Morada.ai data streams
- Customize how you want your data to appear in your catalog. Select the desired layer where the data will be placed, a name for each table (which will effectively contain the fetched data) and the type of sync.
- Layer: choose between the existing layers on your catalog. This is where you will find your new extracted tables as the extraction runs successfully.
- Table name: we suggest a name, but feel free to customize it. You have the option to add a prefix to all tables at once and make this process faster!
- Sync Type: depending on the data you are bringing to the lake, you can choose between INCREMENTAL and FULL_TABLE. Read more about Sync Types here.
- Click Next.
4. Configure your Morada.ai data source
- Describe your data source for easy identification within your organization. You can inform things like what data it brings, to which team it belongs, etc.
- To define your Trigger, consider how often you want data to be extracted from this source. This decision usually depends on how frequently you need the new table data updated (every day, once a week, or only at specific times).
- Optionally, you can define some additional settings (if available).
- Configure Delta Log Retention and determine for how long we should store old states of this table as it gets updated. Read more about this resource here.
- Determine when to execute an Additional Full Sync. This will complement the incremental data extractions, ensuring that your data is completely synchronized with your source every once in a while.
Check your new source!
- Click Next to finalize the setup. Once completed, you’ll receive confirmation that your new source is set up!
- You can view your new source on the Sources page. Now, for you to be able to see it on your Catalog, you have to wait for the pipeline to run. You can now monitor it on the Sources page to see its execution and completion. If needed, manually trigger the pipeline by clicking on the refresh icon. Once executed, your new table will appear in the Catalog section.
If you encounter any issues, reach out to us via Slack, and we’ll gladly assist you!
How the data is replicated
The contacts, conversations, deals, messages, and message errors streams are change feeds keyed byid, and every record carries a cursor_at timestamp that marks when the record last changed. Incremental syncs ask Morada.ai for everything that changed after the highest cursor_at already extracted, so records that were updated in the source reappear and are updated in your table.
Some fields hold workspace-specific attributes whose structure varies per account, such as props, metadata, and content. They are delivered as JSON strings, so you can parse them in a Query when you need the individual keys.
Analytics streams
The analytics streams are different: Morada.ai recalculates them with a job that runs every six hours, and that job can restate numbers that were already extracted. They are therefore replicated as FULL_TABLE — each run brings the whole period again — and every record carries the freshness of the response that produced it, in theas_of and stale fields.
Each record is one calendar day (in the America/Sao_Paulo timezone, the same one the platform dashboards use) combined with the dimensions of the stream, and all metrics are additive components: counts, and sum and count pairs for the service-level metrics.
The service-level metrics of the tickets stream arrive as a sum in seconds plus a count, so the average is SUM(first_response_sum_seconds) / SUM(first_response_count) — divide by 60 for minutes.
Rate limits
Morada.ai allows around 120 requests per minute per workspace. The connector stays below that limit on its own and automatically waits and retries when the API asks it to, so no configuration is needed on your side. Very large first extractions simply take longer to complete.Streams and Fields
Below you’ll find all available data streams from Morada.ai and their corresponding fields. The change-feed streams — contacts, conversations, deals, messages, and message errors — share theid, workspace_id, and cursor_at fields.
Contacts
Contacts
People your workspace has interacted with.Key Fields:
id- Unique identifier of the contactworkspace_id- Identifier of the Morada.ai workspace the contact belongs toname- Full name of the contactemail- Email address of the contactphone_number- Phone number of the contact, typically the WhatsApp number used in conversationsbanned_at- Timestamp when the contact was blocked, when the contact has been blockedprops- Additional workspace-specific attributes of the contact, as a JSON stringcursor_at- Change watermark of the record, used as the incremental replication key
Conversations
Conversations
Conversations handled by the AI agent (Mia).Key Fields:
id- Unique identifier of the conversationworkspace_id- Identifier of the Morada.ai workspace the conversation belongs toperson_id- Identifier of the contact this conversation is withagent_id- Identifier of the AI agent (Mia) responsible for the conversationdeal_id- Identifier of the deal associated with the conversation, when there is onetarget- Target of the conversation, such as the channel address the contact was reached atstarted_at- Timestamp when the conversation startedfinished_at- Timestamp when the conversation was closed, when it already endedlast_message_at- Timestamp of the most recent message exchanged in the conversationprops- Additional workspace-specific attributes of the conversation, as a JSON stringcursor_at- Change watermark of the record, used as the incremental replication key
Deals
Deals
Sales opportunities tracked in your workspace.Key Fields:
id- Unique identifier of the dealworkspace_id- Identifier of the Morada.ai workspace the deal belongs toperson_id- Identifier of the contact related to the dealagent_id- Identifier of the AI agent (Mia) responsible for the dealowner_id- Identifier of the user who owns the dealstatus- Current status of the deal in the sales pipelinetitle- Title of the dealprops- Additional workspace-specific attributes of the deal, as a JSON stringcursor_at- Change watermark of the record, used as the incremental replication key
Messages
Messages
Individual messages exchanged inside conversations.Key Fields:
id- Unique identifier of the messageworkspace_id- Identifier of the Morada.ai workspace the message belongs toconversation_id- Identifier of the conversation this message belongs toactor- Author of the message, such asmiafor the AI agent orhumanfor a persontype- Type of the message, such as text or imagecontent- Body of the message. Non-textual payloads are delivered as a JSON stringmetadata- Additional message metadata, as a JSON stringcreated_at- Timestamp when the message was createddelivered_at- Timestamp when the message was delivered, when delivery was confirmedread_at- Timestamp when the message was read, when a read receipt was receivedcursor_at- Change watermark of the record, used as the incremental replication key
Message errors
Message errors
WhatsApp delivery failures reported by Meta for messages sent from your workspace. Useful to investigate why an active message never reached the lead.Key Fields:
id- Unique identifier of this delivery error log entryworkspace_id- Identifier of the Morada.ai workspace the record belongs tomessage_id- Identifier of the message the delivery error refers toconversation_id- Identifier of the conversation the failed message belongs todeal_id- Identifier of the deal associated with the conversation, when there is oneagent_id- Identifier of the agent responsible for the conversationagent_name- Name of the agent responsible for the conversationexternal_id- Identifier of the message on WhatsApp (wamid)recipient_id- Phone number of the end customer the message was addressed to, in E.164 formatstatus- Status of the delivery log entry, alwaysfailedfor this reporterror_code- WhatsApp delivery error code reported by Meta, such as131049error_title- Short title of the delivery errorerror_message- Message describing the delivery errorerror_detail- Additional detail about the delivery error, when availablemessage_created_at- Timestamp when the failed message was createdconversation_started_at- Timestamp when the conversation of the failed message startedconversation_link- Deep link to the conversation on the Morada.ai platformmetadata- Payload of the WhatsApp delivery status webhook that produced the error, as a JSON stringcursor_at- Timestamp of the error log entry, used as the incremental replication key
Analytics conversations daily
Analytics conversations daily
Daily conversation counters behind the Conversations dashboard, broken down by agent type, agent, and source. The default scope matches what the dashboard shows: the conversations of your AI agent on WhatsApp.Key Fields:
period- Calendar day of the record, in the timezone reported by thetzfieldagent_type- Type of the agent that handled the conversationsagent_id- Identifier of the agent that handled the conversationssource- Origin of the conversationsconversations_started- Conversations started in the day, the denominator of the response and appointment ratesconversations_answered- Conversations with at least one reply from the contact, the numerator of the response rateconversations_no_response- Conversations with no reply at all from the contactappointments- Conversations with at least one appointment scheduled, the numerator of the appointment rategranularity- Bucket size of the record, alwaysdaytz- Timezone used to group the records by calendar dayas_of- Timestamp of the last successful Morada.ai analytics job that produced these numbersstale- Whether the analytics data was behind schedule when it was extracted
Analytics tickets daily
Analytics tickets daily
Daily Talk ticket counters and service-level components behind the Talk dashboard, broken down by queue, attendant, status, and source.Key Fields:
period- Calendar day of the record, in the timezone reported by thetzfieldqueue- Identifier of the distribution queue of the ticketsqueue_name- Name of the distribution queue of the ticketsagent- Identifier of the user who attended the ticketsagent_name- Name of the user who attended the ticketsstatus- Status of the tickets at the time of the snapshot:waiting,in_service,redistributed, orclosedsource- Origin of the ticketstickets_created_count- Tickets created in the daytickets_closed- Tickets closed in the daytickets_in_service- Tickets under service at the time of the snapshotredistributed_timeout- Tickets redistributed because the attendant did not answer in timetotal_messages- Total number of messages sent by human attendantstime_to_assignment_sum_seconds- Sum, in seconds, of the time between ticket creation and assignmenttime_to_assignment_count- Number of tickets contributing to the time to assignment sumfirst_response_sum_seconds- Sum, in seconds, of the first response timefirst_response_count- Number of tickets contributing to the first response sumhandle_time_sum_seconds- Sum, in seconds, of the ticket handle timehandle_time_count- Number of tickets contributing to the handle time sumgranularity- Bucket size of the record, alwaysdaytz- Timezone used to group the records by calendar dayas_of- Timestamp of the last successful Morada.ai analytics job that produced these numbersstale- Whether the analytics data was behind schedule when it was extracted
Analytics freshness
Analytics freshness
When each analytics dataset was last refreshed by Morada.ai. Use it to know how up to date the analytics tables are before reporting on them.Key Fields:
metricset- Name of the analytics dataset, such asconversationsorticketsetl_job- Name of the Morada.ai job that feeds the datasetas_of- Timestamp of the last successful run of the jobstale- Whether the dataset is behind schedule or its freshness is unknown