The webhook-transforms skill is an AI agent capability designed for Omni Apps users who need to bring varied external event data into a consistent, actionable format. Its primary function is to convert external events—such as SMS messages, calendar meetings, or social media mentions—into structured markdown pages. This tool helps ensure that information from disparate sources is ingested reliably and consistently, making it readily available for your AI agent to process and utilize. It’s built for users who require a predictable output format for their incoming data, specifically targeting "brain-ingestible" markdown.
How the Transformation Pipeline Works
The core of this skill lies in its robust, multi-phase transformation pipeline. When an external event triggers a process within the skill, it follows a defined sequence to ensure data integrity and consistent output.
The first phase involves defining a transformation function. This is crucial. Users specify how the raw external payload—which is always a JSON object—should be mapped to the desired markdown page format. This function acts as a blueprint, dictating which fields from the incoming JSON correspond to which elements in the output markdown. For example, you might define rules to extract a sender, a message body, and a timestamp from an SMS payload, and then structure them into specific markdown headers and bullet points.
Once the transformation function is ready, the next step is to register a webhook endpoint with the external service. This establishes the connection, allowing the external service (e.g., an SMS provider, a calendar application, or a social media monitoring tool) to send its events directly to your skill's designated endpoint.
Upon receiving an event, the skill then processes incoming events through the transformation pipeline. This is where your defined function is applied to the raw JSON payload. The data is parsed, transformed according to your specifications, and then formatted into a markdown page. A key guarantee of the skill is that these events become pages with proper citations, ensuring data lineage and traceability back to the original source. The put_page tool is used to create these structured markdown pages.
A critical aspect of the skill’s design is its resilience. If, for any reason, the transformation process encounters a failure—perhaps due to an unexpected payload structure or an error in the transformation function—the skill will log the raw payload to a dead-letter queue and retry. This guarantees that raw payloads are preserved if a transformation fails, preventing data loss and allowing for later inspection and manual recovery or re-processing. The add_timeline_entry tool is utilized to log these events, including successes and failures, providing an audit trail.
Consider a practical example. Imagine receiving SMS messages that you want to capture as structured notes. A raw JSON payload from an SMS service might look like this:
{"from": "+15551234567", "body": "Project update meeting moved to tomorrow at 10 AM.", "sent_at": "2023-10-27T14:30:00Z"}
Your transformation function would map these fields to a markdown page. The skill would then generate a page similar to:
# SMS Message from +15551234567
## Event Details
- **Source:** SMS Gateway
- **Sender:** +15551234567
- **Timestamp:** 2023-10-27T14:30:00Z
## Content
Project update meeting moved to tomorrow at 10 AM.
## Citation
Original Payload: `{"from": "+15551234567", "body": "Project update meeting moved to tomorrow at 10 AM.", "sent_at": "2023-10-27T14:30:00Z"}`
This structured page is then ingested, ensuring consistent formatting for all incoming SMS events.
Utilizing the Skill:
Triggers and Tools Interacting with the skill is straightforward through a set of defined triggers. Users can initiate processes with the 'set up webhook' trigger to configure a new incoming data source. When external events arrive, the 'process webhook event' trigger is automatically engaged, sending the raw payload through the transformation pipeline. For testing or manual intervention, the 'transform this event' trigger allows a user to provide a raw JSON payload directly for transformation.
The skill's input is consistently raw JSON payloads. This focused input requirement allows for robust parsing and predictable transformation.
To perform its functions, the skill uses several core tools. As mentioned, put_page is fundamental for creating the structured markdown pages that are the output of every successful transformation. The add_timeline_entry tool is used for logging all significant events within the pipeline, including successful transformations, retries, and failures, contributing to the guarantee of preserving raw payloads if a transformation fails. The search tool can be employed for various internal tasks, such as retrieving stored transformation functions or verifying the existence of previously ingested pages, though its primary role is to ensure the integrity and uniqueness of the data being stored.
Distinguishing
Features of the Skill It is important to understand what the skill is, and equally important, what it is not. This tool is not designed as a general-purpose event processor capable of handling any arbitrary data stream without explicit instructions. Instead, it serves a specific function with clear boundaries.
Crucially, it requires a transformation function to operate. Without a defined mapping from the external payload to the desired page format, the skill cannot process events. This design choice ensures that all ingested data conforms to user-defined structures, rather than attempting to guess intent or impose a generic structure.
The skill exclusively targets brain-ingestible output. Its goal is to produce clean, readable, and structured markdown pages that are optimized for an AI agent's comprehension and subsequent processing. This means it won't handle raw HTML or scripts; such content is outside its scope and would likely be flagged as an invalid payload for transformation.
Furthermore, its approach to data handling distinguishes it from simple caching mechanisms. The skill maintains data lineage rather than just caching events. Each markdown page produced includes citations back to the original payload, providing a clear audit trail. This ensures that the integrity and source of information are always preserved, which is vital for reliable data integration and analysis. It's about generating consistently structured knowledge, not merely storing transient event data.
Frequently Asked Questions
Q: What kind of external events can the skill convert? A: It can handle external events such as SMS messages, calendar meetings, and social media mentions, converting their raw JSON payloads.
Q: What happens if an event transformation fails? A: If a transformation fails, the skill logs the raw payload to a dead-letter queue, ensuring it is preserved, and then initiates a retry.
Q: Can it process any type of incoming data, like raw HTML? A: No, the skill requires raw JSON payloads as input and targets specific brain-ingestible markdown output. It will not handle raw HTML or scripts.
The skill ensures that valuable external event data is consistently captured and structured for your AI agent, making it readily accessible for further processing and analysis. By guaranteeing data lineage and reliable failure handling, it provides a solid foundation for integrating varied information sources.




