<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Benny Ifeanyi Iheagwara on Medium]]></title>
        <description><![CDATA[Stories by Benny Ifeanyi Iheagwara on Medium]]></description>
        <link>https://medium.com/@iheifeanyi?source=rss-4c085f45b4d5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Me2tF5rqRr2D4TgW2Pn1UQ.jpeg</url>
            <title>Stories by Benny Ifeanyi Iheagwara on Medium</title>
            <link>https://medium.com/@iheifeanyi?source=rss-4c085f45b4d5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 20:04:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@iheifeanyi/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Build a Web-Aware TypeScript Agent With Mastra and Zenrows]]></title>
            <link>https://medium.com/zenrows/build-a-web-aware-typescript-agent-with-mastra-and-zenrows-7654767e2e13?source=rss-4c085f45b4d5------2</link>
            <guid isPermaLink="false">https://medium.com/p/7654767e2e13</guid>
            <category><![CDATA[web-scraping]]></category>
            <category><![CDATA[mastra-ai]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[ai-agent]]></category>
            <dc:creator><![CDATA[Benny Ifeanyi Iheagwara]]></dc:creator>
            <pubDate>Thu, 01 Oct 2026 00:00:26 GMT</pubDate>
            <atom:updated>2026-10-14T20:52:07.405Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><em>This article was originally published on the </em><a href="https://www.zenrows.com/blog/web-aware-typescript-agent-mastra-zenrows"><em>Zenrows blog</em></a><em>.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kLidC2z1Aa7EzjMyddNqAw.png" /></figure><p>Ask a Mastra agent for the price of a product on a protected retail page, and it will usually give you an answer. The trouble is that the answer may come from a Cloudflare challenge page. The agent never saw the product, and nothing in its response tells you so.</p><p>Mastra itself is easy to work with. Its built-in webFetchTool is the weak point, because it sends plain HTTP requests, doesn’t run JavaScript, and returns raw HTML. That’s fine for simple pages and unreliable everywhere else.</p><p>This guide replaces it with a custom <a href="https://docs.zenrows.com/fetch/api-reference">Zenrows Fetch</a> tool. By the end, your agent will read protected pages as clean Markdown or structured JSON, and a workflow will fetch whole lists of URLs in parallel.</p><h3>What you’ll learn</h3><ul><li>You’ll learn why Mastra’s built-in fetch tool fails silently on protected pages.</li><li>You’ll build a typed Zenrows Fetch tool with Mastra’s createTool.</li><li>You’ll extend the tool to return structured JSON fields like price and rating.</li><li>You’ll wire the tool into a market research agent and test it in Mastra Studio.</li><li>You’ll add a workflow that fetches a list of URLs with controlled concurrency.</li></ul><h3>Why TypeScript AI agents need a smarter web fetch tool</h3><p>When webFetchTool hits a page protected by <a href="https://www.zenrows.com/blog/bypass-cloudflare">Cloudflare</a>, Cloudflare returns a challenge page with a normal HTTP status code. Nothing errors. The agent receives the challenge, treats it as the result, and reasons over it.</p><p>For a market research agent, that means comparing prices that were never on the page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*51MDTTmrKs0I2CKRudViMA.png" /><figcaption>what the agent actually reads</figcaption></figure><p>The problem lives in the transport layer, which controls how bytes reach the agent through requests, headers, proxies, and JavaScript execution. Zenrows Fetch with mode=auto handles <a href="https://www.zenrows.com/blog/selenium-datadome">DataDome</a>, <a href="https://www.zenrows.com/blog/bypass-akamai">Akamai</a>, and Cloudflare in one call. Wrapping it in Mastra’s createTool keeps the typed schemas Mastra relies on.</p><h3>Prerequisites</h3><p>You’ll need Node.js 22.13 or later and an API key for one model provider. This guide uses OpenAI by default and shows the Anthropic alternative, so get a key from your <a href="https://platform.openai.com/api-keys">OpenAI dashboard</a> or your <a href="https://platform.claude.com/docs/en/get-api-key">Anthropic dashboard</a>.</p><p>You’ll also need a Zenrows API key from your <a href="https://app.zenrows.com/register">Zenrows dashboard</a>. The finished code is on <a href="https://github.com/ZenRows/web-aware-agent-mastra-zenrows">GitHub</a> if you’d like to compare as you go.</p><h3>Setting up the Mastra project</h3><p>Mastra’s CLI scaffolds the project structure, config files, and a starter agent. Run it and follow the prompts to name the project and pick your LLM provider.</p><pre>npm create mastra@latest</pre><p>The CLI installs @mastra/core and its dependencies. Add Zod if it isn’t already there.</p><pre>npm install zod</pre><p>Next, create a .env file in your project root with your keys. You only need the key for the provider you plan to use, and .env belongs in your .gitignore.</p><pre>ZENROWS_API_KEY=your_zenrows_key<br>OPENAI_API_KEY=your_openai_key<br>ANTHROPIC_API_KEY=your_anthropic_key</pre><p>Mastra loads .env on its own. The standalone test scripts in this guide run outside Mastra’s loader, so they need dotenv.</p><pre>npm install dotenv — save</pre><p>Your project should now look something like this.</p><pre>src/<br>└── mastra/<br>    ├── agents/<br>    │   └── agent.ts<br>    ├── tools/<br>    │   └── schedule-tools.ts<br>    └── index.ts</pre><p>Start the dev server to check that everything works.</p><pre>npm run dev</pre><p>Mastra Studio opens at <a href="http://localhost:4111.">http://localhost:4111.</a> It lists your registered agents and gives you a chat window for each one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AFuJ9-ZOhWB_tVoybjr11A.png" /><figcaption>Mastra Studio</figcaption></figure><h3>Building the Zenrows Fetch tool</h3><p>A Mastra tool comes from a single createTool definition with five parts. The id names it. The description tells the model when to call it. The inputSchema and outputSchema validate what goes in and out, and execute does the work.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lKeWvVirrckIq6wyhVUxZg.png" /><figcaption>What the tool definition holds</figcaption></figure><p>The description deserves the most care. It’s the only signal the model uses to decide whether to call the tool, so keep it brief and exact.</p><p>Create src/mastra/tools/zenrows-fetch.ts next to the template’s example tools and add the following.</p><pre>import { createTool } from &#39;@mastra/core/tools&#39;;<br>import { z } from &#39;zod&#39;;<br><br>export const zenrowsFetchTool = createTool({<br>  id: &#39;zenrows-fetch&#39;,<br><br>  description:<br>  &#39;Fetches web pages using Zenrows. Use this tool when you need information from a specific URL. Set extractJson to true when you need structured data such as product details, pricing, availability, ratings, or other fields. Leave extractJson false when you need the page content as Markdown.&#39;,<br><br>  inputSchema: z.object({<br>    url: z.string().url(),<br>    extractJson: z.boolean().optional(),<br>  }),<br><br>  outputSchema: z.object({<br>    content: z.union([z.string(), z.record(z.string(), z.unknown())]),<br>    statusCode: z.number(),<br>    url: z.string(),<br>  }),<br><br>  execute: async ({ url, extractJson }) =&gt; {<br>    const zenrowsUrl = new URL(&#39;https://api.zenrows.com/v1/&#39;);<br><br>    zenrowsUrl.searchParams.set(&#39;url&#39;, url);<br>    zenrowsUrl.searchParams.set(<br>      &#39;apikey&#39;,<br>      process.env.ZENROWS_API_KEY!,<br>    );<br>    zenrowsUrl.searchParams.set(&#39;mode&#39;, &#39;auto&#39;);<br><br>    if (extractJson) {<br>      zenrowsUrl.searchParams.set(&#39;extract&#39;, &#39;auto&#39;);<br>    } else {<br>      zenrowsUrl.searchParams.set(&#39;response_type&#39;, &#39;markdown&#39;);<br>    }<br><br>    const response = await fetch(zenrowsUrl);<br><br>    if (!response.ok) {<br>      const error = await response.text();<br><br>      throw new Error(<br>        `Zenrows request failed with status ${response.status}: ${error}`,<br>      );<br>    }<br><br>    if (extractJson) {<br>      const body = await response.json();<br><br>      return {<br>        content: body.parsed,<br>        statusCode: response.status,<br>        url,<br>      };<br>    }<br><br>    const content = await response.text();<br><br>    return {<br>      content,<br>      statusCode: response.status,<br>      url,<br>    };<br>  },<br>});</pre><p>The input schema does the validation. z.string().url() rejects a malformed URL before it ever reaches the API. extractJson is optional, and when it’s left undefined, the tool takes the Markdown path.</p><p>You can test the tool without the dev server or the agent. Create src/mastra/tools/test-tool.ts and point it at a Walmart search page.</p><pre>import &#39;dotenv/config&#39;;<br>import { zenrowsFetchTool } from &#39;./zenrows-fetch&#39;;<br><br>if (!zenrowsFetchTool.execute) {<br>  throw new Error(&#39;Zenrows tool does not have an execute function&#39;);<br>}<br><br>const result = await zenrowsFetchTool.execute(<br>  {<br>    url: &#39;https://www.walmart.com/search?q=bike&#39;,<br>    extractJson: false,<br>  },<br>  {} as any<br>);<br><br>if (!result || &#39;statusCode&#39; in result === false) {<br>  throw new Error(&#39;Zenrows tool returned an unexpected result&#39;);<br>}<br><br>console.log(result.statusCode);<br>console.log(<br>  typeof result.content === &#39;string&#39;<br>    ? result.content.slice(0, 300)<br>    : result.content<br>);</pre><p>Run it in your terminal.</p><pre>npx tsx src/mastra/tools/test-tool.ts</pre><p>The output prints the status code, then the opening lines of the page as Markdown.</p><pre>200<br>[](https://www.walmart.com)<br><br>[Skip to Main Content](https://www.walmart.com#maincontent)<br><br>[](https://www.walmart.com/all-departments)[](https://www.walmart.com/)<br><br>[![Walmart](https://i5.walmartimages.com/dfw/63fd9f59-14e2/9d304ce6-96de-4331-b8ec-c5191226d378/v1/spark-icon.svg)](https://www.walmart.com/)</pre><p>If you’d prefer not to maintain a custom tool, the <a href="https://docs.zenrows.com/mcp/overview">Zenrows MCP server</a> is an alternative. This walkthrough of the <a href="https://www.zenrows.com/blog/mcp-server">Zenrows MCP server and its implementation</a> covers the setup.</p><h3>Extending the tool with structured extraction</h3><p>Markdown works when the agent needs to read a page and think about it. Product listings are different, because the agent needs to sort and compare specific fields.</p><p>That’s what extract=auto is for. <a href="https://docs.zenrows.com/extract/setup">Zenrows Extract</a> parses the page on the server and returns named fields, and the tool uses it whenever extractJson is true.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eLsw9U1VPs4wvW2t2ey4mQ.png" /><figcaption>Zenrow extractJson</figcaption></figure><p>The tool you already wrote handles both paths. This part of it picks the request parameters.</p><pre>// part of the previous script<br>zenrowsUrl.searchParams.set(&#39;mode&#39;, &#39;auto&#39;);<br><br>if (extractJson) {<br>  // server side parsing, returns fields instead of page text<br>  zenrowsUrl.searchParams.set(&#39;extract&#39;, &#39;auto&#39;);<br>} else {<br>  zenrowsUrl.searchParams.set(&#39;response_type&#39;, &#39;markdown&#39;);<br>}</pre><p>And this part reads the response in the matching format, as JSON for extraction and as text for Markdown.</p><pre>// parses as JSON<br>if (extractJson) {<br>  const body = await response.json();<br><br>  return {<br>    content: body.parsed,<br>    statusCode: response.status,<br>    url,<br>  };<br>}<br><br>const content = await response.text();<br><br>return {<br>  content,<br>  statusCode: response.status,<br>  url,<br>};</pre><p>To see the JSON path in action, create src/mastra/tools/test-tool-extend-extract.ts with extractJson set to true.</p><pre>import &#39;dotenv/config&#39;;<br>import { zenrowsFetchTool } from &#39;./zenrows-fetch&#39;;<br><br>if (!zenrowsFetchTool.execute) {<br>  throw new Error(&#39;Zenrows tool does not have an execute function&#39;);<br>}<br><br>const result = await zenrowsFetchTool.execute(<br>  {<br>    url: &#39;https://www.walmart.com/search?q=bike&#39;,<br>    extractJson: true,<br>  },<br>  {} as any,<br>);<br><br>if (!result || &#39;statusCode&#39; in result === false) {<br>  throw new Error(&#39;Zenrows tool returned an unexpected result&#39;);<br>}<br><br>console.log(result.statusCode);<br>console.log(<br>  typeof result.content === &#39;string&#39;<br>    ? result.content.slice(0, 300)<br>    : result.content<br>);</pre><p>Run it.</p><pre>npx tsx src/mastra/tools/test-tool-extend-extract.ts</pre><p>The parsed response comes back as clean product records. Here are the first two.</p><pre>{<br>  &quot;products&quot;: [<br>    {<br>      &quot;badge&quot;: null,<br>      &quot;current_price&quot;: 149.99,<br>      &quot;fulfillment_label&quot;: null,<br>      &quot;is_sponsored&quot;: true,<br>      &quot;item_id&quot;: &quot;10479873441&quot;,<br>      &quot;low_stock&quot;: null,<br>      &quot;options_from_price&quot;: 149.99,<br>      &quot;original_price&quot;: 207.99,<br>      &quot;rating&quot;: 3.9,<br>      &quot;review_count&quot;: 130,<br>      &quot;title&quot;: &quot;Ktaxon 20\&quot; Mountain Bike, 7 Speed Bike with Disc Brakes, White&quot;,<br>      &quot;walmart_plus_savings&quot;: null<br>    },<br>    {<br>      &quot;badge&quot;: null,<br>      &quot;current_price&quot;: 227,<br>      &quot;fulfillment_label&quot;: null,<br>      &quot;is_sponsored&quot;: true,<br>      &quot;item_id&quot;: &quot;475992717&quot;,<br>      &quot;low_stock&quot;: null,<br>      &quot;options_from_price&quot;: null,<br>      &quot;original_price&quot;: null,<br>      &quot;rating&quot;: 4.4,<br>      &quot;review_count&quot;: 739,<br>      &quot;title&quot;: &quot;Mongoose Rebel X1 BMX Bike, 20-in. Wheels, Kids Ages 7-14 Years, Gray Child Bicycle&quot;,<br>      &quot;walmart_plus_savings&quot;: null<br>    }<br>  ],<br>  &quot;search_query&quot;: {<br>    &quot;query&quot;: &quot;bike&quot;,<br>    &quot;total_results&quot;: null<br>  }<br>}</pre><h3>Wiring the tool into a Mastra agent</h3><p>With the tool working, it’s time to give it to an agent. Create a file under src/mastra/agents/ called market-research-agent.ts.</p><pre>import { Agent } from &#39;@mastra/core/agent&#39;;<br>import { zenrowsFetchTool } from &#39;../tools/zenrows-fetch&#39;;<br><br>export const marketResearchAgent = new Agent({<br>  id: &#39;market-research-agent&#39;,<br>  name: &#39;Market Research Agent&#39;,<br><br>  description:<br>    &#39;An agent that researches and compares products using live web data.&#39;,<br><br>  instructions: `<br>You are a product market research agent.<br><br>Your job is to research and compare products using the zenrows_fetch tool.<br><br>When the user provides one or more product URLs:<br><br>1. Fetch each URL using zenrows_fetch.<br>2. When product information such as name, price, availability, or rating is needed, use structured extraction.<br>3. Extract the relevant product information from each result.<br>4. Never invent or assume information that was not returned by the tool.<br>5. If information is missing, clearly state that it is unavailable.<br>6. Preserve the currency returned by the source.<br>7. Do not directly compare prices when the products use different currencies unless a reliable currency conversion is available.<br>8. When comparing products, present the results clearly in a table when appropriate.<br>9. After presenting the data, provide useful observations based only on the retrieved information.<br><br>Do not use web search when the user asks you to use zenrows_fetch only.<br>`,<br><br>  model: &#39;openai/gpt-5.6-terra&#39;,<br><br>  tools: {<br>    zenrows_fetch: zenrowsFetchTool,<br>  },<br>});</pre><p>The instructions are where most of the reliability comes from. A vague prompt produces a confident answer with a price from training data and no way to tell which fields came from the page. These instructions forbid invented values and make the agent say when data is missing.</p><p>You can use any supported model by changing one line. Just make sure the matching key is in your .env file.</p><pre>// changing model. Replace it in the previous script<br>// openai<br>model: &#39;openai/gpt-5.6-terra&#39;,<br><br>// anthropic<br>model: &#39;anthropic/claude-sonnet-4-5&#39;,</pre><p>Next, register the agent in src/mastra/index.ts. Registration exposes it to Mastra Studio and the server.</p><pre>import { Mastra } from &#39;@mastra/core/mastra&#39;;<br>import { LibSQLStore } from &#39;@mastra/libsql&#39;;<br>import { DuckDBStore } from &#39;@mastra/duckdb&#39;;<br>import { MastraCompositeStore } from &#39;@mastra/core/storage&#39;;<br>import {<br>  MastraStorageExporter,<br>  MastraPlatformExporter,<br>  Observability,<br>  SensitiveDataFilter,<br>} from &#39;@mastra/observability&#39;;<br>import { agent } from &#39;./agents/agent&#39;;<br>import { marketResearchAgent } from &#39;./agents/market-research-agent&#39;;<br>import { startScheduleTool, stopScheduleTool } from &#39;./tools/schedule-tools&#39;;<br><br>export const mastra = new Mastra({<br>  bundler: {<br>    externals: [&#39;@duckdb/node-bindings&#39;],<br>  },<br>  agents: {<br>    agent,<br>    marketResearchAgent,<br>  },<br>  tools: { startScheduleTool, stopScheduleTool },<br>  storage: new MastraCompositeStore({<br>    id: &#39;composite-storage&#39;,<br>    default: new LibSQLStore({<br>      id: &#39;mastra-storage&#39;,<br>      url: process.env.TURSO_DATABASE_URL || &#39;file:./mastra.db&#39;,<br>      authToken: process.env.TURSO_AUTH_TOKEN || undefined,<br>    }),<br>    domains: {<br>      observability: await new DuckDBStore().getStore(&#39;observability&#39;),<br>    },<br>  }),<br>  observability: new Observability({<br>    configs: {<br>      default: {<br>        serviceName: &#39;mastra&#39;,<br>        exporters: [new MastraStorageExporter(), new MastraPlatformExporter()],<br>        spanOutputProcessors: [new SensitiveDataFilter()],<br>      },<br>    },<br>  }),<br>});</pre><p>Now test the agent with a standalone script at src/mastra/tools/test-agent.ts.</p><pre>import &#39;dotenv/config&#39;;<br>import { mastra } from &#39;..&#39;;<br><br>const agent = mastra.getAgent(&#39;marketResearchAgent&#39;);<br><br>const result = await agent.generate(<br>  &#39;Compare the bikes on https://www.walmart.com/search?q=bike. Give me the five cheapest with their ratings, and flag any that are sponsored.&#39;,<br>);<br><br>console.log(JSON.stringify(result.toolCalls, null, 2));<br>console.log(result.text);</pre><p>Run it.</p><pre>npx tsx src/mastra/tools/test-agent.ts</pre><p>The script prints the tool call first. Notice that the agent chose structured extraction on its own.</p><pre>[<br>  {<br>    &quot;type&quot;: &quot;tool-call&quot;,<br>    &quot;runId&quot;: &quot;018d9545-eddd-4fde-8cd1-1884316f4212&quot;,<br>    &quot;from&quot;: &quot;AGENT&quot;,<br>    &quot;payload&quot;: {<br>      &quot;toolCallId&quot;: &quot;call_3H76SowFUi3SRknDFYXrJu7W&quot;,<br>      &quot;toolName&quot;: &quot;zenrows_fetch&quot;,<br>      &quot;args&quot;: {<br>        &quot;url&quot;: &quot;https://www.walmart.com/search?q=bike&quot;,<br>        &quot;extractJson&quot;: true<br>      },<br>      &quot;providerMetadata&quot;: {<br>        &quot;openai&quot;: {<br>          &quot;itemId&quot;: &quot;fc_06708f1f9910751e006a84956972bc81a084b7ebc5cc25f70d&quot;<br>        }<br>      }<br>    }<br>  }<br>]</pre><p>Then comes the agent’s answer.</p><pre>The five lowest-priced bikes in the retrieved Walmart search results are:<br><br>| Rank | Bike | Price* | Rating | Reviews | Sponsored |<br>|---:|---|---:|---:|---:|---|<br>| 1 | Dynacraft 16 Inch Suspect Boys BMX Bike for Child 5-7 Years | 108 | 4.2/5 | 772 | No sponsorship flag returned |<br>| 2 | 18&quot; Kent Bicycle Abyss Boy&#39;s Freestyle BMX Child Bicycle, Blue | 128 | 4.2/5 | 2,325 | No sponsorship flag returned |<br>| 3 | 20&quot; Kent Tempest BMX Bicycle, Fits Riders 4&#39;2&quot;-5&#39;, Black/Aqua, Child, Unisex | 138 | 4.3/5 | 1,496 | No sponsorship flag returned |<br>| 4 | Ktaxon 24&quot; Women&#39;s 7-Speed Cruiser Bike with Basket &amp; Rack, Green | 189.99 | 4.2/5 | 78 | **Sponsored** |<br>| 5 | Mongoose Rebel X1 BMX Bike, 20-in. Wheels, Kids Ages 7-14, Gray | 227 | 4.4/5 | 740 | **Sponsored** |</pre><p>The agent ranked the five cheapest bikes, all from the live page. Where is_sponsored came back null, it said so and left the guesswork out. This run happened later than the first tool test, so some values differ.</p><h3>Testing the agent in Mastra Studio</h3><p>You can run the same test through the Studio chat window. Start the dev server.</p><pre>npm run dev</pre><p>Open <a href="http://localhost:4111,">http://localhost:4111,</a> click the market research agent, and send it this prompt.</p><pre>Compare the bikes on Walmart. Give me the five cheapest with their ratings, and flag any that are sponsored.</pre><p>Studio shows the tool call the agent made and the ranked table it built from the returned fields.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DMjYp3DZTe-YQz9TrLzsmQ.png" /><figcaption>Mastra Studio: Market Research Agent</figcaption></figure><p>To give the agent memory, follow the steps in the <a href="https://mastra.ai/docs/memory/overview">Mastra memory documentation</a>.</p><h3>Adding a workflow for bulk URL processing</h3><p>An agent plans each call. When you already know which URLs to check, a Mastra workflow is a better fit because its steps are deterministic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xzqHLPLTGusYIj6RUSIzfw.png" /><figcaption>A workflow for a list of URLs</figcaption></figure><p>Create src/mastra/workflow/bulk-fetch.ts. The first step turns the input list into one task per URL.</p><pre>import { createStep, createWorkflow } from &#39;@mastra/core/workflows&#39;;<br>import { z } from &#39;zod&#39;;<br>import { zenrowsFetchTool } from &#39;../tools/zenrows-fetch&#39;;<br><br>const prepareUrlsStep = createStep({<br>  id: &#39;prepare-urls&#39;,<br><br>  inputSchema: z.object({<br>    urls: z.array(z.string().url()),<br>  }),<br><br>  outputSchema: z.array(<br>    z.object({<br>      url: z.string().url(),<br>    }),<br>  ),<br><br>  execute: async ({ inputData }) =&gt; {<br>    return inputData.urls.map(url =&gt; ({<br>      url,<br>    }));<br>  },<br>});</pre><p>The second step calls the Zenrows tool for each URL with structured extraction on. createTool types execute as optional and as taking two arguments, so the step narrows it first and passes both.</p><pre>const fetchProductStep = createStep({<br>  id: &#39;fetch-product&#39;,<br><br>  inputSchema: z.object({<br>    url: z.string().url(),<br>  }),<br><br>  outputSchema: z.object({<br>    url: z.string(),<br>    content: z.record(z.string(), z.unknown()),<br>    statusCode: z.number(),<br>  }),<br><br>  execute: async ({ inputData }) =&gt; {<br>    // createTool types execute as optional, so narrow it before calling<br>    if (!zenrowsFetchTool.execute) {<br>      throw new Error(&#39;Zenrows tool does not have an execute function&#39;);<br>    }<br><br>    const result = await zenrowsFetchTool.execute(<br>      {<br>        url: inputData.url,<br>        extractJson: true,<br>      },<br>      {} as any,<br>    );<br><br>    if (!result || &#39;statusCode&#39; in result === false) {<br>      throw new Error(&#39;Zenrows tool returned an unexpected result&#39;);<br>    }<br><br>    return {<br>      url: inputData.url,<br>      // the tool returns a union, this workflow always extracts<br>      content: result.content as Record&lt;string, unknown&gt;,<br>      statusCode: result.statusCode,<br>    };<br>  },<br>});</pre><p>The last block chains the steps into a workflow. foreach runs the fetch step on five URLs at a time.</p><pre>export const productResearchWorkflow = createWorkflow({<br>  id: &#39;product-research-workflow&#39;,<br><br>  inputSchema: z.object({<br>    urls: z.array(z.string().url()),<br>  }),<br><br>  outputSchema: z.array(<br>    z.object({<br>      url: z.string(),<br>      content: z.record(z.string(), z.unknown()),<br>      statusCode: z.number(),<br>    }),<br>  ),<br>})<br>  .then(prepareUrlsStep)<br>  // concurrency controls how many urls run at once<br>  .foreach(fetchProductStep, { concurrency: 5 })<br>  .commit();</pre><p>Register the workflow in src/mastra/index.ts alongside the agent.</p><pre>// add to the imports<br>import { productResearchWorkflow } from &#39;./workflow/bulk-fetch&#39;;<br><br>// add to the Mastra constructor, alongside agents<br>workflows: {<br>  productResearchWorkflow,<br>},</pre><p>Then test it with src/mastra/workflow/test-workflow.ts, which sends three Walmart pages through the workflow.</p><pre>import &#39;dotenv/config&#39;;<br>import { mastra } from &#39;..&#39;;<br><br>const workflow = mastra.getWorkflow(&#39;productResearchWorkflow&#39;);<br><br>const run = await workflow.createRun();<br><br>const result = await run.start({<br>  inputData: {<br>    urls: [<br>      &#39;https://www.walmart.com/search?q=tanktop&#39;,<br>      &#39;https://www.walmart.com/search?q=shirts&#39;,<br>      &#39;https://www.walmart.com/browse/home/shop-water-bottles/4044_623679_639999_7751805_4269055_2976621&#39;,<br>    ],<br>  },<br>});<br><br>console.log(JSON.stringify(result, null, 2));</pre><p>Run it.</p><pre>npx tsx src/mastra/workflow/test-workflow.ts</pre><p>Here are two of the three results. Every URL returned status 200, and the results arrived in the same order as the input.</p><pre>{<br>  &quot;result&quot;: [<br>    {<br>      &quot;url&quot;: &quot;https://www.walmart.com/search?q=tanktop&quot;,<br>      &quot;content&quot;: {<br>        &quot;products&quot;: [<br>          {<br>            &quot;badge&quot;: &quot;rollback&quot;,<br>            &quot;current_price&quot;: 11.98,<br>            &quot;original_price&quot;: 29.98,<br>            &quot;fulfillment_label&quot;: &quot;Shipping, arrives today&quot;,<br>            &quot;is_sponsored&quot;: true,<br>            &quot;item_id&quot;: &quot;342153793&quot;,<br>            &quot;low_stock&quot;: true,<br>            &quot;rating&quot;: 4.5,<br>            &quot;review_count&quot;: 15482,<br>            &quot;title&quot;: null<br>          }<br>          // 8 more products<br>        ],<br>        &quot;search_query&quot;: { &quot;query&quot;: &quot;tanktop&quot;, &quot;total_results&quot;: null }<br>      },<br>      &quot;statusCode&quot;: 200<br>    },<br>    {<br>      &quot;url&quot;: &quot;https://www.walmart.com/browse/home/shop-water-bottles/...&quot;,<br>      &quot;content&quot;: {<br>        &quot;products&quot;: [<br>          {<br>            &quot;badge&quot;: null,<br>            &quot;current_price&quot;: 15.95,<br>            &quot;original_price&quot;: 17.98,<br>            &quot;is_sponsored&quot;: null,<br>            &quot;item_id&quot;: &quot;1604723&quot;,<br>            &quot;rating&quot;: 4.7,<br>            &quot;review_count&quot;: 19927,<br>            &quot;title&quot;: &quot;Brita Standard Replacement Water Filter (3 Pack)&quot;<br>          }<br>          // 11 more products<br>        ],<br>        &quot;search_query&quot;: null<br>      },<br>      &quot;statusCode&quot;: 200<br>    }<br>  ]<br>}</pre><p>You can run the workflow from Mastra Studio too.</p><h3>What you built</h3><p>You now have a Mastra agent backed by Zenrows that fetches data from protected sites and returns structured results. It reads pages as Markdown when it needs to reason and as JSON when it needs fields, and a workflow handles known URL lists in parallel.</p><p>To go further, the <a href="https://mastra.ai/docs">Mastra documentation</a> covers advanced patterns. For larger workloads, <a href="https://www.zenrows.com/products/batch">Zenrows Batch</a> handles big URL lists so the agent doesn’t send every request at once.</p><h3>Key takeaways</h3><ul><li>Mastra’s built-in webFetchTool can hand your agent a challenge page with a normal status code, and the agent won’t know.</li><li>A custom createTool definition keeps typed schemas around a Zenrows Fetch call that handles protected access.</li><li>One boolean lets the same tool return Markdown for reasoning or structured JSON for comparison.</li><li>Specific agent instructions stop the model from filling gaps with training data.</li><li>Workflows suit known URL lists because their steps run deterministically with controlled concurrency.</li></ul><h3>FAQ</h3><p><strong>What is Mastra?</strong></p><p>Mastra is an open-source TypeScript framework for building AI agents. It includes built-in support for tools, workflows, memory, tool calling, and observability.</p><p><strong>Does the Zenrows tool work with both OpenAI and Anthropic models?</strong></p><p>It does. Only the agent’s model line changes when you switch, because Mastra passes your Zod inputSchema to the AI SDK in whatever format the provider expects.</p><p><strong>Can I connect Zenrows through MCP?</strong></p><p>You can. Zenrows has an <a href="https://docs.zenrows.com/mcp/overview">official MCP server</a>, and Mastra’s MCPClient works with it like any other MCP server. It gives agents Fetch and browser tools without a wrapper, and you still need an API key.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7654767e2e13" width="1" height="1" alt=""><hr><p><a href="https://medium.com/zenrows/build-a-web-aware-typescript-agent-with-mastra-and-zenrows-7654767e2e13">Build a Web-Aware TypeScript Agent With Mastra and Zenrows</a> was originally published in <a href="https://medium.com/zenrows">Zenrows</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Build an AI Lead Generation Agent With OpenAI Agents SDK and Zenrows]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/zenrows/build-an-ai-lead-generation-agent-with-openai-agents-sdk-and-zenrows-e206aa5e289c?source=rss-4c085f45b4d5------2"><img src="https://cdn-images-1.medium.com/max/1500/1*pFuSZzCZz19RnsoRr31yig.png" width="1500"></a></p><p class="medium-feed-snippet">How to build an AI lead generation agent that reads live, bot-protected directories with the OpenAI Agents SDK and Zenrows.</p><p class="medium-feed-link"><a href="https://medium.com/zenrows/build-an-ai-lead-generation-agent-with-openai-agents-sdk-and-zenrows-e206aa5e289c?source=rss-4c085f45b4d5------2">Continue reading on Zenrows »</a></p></div>]]></description>
            <link>https://medium.com/zenrows/build-an-ai-lead-generation-agent-with-openai-agents-sdk-and-zenrows-e206aa5e289c?source=rss-4c085f45b4d5------2</link>
            <guid isPermaLink="false">https://medium.com/p/e206aa5e289c</guid>
            <category><![CDATA[openai]]></category>
            <category><![CDATA[web-scraping]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[lead-generation]]></category>
            <dc:creator><![CDATA[Benny Ifeanyi Iheagwara]]></dc:creator>
            <pubDate>Thu, 01 Oct 2026 00:00:13 GMT</pubDate>
            <atom:updated>2026-10-14T21:47:55.998Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[I tested ToolJet’s Agent and here is what I found!]]></title>
            <link>https://python.plainenglish.io/i-tested-tooljets-agent-and-here-is-what-i-found-db667ab40dd0?source=rss-4c085f45b4d5------2</link>
            <guid isPermaLink="false">https://medium.com/p/db667ab40dd0</guid>
            <category><![CDATA[ai-builder]]></category>
            <category><![CDATA[internal-tools]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Benny Ifeanyi Iheagwara]]></dc:creator>
            <pubDate>Wed, 19 Nov 2025 20:43:55 GMT</pubDate>
            <atom:updated>2025-11-19T21:20:20.531Z</atom:updated>
            <content:encoded><![CDATA[<p>I spent last weekend exploring ToolJet’s new AI agents and to be honest, low-code might actually be dead. But not in a bad way. In a “holy crap, this is what we’ve been waiting for” way.</p><p>Here’s what happened. So I tried a real-world nightmare prompt: <br>“Build an internal tool for our sales team to manage customer contracts: upload PDFs, extract key dates and values with OCR, route for approvals with role-based access, send reminders, and log everything.”</p><p>No schema. No long meeting and endless Jira tickets. Just that and I had a</p><p>- A PostgreSQL schema with normalized tables, relations, and indexes for scalability<br>- An intuitive UI: drag-and-drop file upload, dynamic table views, and a Kanban-style approval board <br>- Granular RBAC (viewer/editor/admin roles baked in, no config hell) <br>- Full audit logs tracking every action, exportable to CSV <br>- Automated Slack/Zapier notifications for approvals and reminders <br>- And when OCR choked on a funky date format? One-click debug mode spotted it, suggested a fix, and applied it in seconds — no code dive required</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*87E5ONNAIydcCMsF" /></figure><p>So that got me thinking. Tool like these aint some wrapper on Claude or GPT but are rather specialized AI agents with features that allows evryone collaborate like a crack dev team.</p><p>Want proof it’s not smoke and mirrors? Check these YouTube demos, they show what I have built, but with even wilder examples:</p><p>- <a href="https://www.youtube.com/watch?v=EiqZJufcNl8">Build AI Enterprise Apps in Minutes with ToolJet!</a>: Natural language to full app in under 10 mins. They spin up a CRM dashboard with real-time data syncs. Mind-melting for anyone who’s ever fought Airtable limits.</p><p>- <a href="https://www.youtube.com/watch?v=ejSQSUv0lHQ">Code Generators and Low-Code Are Great… Until You Meet ToolJet Agents</a>: Side-by-side vs. traditional tools. Watch it handle “messy requirements” and deploys with env vars.</p><p>- <a href="https://www.youtube.com/watch?v=8o1hSc0G2XI">ToolJet.ai Tutorial for Beginners — Build AI Apps FAST!</a>: Step-by-step on a newbie-friendly inventory tracker and it is just 15 mins of pure velocity.</p><p>I’ve made use of Retool, Bubble, and a couple of other AI coder and they often crumble on enterprise realities. however ToolJet agents seems to be scaleable and smarter.</p><p>If you’re drowning in “quick CRUD” requests or prototyping MVPs that never ship, fire up ToolJet AI today. Give it your ugliest idea. Watch the agents crush it. Your weekend (and sanity) will thank you.</p><p><a href="https://tooljet.com/">https://tooljet.com</a> (No affiliation — just a builder who’s equal parts thrilled and unemployed-by-AI)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=db667ab40dd0" width="1" height="1" alt=""><hr><p><a href="https://python.plainenglish.io/i-tested-tooljets-agent-and-here-is-what-i-found-db667ab40dd0">I tested ToolJet’s Agent and here is what I found!</a> was originally published in <a href="https://python.plainenglish.io/">Python in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The 4 AI Retail SaaS Ideas You Should Be Building Next]]></title>
            <link>https://learnaitoprofit.com/the-4-ai-retail-saas-ideas-you-should-be-building-next-21938bf10489?source=rss-4c085f45b4d5------2</link>
            <guid isPermaLink="false">https://medium.com/p/21938bf10489</guid>
            <category><![CDATA[retail]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[indiehackers]]></category>
            <category><![CDATA[saas]]></category>
            <dc:creator><![CDATA[Benny Ifeanyi Iheagwara]]></dc:creator>
            <pubDate>Fri, 14 Nov 2025 05:36:26 GMT</pubDate>
            <atom:updated>2025-11-14T05:36:26.670Z</atom:updated>
            <content:encoded><![CDATA[<p>If you’re a builder, indie hacker, or automation geek just like me, looking to solve a real problem or build the next unicorn, a micro SaaS, or even have a side project, then this piece is for you.</p><p>When we talk about the application of AI in retail, chatbots and recommendation systems are what everyone focuses on. We tend to forget the real transformation nd the underground work that happens quietly in the industry.</p><p>In this piece, I will share four retail-specific SaaS ideas you have probably come across. Each one solves a real problem or pain point, with a clear ROI.</p><h3>Why I’m Betting on Retail AI (and Why You Should Too)</h3><p>Retail isn’t flashy like crypto, hyped like AI agents, exciting like fintech and payment, or sexy like your B2C productivity apps.</p><p>It is boring, and that’s exactly why I think it is such a gold mine.</p><p>Retail sits at the crossroads of many industries, from the supply chain to operations to the real customers of everything. And in a world where items must be purchased, tasks must be executed, and “numbers” can make a huge difference, an improvement to an existing system can have a massive impact at scale.</p><p>Now, why should you consider it?</p><ul><li>The global AI retail market will be worth $164.74 billion by 2030, growing at a <a href="https://retailwire.com/artificial-intelligence-retail-market/">CAGR of 32%</a> according to RetailWire.</li><li>Shopify projects that just in the United States alone, the retail market will grow significantly to an estimated <a href="https://www.shopify.com/ng/blog/ai-statistics">$17.76 billion by 2032</a>.</li><li><a href="https://business.adobe.com/blog/generative-ai-powered-shopping-rises-with-traffic-to-retail-sites">Adobe reports </a>a 1,950% year-over-year increase in retail site traffic from chat interactions during 2024’s Cyber Monday.</li><li>Nvidia reports <a href="https://blogs.nvidia.com/blog/ai-in-retail-cpg-survey-2025/">89% of retailers</a> are now actively using AI in their operations or assessing AI projects.</li></ul><p>That means the industry is looking for practical automation that can optimize its operation. For you, indie founders, there is less competition, clear ROI, and easy entry with low-code and prompt-to-app platforms.</p><h3>4 Microniche SaaS Idea I’d Build Today</h3><p>Each idea will include an implementation plan and instructions for getting started.</p><h3>1. Gift card app</h3><p><strong>Problem:</strong> While gift cards are a goldmine, they can be a logistical nightmare cause they struggle with fraud, balance tracking, redemption errors, and clunky customer experiences that leave revenue unclaimed.</p><p><strong>Solution:</strong> A low-code, AI-driven gift card app with built-in automation. The app will include features such as fraud detection, personalized gift suggestions, automated balance, and predictive expiration nudges.</p><p><strong>Market Validation:</strong> According to Yahoo Finance, the global market for Gift Cards was estimated at <a href="https://uk.finance.yahoo.com/news/gift-cards-strategic-market-assessment-110400095.html?guccounter=1&amp;guce_referrer=aHR0cHM6Ly93d3cuZ29vZ2xlLmNvbS8&amp;guce_referrer_sig=AQAAAJ7GsEOGLRGiN6R2ya8URuLG-Sc-5Z4YlxnU9OT_YnWDkepR7420MM0c9o94Im4a3bTTDFQ4LlU7D8L8efKQSr_wvDJmSUc4NgiTVipXuQevoialo-Fr_D2vvdD2aLsqzLewdjZd03FAj_lImBEcCmzD3Q9m15mlL0VyofQ7TUO6">US$995.7 billion in 2023</a> and is projected to reach US$2.3 trillion by 2030.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NRf8MYR2mSeZ75Cv5DUCxg.jpeg" /></figure><p><strong>Implementation strategy:</strong></p><ul><li><strong>Tech Stack: </strong>ToolJet for the frontend and backend with PostgreSQL. OpenAI can be used for NLP and fraud pattern detection.</li><li><strong>MVP Feature: </strong>Issue and manage gift cards, a dashboard for balance, AI chatbots for balance and expiration inquiries, and a reminder system with email/SMS automation.</li></ul><p><strong>Revenue projection:</strong> Start at $49/month for a small retailer and scale to $200/month for multi-store setups. Protip: partner with Shopify to handle manual gift card management.</p><h3>Loyalty program management system</h3><p><strong>Problem: </strong>Retailers are spending thousands of dollars building loyalty systems and algorithms to retain customers. However, they fail to personalize the experience and anticipate customer behavior. Thus, churn rates remain high, and they don’t get the value of their spend.</p><p><strong>Solution:</strong> AI-powered app that treats customers differently. You will need to measure predictive lifetime value (LTV), churn detection, and recommend unique incentives based on past redemptions, engagement patterns, and product preferences.</p><p><strong>Market Validation: </strong>According to Roger Williams of Marigold, 72% of consumers admit they spend more when purchasing from their favorite brand, and 52% participate in loyalty programs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dbB3bhQ861cTBa4Ap-tzlQ.jpeg" /></figure><p><strong>Implementation strategy:</strong></p><ul><li><strong>Tech Stack</strong>: Lovable or ToolJet for the frontend and backend with <a href="http://node.js/">Node.js</a> and PostgreSQL. Python microservice using scikit-learn or OpenAI for predictive modeling for the AI layer.</li><li><strong>MVP Feature:</strong> Customer scoring (based on LTV &amp; churn risk), automated email/SMS reward notifications, with a dashboard for monitoring engagement and retention metrics.</li></ul><p><strong>Revenue projection:</strong> Start at $99/month for small businesses, and charge more for enterprise-level integration.</p><h3>Inventory management system</h3><p><strong>Problem:</strong> This is where most business retail profits and customer churn occur. Too much stock? You would burn cash. Too little? And you lose churn. It can be a nightmare, and most businesses still rely on their gut and spreadsheets.</p><p><strong>Solution:</strong> An AI-powered app that orders before you run out of product. You will need automated reordering, smart allocation, and smart forecasting.</p><p><strong>Market Validation:</strong> The global inventory management software market (valued at $3.2B in 2023) is projected to grow at a 12.5% CAGR through 2030. According to SmartDev, AI has helped reduce forecast errors by 20‑50%, cut lost sales by up to 65%, and lower inventory costs through smarter procurement cycles.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q5J6uyjvDQSXjV48pBV3Bg.jpeg" /></figure><p><strong>Implementation strategy:</strong></p><ul><li><strong>Tech Stack:</strong> Lovable for the frontend and backend with <a href="http://node.js/">Node.js</a> and FastAPI for data processing. The AI layer will be handled with Python (Prophet or XGBoost for demand forecasting).</li><li><strong>MVP Feature:</strong> SKU-level forecasting and reorder recommendations with automated purchase order generation.</li></ul><p><strong>Revenue projection:</strong> Start at $100/month for small businesses, and charge more for multi-store and enterprise-level integration. You can offer a “Forecast My Stock” free audit using their past 3 months’ sales, then upsell.</p><h3>AI customer analytics dashboard for retail teams</h3><p><strong>Problem: </strong>The retail business uses applications (your CRM, marketing tools, and POS), and each platform collects data, but the issue lies in the integration between these systems. Using tools like Power BI and Tableau can help, but it can be very coding-intensive and requires licenses.</p><p><strong>Solution:</strong> An analytics dashboard designed for a non-technical retail team that turns messy sales data into smart insights. These tools will need to have a map of your customer journey, generate insights, and predict customers’ behaviour.</p><p><strong>Market Validation:</strong> Companies using AI analytics see 5–10% higher retention and faster decision cycles.McKinsey also reported that personalization (driven by analytics) can boost marketing ROI by 10–30%.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*2ZHQvhovaQ6jU3-qxedGLA.jpeg" /></figure><p><strong>Implementation strategy:</strong></p><ul><li><strong>Tech Stack:</strong> Lovable, Replit, or ToolJet for the frontend and backend with FastAPI for APIs and data ingestion. The AI layer will be implemented in Python using TensorFlow for the churn and prediction models. BigQuery or PostgreSQL can be used for analytics. For integration, HubSpot, Stripe, and Google Analytics.</li><li><strong>MVP Feature:</strong> Automed email insights, customer segmentation by purchase frequency and spend, and predictive churn scoring.</li></ul><p><strong>Revenue projection:</strong> Start at $100/month for a business with up to ten thousand customer records. You can also get more for multi-source integration and white-label options.</p><h3>The Next Step</h3><p>Don’t overthink it. With low-code app builder tools like <a href="https://www.tooljet.ai/">Tooljet</a> and <a href="https://lovable.dev/">Loveable</a>, you can build and test in the real world.</p><p>So pick one retail challenge (<a href="https://blog.tooljet.ai/ai-in-retail/">find others here</a>), join communities of retailers and builders like Reddit or Shopify forums.</p><p>Read their pain points and use that as your product roadmaps. Reach out to like 3 store owners or the Ops manager to understand how it is done currently, and sketch out how AI or automation can fix it.</p><p><em>✨ Nov 13th/25 on </em><a href="https://medium.com/p/3aa3a3938311"><em>learnaitoprofit.com</em></a><em> — </em><a href="https://www.linkedin.com/company/learnaitoprofit/"><em>Linkedin</em></a><em> — </em><a href="https://www.facebook.com/aibusinessplans/"><em>Facebook</em></a><em> </em>🤍</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=21938bf10489" width="1" height="1" alt=""><hr><p><a href="https://learnaitoprofit.com/the-4-ai-retail-saas-ideas-you-should-be-building-next-21938bf10489">The 4 AI Retail SaaS Ideas You Should Be Building Next</a> was originally published in <a href="https://learnaitoprofit.com/">LearnAItoprofit.com</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Stripe Card Payment Features in Power Pages]]></title>
            <link>https://medium.com/learning-data/stripe-card-payment-features-in-power-pages-1734af437d8b?source=rss-4c085f45b4d5------2</link>
            <guid isPermaLink="false">https://medium.com/p/1734af437d8b</guid>
            <category><![CDATA[data]]></category>
            <category><![CDATA[power-pages]]></category>
            <category><![CDATA[stripe]]></category>
            <category><![CDATA[developers-update]]></category>
            <category><![CDATA[payments]]></category>
            <dc:creator><![CDATA[Benny Ifeanyi Iheagwara]]></dc:creator>
            <pubDate>Wed, 31 Jul 2024 13:33:03 GMT</pubDate>
            <atom:updated>2024-07-31T13:33:03.484Z</atom:updated>
            <content:encoded><![CDATA[<p>Power pages are amazing! Don’t miss out; complete your checkout!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OkQXQvTXjvRYGmu2pgA8_Q.png" /></figure><p>Power Pages is a fantastic software-as-a-service tool that allows users to create custom external-facing web applications and portals that will enable external parties to interact with their data and processes. This tool also requires little to no code and can be built using business data. It is important to know that this tool was previously called Power Apps Portal.</p><p>Since Power Pages allows organizations to build dynamic enterprise websites, there must be a way for your consumers, partners, or users to make payments. This payment could be for a subscription, a service fee, or even to make a purchase. To make this possible, Power Pages has a Stripe payment feature. This Stripe feature supports payment from credit cards, debit cards, Apple Pay, and Google Pay.</p><h3>Prerequisites</h3><p>To follow along with this article, you will need to have:</p><ul><li>A Microsoft team account and Microsoft 365 license. You can apply for a free license under the <a href="https://learn.microsoft.com/en-us/office/developer-program/microsoft-365-developer-program">Microsoft 365 Developer Program</a> if you don’t have one.</li><li>Knowledge of Power Pages.</li><li>A <a href="https://docs.stripe.com/development">Stripe developer account</a>.</li></ul><h3>How to Create Power Pages Using Microsoft Copilot</h3><p>Before you can integrate Stripe into your Power Page website, you will need to have a Power Pages site up and running.</p><p>You can easily create a Power page site using Microsoft Copilot by simply describing what you want.</p><ol><li>Navigate into <a href="https://make.powerpages.microsoft.com/?ppages_source=M365">make.powerpages.microsoft.com</a>.</li><li>Describe the website you want to build. Once you hit <strong>Enter</strong> on your keyboard. The prompt gets sent, and Copilot will automatically generate the website.</li></ol><p>When describing the website you want to build, it’s crucial to be clear about its purpose. For example, you might say: “I want to create a website with a single page that displays various cooking recipes. When a user clicks on a recipe, they’re taken to a payment page. There should also be a cancel or back button that allows users to return to the home page.” (see figure 1.) This level of detail helps Copilot understand your needs and generate a more accurate page.</p><figure><img alt="ALT TXT: A screenshot showing the prompt page for Microsoft Copilot on Power Pages. It includes a prompt, “Create a website with one page website that shows various cooking recipes. When a recipe is clicked on, it leads users to a payment page. Also, include a cancel or back button so users can return to the home page.”" src="https://cdn-images-1.medium.com/max/1024/0*J-h8MGCMbI4PXr_a" /><figcaption>Figure 1: Building your website with copilot | Used with permission from Microsoft.</figcaption></figure><p>3. Hit<strong> Enter</strong> on your keyboard to generate the site using your prompt.</p><p>4. Give your site a name.</p><p>5. Pick a layout you like (figure 2), and select <strong>Create</strong>.</p><figure><img alt="ALT TXT: An image showing the site layout view of Power Pages." src="https://cdn-images-1.medium.com/max/1024/0*ORgL69IlfSX9kKFL" /><figcaption>Figure 2: The site layout customization view of Power Pages | Used with permission from Microsoft.</figcaption></figure><p>6. You can style your site by making modifications and deleting any elements you don’t want.</p><p>7. Click on the <strong>Action</strong> button, then click <strong>Edit</strong> to link your call to action button to your <strong>Subscription to our plan</strong>. The <strong>Subscribe to our plan</strong> page represents your payment page.</p><figure><img alt="ALT TXT: An image showing how to link pages in Power Pages." src="https://cdn-images-1.medium.com/max/1024/0*Zg9tU2WwHG0CoMiL" /><figcaption>Figure 3: Customizing a button in Power Pages | Used with permission from Microsoft.</figcaption></figure><p>8. Navigate to the <strong>Subscribe to our plan </strong>page and make any style changes you want.</p><p>You can view your test cooking recipe website at <a href="https://cookingrecipes-4a0d.powerappsportals.com/">Cooking Recipes.powerapps portals.com</a>.</p><h3>How to Install the Stripe Package for your Power Pages — Stripe Integration</h3><p>Before you get started, you will need to install the Power Pages — Stripe Integration package.</p><ol><li>Navigate to the <strong>Set up </strong>section in the design studio.</li></ol><p>2. Select <strong>External app (preview)</strong> (see figure 4).</p><p>3. Click <strong>Install</strong> (in the Actions column) to start the Stripe integration. This enables digital payments.</p><figure><img alt="ALT TXT: An image showing the integrations page with options to install DocuSign and Stripe in Power Pages." src="https://cdn-images-1.medium.com/max/1024/0*qPip1-Fdxto9nHc2" /><figcaption>Figure 4: Stripe integration in Power Pages | Used with permission from Microsoft.</figcaption></figure><p>4. Go to your Stripe developer dashboard. Here, you will find your <strong>Publishable</strong> and <strong>Secret Keys</strong>.</p><p>5. Head back to Power Page Design Studio.</p><p>6. Click manage and enter your <strong>Publishable</strong> and <strong>Secret keys</strong>.</p><p>7. Click <strong>Save</strong>.</p><p>8. Click on the <strong>Sync</strong> button.</p><p>Are you curious to know how this works? Head to the Solution section of <a href="https://make.powerapps.com/environments/Default-2f190ec1-eaa8-42a8-813d-e3ebcb5fe9dd/home?utm_source=office&amp;utm_medium=app_launcher&amp;utm_campaign=office_referrals">make.powerapps.com</a>. Here, you will see that the three underlying solutions were installed (figure 5).</p><ul><li>Power Pages Encrypted Settings V2</li><li>Power Pages Stripe Integration V2</li><li>Power Pages Payments V2</li></ul><figure><img alt="ALT TXT: An image showing the Stripe Integration in Power Pages." src="https://cdn-images-1.medium.com/max/1024/0*mvbYVrL_l7APaa4p" /><figcaption>Figure 5: This screenshot shows the various Power Pages solution installed after the Stripe integration in Power Pages | Used with permission from Microsoft.</figcaption></figure><h3>How to Set up the Data Page for Your Power Apps — Stripe Integration</h3><p>Now that you have a website and installed the package, you must set up the data page. It is important to note that Power Apps is PCI DSS Compliance. This means it doesn’t store card details in Power Pages or the Dataverse. Rather, it uses the <a href="https://docs.stripe.com/security/guide#validating-pci-compliance">Stripe Web Elements payment integration approach</a>.</p><ol><li>Navigate to <a href="https://make.powerapps.com/environments/Default-2f190ec1-eaa8-42a8-813d-e3ebcb5fe9dd/home?utm_source=office&amp;utm_medium=app_launcher&amp;utm_campaign=office_referrals">make.powerapps.com</a>.</li></ol><p>2. Select <strong>Table</strong>.</p><p>3. Click <strong>Create a blank table</strong> and enter your desired data field (see figure 6). Note that one of your columns (the column that gets the cost) should be in the currency data format.</p><figure><img alt="ALT TXT: An image showing how to build a data table in Power Apps." src="https://cdn-images-1.medium.com/max/1024/0*v5MjDleL_os81k5L" /><figcaption>Figure 6: Build out your table in Power Apps | Used with permission from Microsoft.</figcaption></figure><p>4. Ensure that your table has at least Create and Write permissions.</p><p>5. Click on <strong>Form</strong> under the <strong>Data experiences</strong> section to create a form. You will, however, need to create two forms: one for user details and the other for payment checkout.</p><figure><img alt="ALT TXT: An image showing how to build a data table in Power Apps." src="https://cdn-images-1.medium.com/max/1024/0*3Ozx2Yfo5wOdD5lq" /><figcaption>Figure 7: Creating a form in <strong>Build out your table</strong> in Power Apps | Used with permission from Microsoft.</figcaption></figure><p>6. Click <strong>New Main Form</strong> to create your form within the UI.</p><p>7. <strong>Save</strong> and <strong>Publish</strong>. You can add and remove any field you want to remove. The second form should be blank, and you should hide all elements.</p><p>8. Navigate back to <a href="https://make.powerpages.microsoft.com/?ppages_source=M365">make.powerpages.microsoft.com</a>.</p><p>9. Go to the <strong>Subscribe to our plan</strong> page.</p><p>10. Click the<strong> Multi-Step form</strong> to create a form.</p><p>11. Click <strong>Ok.</strong></p><p>12. Click on <strong>Add a first step</strong>.</p><p>13. Give this step a name. You can call it <strong>Collect info</strong>.</p><p>14. Pick the table you created in Power Apps and the first form you made.</p><p>16. Click <strong>Ok</strong>.</p><p>17. Click on the <strong>Add step</strong> to set up the second step of the workflow.</p><p>18. Give this second step a name. You can call it <strong>Collect payment</strong>.</p><p>19. Pick the table you created in Power Apps and the second form you made as well.</p><p>20. Click <strong>Sync</strong> to sync all the configurations.</p><p>21. Click on the <strong>Step setting</strong>.</p><p>22. Click on <strong>App Integration</strong> and toggle on the <strong>Enable digital payment</strong> feature (figure 8).</p><p>23. Select a currency value from the amount field.</p><p>24. Click <strong>Ok</strong>.</p><figure><img alt="ALT TXT: An image showing the digital payment in Power Pages." src="https://cdn-images-1.medium.com/max/1024/0*Fae72IyCMLbXdOSG" /><figcaption>Figure 8: The digital payment in Power Pages | Used with permission from Microsoft.</figcaption></figure><p>25. Power Pages will automatically generate a user card payment form, as shown in Figure 9.</p><figure><img alt="ALT TXT: An image showing the collect payment page at Power Pages." src="https://cdn-images-1.medium.com/max/1024/0*EvXLeK_NDX6zKtdz" /><figcaption>Figure 9: Collect payment page at Power Pages | Used with permission from Microsoft.</figcaption></figure><h3>How to Install the Stripe Package for Your Power Pages — Stripe Integration</h3><p>We are dealing with payments here. Hence, it is important to ensure that your integration works.</p><ol><li>Navigate to <a href="https://docs.stripe.com/testing">docs.stripe.com/testing</a> to get some test credit cards.</li></ol><p>2. Click <strong>Preview</strong> in the <a href="https://make.powerpages.microsoft.com/?ppages_source=M365">make.powerpages.microsoft.com</a> UI and input your test card’s details. A successful payment will include the amount paid and Stripe&#39;s transaction ID.</p><p>You can view the test cooking recipe website at <a href="https://cookingrecipes-4a0d.powerappsportals.com/">Cooking Recipes.powerapps portals.com</a>.</p><figure><img alt="ALT TXT: An image showing the successfully processed message in Power Pages." src="https://cdn-images-1.medium.com/max/1024/0*BwOHtPsU3jU3D92r" /><figcaption>Figure 9: Successfully processed message in Power Pages | Used with permission from Microsoft.</figcaption></figure><p>3. Navigate back to your Stripe Developer account to view the logs and events of your payment status.</p><figure><img alt="ALT TXT: An image showing the event page on your Stripe developer account." src="https://cdn-images-1.medium.com/max/1024/0*IlVJ2Y5WGRaA1-Ur" /><figcaption>Figure 10: The events page on your Stripe developer account | Used with permission from Microsoft.</figcaption></figure><h3>Give it a Try!</h3><p>This article demonstrated how you can integrate Stripe into your Power Pages. You should follow the steps described in this article and practice. Build your own Power Page website and check out the Stripe integration.</p><p><em>The contents of external submissions are not necessarily reflective of the opinions or work of </em><a href="http://mavenanalytics.io/"><em>Maven Analytics</em></a><em> or any of its team members.</em></p><p><em>We believe in fostering lifelong learning and our intent is to provide a platform for the data community to share their work and seek feedback from the Maven Analytics data fam.</em></p><p><a href="https://medium.com/learning-data/how-to-get-your-work-published-by-learning-data-with-maven-analytics-7df21e466a3e?source=friends_link&amp;sk=020dfac485597d602e218968d9ffb395"><em>Submit your own writing here</em></a><em> if you’d like to become a contributor.</em></p><p><em>Happy learning!</em></p><p><em>-Team Maven</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1734af437d8b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/learning-data/stripe-card-payment-features-in-power-pages-1734af437d8b">Stripe Card Payment Features in Power Pages</a> was originally published in <a href="https://medium.com/learning-data">Learning Data</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Text Summarization Modeling with ScikitLLM and Comet]]></title>
            <link>https://heartbeat.comet.ml/text-summarization-modeling-with-scikitllm-and-comet-efbd9025e0b1?source=rss-4c085f45b4d5------2</link>
            <guid isPermaLink="false">https://medium.com/p/efbd9025e0b1</guid>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[text-summarization]]></category>
            <category><![CDATA[cometml]]></category>
            <dc:creator><![CDATA[Benny Ifeanyi Iheagwara]]></dc:creator>
            <pubDate>Fri, 08 Mar 2024 00:02:15 GMT</pubDate>
            <atom:updated>2024-03-08T00:02:15.040Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M_vKJM1CnGSjt-WBa62akg.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@beingabstrac?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">rishi</a> on <a href="https://unsplash.com/photos/WiCvC9u7OpE?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>Large Language Models (LLMs) are pretty remarkable. These powerful machine-learning models can understand and generate human-like text, creating a natural conversation experience. But they’re not just for chatting — they can also be used to deliver information, generate information like summaries, and get valuable suggestions.</p><p>Today, we will talk about ScikitLLM or Scikit Large Language Model. ScikitLLM is interesting because it seamlessly integrates LLMs into your traditional Scikit-learn (Sklearn) library. If you’re familiar with machine learning and statistical modeling, you know Sklearn is a powerful tool that provides users with various unsupervised and supervised learning algorithms for building robust machine learning models.</p><p>In this post, we’ll take a deep dive into ScikitLLM and explore how you can use it to build text summarization ML models and monitor them all in Comet.</p><h3>What is ScikitLLM?</h3><p>Scikit-LLM, described in the <a href="https://github.com/iryna-kondr/scikit-llm">official Scikit-LLM GitHub repository</a>, is scikit-learn meets large language models. This means Scikit-LLM brings the power of powerful language models like ChatGPT into scikit-learn for enhanced text analysis tasks.</p><p>One of the most fascinating aspects of this integration is that you can access various ML algorithms and leverage advanced natural language processing. Something else I found interesting was that this library maintains scikit-learn’s workflow. This means the process is still basically the same: You import your libraries, load your dataset, split your data, train with the fit method, and make predictions using the predict method.</p><p>Now, not to bore you with long talk! Let’s get started!</p><h3>Getting Started with ScikitLLM</h3><p>To make use of ScikitLLM, we will need to use the pip install command to install ScikitLLM:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1c1037db12d8b0ee37d69231d2d4b71d/href">https://medium.com/media/1c1037db12d8b0ee37d69231d2d4b71d/href</a></iframe><p>Currently, Scikit-LLM only supports OpenAI, GPT4ALL, Google PaLM 2, and Azure OpenAI.</p><p>We will, however, make use of OpenAI. Thus, you will need to set up an <a href="https://openai.com/api/">OpenAI account</a>. Once done, <a href="https://platform.openai.com/docs/quickstart/pricing">set up billing</a> and generate an <a href="https://platform.openai.com/account/api-keys">OpenAI API token key</a> for this project.</p><p>Then head over to your Colab or Jupyter notebook and run this:</p><pre># importing SKLLMConfig<br>from skllm.config import SKLLMConfig<br># Set your OpenAI API key<br>SKLLMConfig.set_openai_key(&quot;*******&quot;)<br># Set your OpenAI organization<br>SKLLMConfig.set_openai_org(&quot;**ABC**&quot;)</pre><p><strong>Note:</strong> ******* represents your <a href="https://platform.openai.com/account/api-keys">API token key</a>, and **ABC** represents <a href="https://platform.openai.com/account/org-settings">your organization I.D.</a></p><h3>Text Summarization with ScikitLLM</h3><p>We will use the <a href="https://www.kaggle.com/datasets/harshalhonde/starbucks-reviews-dataset">Starbucks reviews dataset</a> from Kaggle for the text summarization modeling. This dataset contains information about reviews, ratings, and location data from various Starbucks stores.</p><p>To summarize the reviews, we will utilize the GPTSummarizer module of the ScikitLLM library and the GPT-3.5-turbo model from OpenAI. In the GPTSummarizer module, we can use the max_word parameter to set a flexible limit on the number of words each summary produces. I said flexible because the actual length of the generated summary can be longer than the predetermined limit set. After that, we can use the fit_transform method to feed our review to our model. Once done, we can use print to see the summarized reviews.</p><pre>import comet_ml<br>import pandas as pd<br>from comet_ml import Artifact, Experiment<br>from skllm.preprocessing import GPTSummarizer<br><br># Load your CSV file into a DataFrame<br>df = pd.read_csv(&#39;/content/reviews_data.csv&#39;)<br><br># Select a subset of reviews (e.g., the first 50)<br>X = df[&quot;Review&quot;].values[:50]<br><br># Initialize the GPTSummarizer<br>reviews_summarizer = GPTSummarizer(openai_model=&quot;gpt-3.5-turbo&quot;, max_words=10)<br><br># Generate summaries with your model<br>generated_reviews = reviews_summarizer.fit_transform(X)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1tUoFzvEoRiaRde4kJJULw.png" /><figcaption>The summarized review (Image by Author)</figcaption></figure><p>You should try running your model on the entire dataset as well. But the execution of this will take some time. To accomplish this, delete the .values[:50] from the code we previously used.</p><p>To evaluate how good our model is, we will then compute the BLEU Score. A sentence is compared to one or more reference sentences to determine the BLEU score. The output score ranges from 0 to 1. An output value of 1 indicates that the candidate sentence exactly matches one of the reference sentences. However, since we lacked a reference summary in our data, we are evaluating the generated summaries compared to themselves.</p><pre># Join the generated reviews into a single string<br>reviews_text = &quot;\n&quot;.join(generated_reviews)<br><br>from nltk.translate.bleu_score import corpus_bleu<br><br>bleu_score = corpus_bleu([[summary.split()] for summary in generated_reviews], [summary.split() for summary in generated_reviews])</pre><h3>Running Our Model In Comet</h3><p>Once done with the modeling, we can log everything in Comet.</p><p>To accomplish that, we must first create a project in Comet. Here, we will record all relevant information, including metrics and created reviews, as true. However, if you don’t already have a Comet account, you must <a href="https://www.comet.com/signup">create one</a>. You can find the name of your workspace <a href="https://www.comet.com/account-settings/workspaces">here</a>.</p><p>The next step will be to log all our generated reviews from our model as text.</p><p>To log in our artifacts, we create an artifact instance by giving it a name, artifact_type, and specifying the file path with artifact.add(). Artifacts here means dataset.</p><pre># Initialize Comet<br>experiment = comet_ml.Experiment(<br>    project_name=&quot;Text Summarization&quot;,<br>    workspace=&quot;bennykillua&quot;,<br>    api_key=&quot;YOUR KEY&quot;,<br>    auto_metric_logging=True,<br>    auto_param_logging=True,<br>    auto_histogram_weight_logging=True,<br>    auto_histogram_gradient_logging=True,<br>    auto_histogram_activation_logging=True,<br>    log_code=True<br>)<br><br># Log the generated reviews as text<br>experiment.log_text(&quot;Generated Reviews&quot;, reviews_text)<br><br>comet_ml.init(api_key=&quot;YOUR KEY&quot;)<br><br># Initialize an Artifact<br>artifact = Artifact(name=&quot;Reviews&quot;, artifact_type=&quot;dataset&quot;)<br><br># Specify the path of the artifact (the dataset file)<br>artifact.add(r&quot;/content/reviews_data.csv&quot;)<br><br># Log the artifact to the experiment (Comet platform)<br>experiment.log_artifact(artifact)<br><br># Log the BLEU score<br>experiment.log_metric(&quot;BLEU Score&quot;, bleu_score)<br><br># Log the model<br>experiment.log_model(reviews_summarizer, &#39;model&#39;) <br><br># End the experiment<br>experiment.end()</pre><p>You can view the logged model on the <a href="https://www.comet.com/bennykillua/text-summarization/4c30fb4b3a4645849cd1a5d00fe7b97e?experiment-tab=panels&amp;showOutliers=true&amp;smoothing=0&amp;xAxis=wall">Comet platform</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fDXVloxkuHHU8RjHMe0HtA.png" /><figcaption>The BLEU score (Image by Author)</figcaption></figure><p>Here is the complete code:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7cfb75335aa1a5a7276bb20905ed5379/href">https://medium.com/media/7cfb75335aa1a5a7276bb20905ed5379/href</a></iframe><h3>Conclusion</h3><p>Integrating Large Language Models with scikit-learn through the SKLLM library allows us to leverage advanced language understanding for various machine learning algorithms. Furthermore, by leveraging Comet, you have a user-friendly interface to track and optimize your hyperparameters and collaborate with other data scientists.</p><p><strong>P.S.</strong> If you prefer to learn by code, check out this <a href="https://gist.github.com/Bennykillua/db4e3673029d0b933c97bcfe141fdff2">Github gist</a>, which hosts the code snippets. Also, do check out the logged model on the<a href="https://www.comet.com/bennykillua/text-summarization/4c30fb4b3a4645849cd1a5d00fe7b97e?experiment-tab=panels&amp;showOutliers=true&amp;smoothing=0&amp;xAxis=wall"> Comet platform</a>.</p><p><em>Editor’s Note: </em><a href="https://heartbeat.comet.ml/"><em>Heartbeat</em></a><em> is a contributor-driven online publication and community dedicated to providing premier educational resources for data science, machine learning, and deep learning practitioners. We’re committed to supporting and inspiring developers and engineers from all walks of life.</em></p><p><em>Editorially independent, Heartbeat is sponsored and published by </em><a href="http://comet.com/?utm_source=heartbeat&amp;utm_medium=referral&amp;utm_campaign=AMS_US_EN_AWA_heartbeat_EN"><em>Comet,</em></a><em> an MLOps platform that enables data scientists &amp; ML teams to track, compare, explain, &amp; optimize their experiments. We pay our contributors, and we don’t sell ads.</em></p><p><em>If you’d like to contribute, head on over to our</em><a href="https://heartbeat.comet.ml/call-for-contributors-fee7f5b80f3e"><em> call for contributors</em></a><em>. You can also sign up to receive our weekly newsletter (</em><a href="https://www.deeplearningweekly.com/"><em>Deep Learning Weekly</em></a><em>), check out the </em><a href="https://www.comet.com/site/blog/"><em>Comet blog</em></a><em>, join us on</em><a href="https://join.slack.com/t/fritz-ai-community/shared_invite/enQtNTY5NDM2MTQwMTgwLWU4ZDEwNTAxYWE2YjIxZDllMTcxMWE4MGFhNDk5Y2QwNTcxYzEyNWZmZWEwMzE4NTFkOWY2NTM0OGQwYjM5Y2U"><em> </em></a><a href="https://join.slack.com/t/cometml/shared_invite/zt-49v4zxxz-qHcTeyrMEzqZc5lQb9hgvw"><em>Slack</em></a><em>, and follow Comet on </em><a href="https://twitter.com/Cometml"><em>Twitter</em></a><em> and </em><a href="https://www.linkedin.com/company/comet-ml/"><em>LinkedIn</em></a><em> for resources, events, and much more that will help you build better ML models, faster.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=efbd9025e0b1" width="1" height="1" alt=""><hr><p><a href="https://heartbeat.comet.ml/text-summarization-modeling-with-scikitllm-and-comet-efbd9025e0b1">Text Summarization Modeling with ScikitLLM and Comet</a> was originally published in <a href="https://heartbeat.comet.ml/">Heartbeat</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exploring Generative Artificial Intelligence with PandasAI, OpenAI, and Comet LLM]]></title>
            <link>https://heartbeat.comet.ml/exploring-generative-artificial-intelligence-with-pandasai-openai-and-comet-llm-be5f9d052eb7?source=rss-4c085f45b4d5------2</link>
            <guid isPermaLink="false">https://medium.com/p/be5f9d052eb7</guid>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[openai]]></category>
            <category><![CDATA[heartbeat]]></category>
            <category><![CDATA[cometml]]></category>
            <category><![CDATA[generative-ai-use-cases]]></category>
            <dc:creator><![CDATA[Benny Ifeanyi Iheagwara]]></dc:creator>
            <pubDate>Fri, 23 Feb 2024 00:02:08 GMT</pubDate>
            <atom:updated>2024-02-23T00:02:08.677Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iT6ZjzY7gN9DcyQDdfIMLQ.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@orwhat?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Richard Horvath</a> on <a href="https://unsplash.com/photos/WOA3QKFjlo8?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>Python&#39;s Pandas library has long been the trusted companion of data analysts and data scientists. This library is known for its data manipulation, transformation, and wrangling capabilities.</p><p>But what if I told you there&#39;s a way to bring the power of Generative AI to the Pandas library?</p><p>While researching LLMs (large language models), I came across PandasAI, a library that adds Generative AI capabilities to Pandas. This library will revolutionize how we can work with data by allowing us to turn complex queries into simple conversations. This article will dive into PandasAI, explore its capabilities, and how you can keep track of your model with Comet. We will also explore CometLLM.</p><h3>Overview of PandasAI</h3><p>PandasAI is a powerful Python library that uses generative AI models to make Pandas conversational. This lets you use natural language to execute Pandas&#39; commands, like manipulating data frames and plotting a graph.</p><p>It is essential to know that while PandasAI is a game changer, it is designed to be used with Pandas and not replace it.</p><h3>Tools to be Used</h3><ul><li>Jupyter Notebook or Google Colab for experimentation</li></ul><h3>Installation</h3><p>To get started, we will need to install the PandasAI. Run the command below:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0449203c63af0c602251ee9add259d1c/href">https://medium.com/media/0449203c63af0c602251ee9add259d1c/href</a></iframe><p>You might run into this error: &quot;<em>ERROR: Could not find a version that satisfies the requirement pandasai (from versions: none) ERROR: No matching distribution found for pandasai</em>&quot;.</p><p>This is because PandasAI requires Python &gt;=3.9, &lt;4.0. To solve this, you need to upgrade your Python.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*aXMFaBIRRH4jVk-I" /></figure><h3>Getting Started with PandasAI</h3><p>LLMs power PandasAI and support several large language models (LLMs), from OpenAI, Azure OpenAI, and Google PaLM to HuggingFace&#39;s Starcoder and Falcon models. These models are essential to give PandasAI its natural language query capabilities.</p><p>We must use OpenAI LLM API Wrapper for this tutorial to power PandasAI&#39;s generative AI capabilities. We will need to set up an <a href="https://auth0.openai.com/u/signup/identifier?state=hKFo2SBYanJCYndwNWZSN3RrQUlfNFBzbTJVU01MbjlScEFTVKFur3VuaXZlcnNhbC1sb2dpbqN0aWTZIE45ZGpYS2Jna2FDYl9ta3BPNVM1em52Rm9DeG1FZVBuo2NpZNkgRFJpdnNubTJNdTQyVDNLT3BxZHR3QjNOWXZpSFl6d0Q">OpenAI</a> account and generate an OpenAI API token key, which you can find on your <a href="https://platform.openai.com/account/api-keys">account here</a>. You should <a href="https://platform.openai.com/docs/quickstart/pricing">set up billing</a> since OpenAI access is a paid service; I will show you how to monitor your billing later in the article.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/39f350fa6e7bc3fc209466ff506c20a8/href">https://medium.com/media/39f350fa6e7bc3fc209466ff506c20a8/href</a></iframe><blockquote><strong>Note: </strong>******* represents your OpenAI API token key. You can find on your <a href="https://platform.openai.com/account/api-keys">account here</a>.</blockquote><h3>Our Dataset</h3><p>I will use the <a href="https://www.kaggle.com/datasets/iamsouravbanerjee/house-rent-prediction-dataset">house rent prediction dataset</a> I found on Kaggle for this article. The dataset contains information like the number of bedrooms, kitchens, the rent, city, area, and furnishing status of over 4,000 houses, apartments, and flats in India.</p><p>We will now load our dataset using the Pandas library.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e704ec94c7196225943bbe1a66c0ff87/href">https://medium.com/media/e704ec94c7196225943bbe1a66c0ff87/href</a></iframe><h3>Exploring Our Dataset with PandasAI and OpenAI</h3><p>We can now explore the dataset with PandasAI&#39;s generative AI capabilities. Just as Pandas has <a href="https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.html">dataframes</a>, PandasAI has SmartDataframes.</p><p>SmartDataframe has the same properties as pd.DataFrame but with conversational features.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7d466b325e4cb410b13074f17f65b0c4/href">https://medium.com/media/7d466b325e4cb410b13074f17f65b0c4/href</a></iframe><p>Now, let&#39;s explore PandasAI.</p><pre>sdf.impute_missing_values()</pre><p>This command will impute missing values in your data frame.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nNvfXlrTlIXuGUEn" /></figure><p>To ask your data questions using PandasAI, you use sdf.chat</p><pre>sdf.chat(“who is the ideal tenant for a 3 bedroom in kolkata”)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/725/0*cjo-KkFk8rV4F5pz" /></figure><pre>sdf.chat(“Return the top 5 expensive city by rent”)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/621/0*zzAXt4TqhAxAx_ig" /></figure><pre>sdf.chat(“In a table show me the average rent in the various cities each month and group this data by the BHK”) <br>#BHK here represent numbers of bedrooms, hall, and kitchen</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*cB41Y5rKuyS8UCKq" /></figure><pre>sdf.chat(“In a table show me the number of Point of Contact in the various cities each month and group this data by the Point of Contact”)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XO8gZ5wv-2GQAOwI" /></figure><p>You can also generate charts with PandasAI:</p><pre>sdf.chat(“Plot a chart of the average rent by city”)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*04vtoaXxTRQPIYyr" /></figure><pre>sdf.chat(“Create a line chart to show the trend of rent by city in the last few months”)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/986/0*HwrU09t-qh5TQIPM" /></figure><pre>sdf.plot_correlation_heatmap()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*UE4l4xypH1hp8wi0" /></figure><pre>sdf.chat(“Calculate the average cost of rent in Delhi”)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/741/0*hvZjAaYb2IPeJ48K" /></figure><p>Here is a GitHub gist of the code snippets.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9bf76148ca6e53da8f5c0a6e708fea4a/href">https://medium.com/media/9bf76148ca6e53da8f5c0a6e708fea4a/href</a></iframe><h3>Worried about the Billing? Count Your Tokens</h3><p>OpenAI&#39;s API process and break down your prompts into tokens. You can think of them as pieces of words and characters. You should visit the <a href="https://help.openai.com/en/articles/4936856-what-are-tokens-and-how-to-count-them">official documentation</a> to learn more.</p><p>You can analyze and count the number of tokens your prompt uses using the command below.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2e3a2de90800e3b894e1fdb507c49a3f/href">https://medium.com/media/2e3a2de90800e3b894e1fdb507c49a3f/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/738/0*6SFyZ3gxP1Zby19l" /></figure><p>You can also check out your usage on OpenAI <a href="https://platform.openai.com/account/usage">here</a>.</p><h3>Logging your <strong>Artifacts on </strong>Comet</h3><p>Once done, you should log the dataset (Comet calls these <strong>Artifacts) </strong>to Comet. This way, when working and building machine learning models, you can automate and keep track of your code and artifacts.</p><p>To get started, we will need to create a <a href="https://www.comet.com/site/">Comet account</a>. This will enable us to log our Artifacts on the Comet platform through an &quot;experiment.&quot; Let&#39;s log a new experiment with our <a href="https://www.kaggle.com/datasets/iamsouravbanerjee/house-rent-prediction-dataset">house rent prediction dataset</a> using the code below:</p><pre>import comet_ml<br>from comet_ml import Artifact, Experiment<br>#Initialize comet instance for API Key<br>comet_ml.init()</pre><p>Here, we imported and initialized the CometML library. Once you run this, you will be prompted to pass your <a href="https://www.comet.com/account-settings/apiKeys">Comet API key</a> into Colab or Jupyter.</p><p>Next, we create an Experiment object by giving it a name and the workspace it should belong to. You can get all your available workspaces <a href="https://www.comet.com/account-settings/workspaces">here</a>. After that, we will create an Artifact instance by giving it a name, Artifact type and specifying the file path with the artifact.add(). Then, we end the experiment.</p><p>You can do that using the code below:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b6693fcc71f55f3fb56001bb3120c551/href">https://medium.com/media/b6693fcc71f55f3fb56001bb3120c551/href</a></iframe><h3>Logging with CometLLM</h3><p>However, since this is an LLM project, it will be best to log our prompt using <a href="https://github.com/comet-ml/comet-llm">CometLLM</a>.</p><blockquote>CometLLM is a new suite of LLMOps tools designed to help you effortlessly track and visualize your LLM prompts and chains.</blockquote><p>First, we will need to install the Comet Library:</p><pre>pip install comet_llm</pre><p>Then, we will also need our API key, which we can get from our <a href="https://www.comet.com/site/">Comet account</a>. Once you have that, we can log our prompts and their outputs to Comet.</p><p>We can test CometLLM by running the code below:</p><pre>import comet_llm<br><br>comet_llm.log_prompt(<br>    prompt=&quot;What is your name?&quot;,<br>    output=&quot; My name is Benny Ifeanyi&quot;,<br>    api_key=&quot;YOUR_COMET_API_KEY&quot;,<br>    project = &quot;MY_Project_&quot;, <br>)</pre><p>This is the output. You can view it <a href="https://www.comet.com/bennykillua/MY_Project_">on the Comet platform</a> as well.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CidQfiJDPXGd4XGtN93w3g.png" /></figure><p>Now, let&#39;s log our prompt and their output. We can do that using the code below:</p><pre>import comet_llm<br>import os<br><br><br># Define your questions<br>questions = [<br>    &quot;Return the top 5 expensive city by rent&quot;<br>]<br><br># Create a list to store question-response pairs<br>question_response_pairs = []<br><br># Log the questions and responses to CometLLM and store them<br>for question in questions:<br>    # Generate the response using sdf.chat (this is the PandaAI model we created earlier)<br>    response = sdf.chat(question)  # Response is a string<br><br>    # Store the question and response in the list<br>    question_response_pairs.append({&quot;question&quot;: question, &quot;response&quot;: response})<br><br># Save the question-response pairs to a CSV file<br>csv_file_path = &#39;/content/question_response_pairs.csv&#39; <br>pairs_df = pd.DataFrame(question_response_pairs)<br>pairs_df.to_csv(csv_file_path, index=False)<br><br>with open(csv_file_path, &#39;r&#39;) as csv_file:<br>    csv_content = csv_file.read()<br><br># Log the entire CSV content as the response to CometLLM<br>comet_llm.log_prompt(<br>    prompt=&quot;Question-Response Pairs&quot;,<br>    output=csv_content, <br>    api_key=&quot;YOUR_COMET_API_KEY&quot;,<br>    project=&quot;MY_Project_&quot;,<br>)</pre><p>This is the output. You can also view it <a href="https://www.comet.com/bennykillua/my-project/prompts">on the Comet Platform</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vw_thT4aMeQnLD0O5Q7dJw.png" /></figure><p>However, we can&#39;t log our dataset with CometLLM right now because, at the moment, this isn&#39;t supported.</p><h3>What&#39;s next?</h3><p>From here, we can do much more, like using the Comet UI to score our prompt outputs or to search from specific prompts. This is helpful when working with thousands of prompts.</p><p>All of these and much more were covered in this article: <a href="https://heartbeat.comet.ml/organize-your-prompt-engineering-with-cometllm-66e390ef6645">Organize Your Prompt Engineering with CometLLM</a>.</p><h3>Conclusion</h3><p>PandasAI has brought generative AI capabilities to the Pandas library. You can explore these capabilities on your datasets and start exciting projects with other LLM models like Azure OpenAI and LangChain (<em>which you can view in the GitHub gist below</em>). Lastly, remember to track, compare, and optimize your ML experiments as you work with Comet.</p><p><strong>P.S.</strong> If you prefer to learn by code, check out this <a href="https://gist.github.com/Bennykillua/1e8942e5728338456776cd65677f35ff">Github gist</a>, which hosts an informative Google Colab notebook with all the code snippets.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b3d3a702ff765d1961eacdd6fe5e9b1d/href">https://medium.com/media/b3d3a702ff765d1961eacdd6fe5e9b1d/href</a></iframe><p><em>Editor&#39;s Note: </em><a href="https://heartbeat.comet.ml/"><em>Heartbeat</em></a><em> is a contributor-driven online publication and community dedicated to providing premier educational resources for data science, machine learning, and deep learning practitioners. We&#39;re committed to supporting and inspiring developers and engineers from all walks of life.</em></p><p><em>Editorially independent, Heartbeat is sponsored and published by </em><a href="http://comet.com/?utm_source=heartbeat&amp;utm_medium=referral&amp;utm_campaign=AMS_US_EN_AWA_heartbeat_EN"><em>Comet,</em></a><em> an MLOps platform that enables data scientists &amp; ML teams to track, compare, explain, &amp; optimize their experiments. We pay our contributors, and we don&#39;t sell ads.</em></p><p><em>If you&#39;d like to contribute, head on over to our</em><a href="https://heartbeat.comet.ml/call-for-contributors-fee7f5b80f3e"><em> call for contributors</em></a><em>. You can also sign up to receive our weekly newsletter (</em><a href="https://www.deeplearningweekly.com/"><em>Deep Learning Weekly</em></a><em>), check out the </em><a href="https://www.comet.com/site/blog/"><em>Comet blog</em></a><em>, join us on</em><a href="https://join.slack.com/t/fritz-ai-community/shared_invite/enQtNTY5NDM2MTQwMTgwLWU4ZDEwNTAxYWE2YjIxZDllMTcxMWE4MGFhNDk5Y2QwNTcxYzEyNWZmZWEwMzE4NTFkOWY2NTM0OGQwYjM5Y2U"><em> </em></a><a href="https://join.slack.com/t/cometml/shared_invite/zt-49v4zxxz-qHcTeyrMEzqZc5lQb9hgvw"><em>Slack</em></a><em>, and follow Comet on </em><a href="https://twitter.com/Cometml"><em>Twitter</em></a><em> and </em><a href="https://www.linkedin.com/company/comet-ml/"><em>LinkedIn</em></a><em> for resources, events, and much more that will help you build better ML models, faster.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=be5f9d052eb7" width="1" height="1" alt=""><hr><p><a href="https://heartbeat.comet.ml/exploring-generative-artificial-intelligence-with-pandasai-openai-and-comet-llm-be5f9d052eb7">Exploring Generative Artificial Intelligence with PandasAI, OpenAI, and Comet LLM</a> was originally published in <a href="https://heartbeat.comet.ml/">Heartbeat</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ARR for SaaS startups.]]></title>
            <link>https://iheifeanyi.medium.com/arr-for-saas-startups-bf3989c45ddf?source=rss-4c085f45b4d5------2</link>
            <guid isPermaLink="false">https://medium.com/p/bf3989c45ddf</guid>
            <category><![CDATA[arr]]></category>
            <category><![CDATA[finance]]></category>
            <dc:creator><![CDATA[Benny Ifeanyi Iheagwara]]></dc:creator>
            <pubDate>Sat, 25 Feb 2023 07:47:54 GMT</pubDate>
            <atom:updated>2023-02-25T07:47:54.179Z</atom:updated>
            <content:encoded><![CDATA[<p>Monitoring important business KPIs is the key to understanding any business and making long-term plans for its success. One such important metric for SaaS companies is the Annual Recurring Revenue. This provides insight into the trend and growth rate of the software as a service (SaaS) service and product. These insights enable the creation of growth-oriented strategies.</p><h3>What is ARR?</h3><p>Annual Recurring Revenue (ARR) is a metric used by software as a service (SaaS) companies to measure the recurring revenue of a business based on its annual subscription model. It is one of the most striking metrics of the B2B subscription business model. This is because the value of this recurring revenue tells a lot about the business growth and helps forecast revenue. Thus, it is a crucial metric for management and investors.</p><p>It is important to know that ARR is very similar to Monthly Recurring Revenue (MRR), but there is a distinct difference. Yes, they’re both used to calculate the recurring revenue of a business. However, the scale at which they contextualize this sets them apart. ARR is calculated yearly, and MRR is done monthly.</p><h3>How to calculate ARR?</h3><p>To calculate ARR for the subscription model, you must consider all recurring revenues.</p><ul><li>The subscription cost per year.</li><li>The recurring revenue is the revenue from add-ons, training, support, upgrades, and installation.</li><li>The revenue lost due to customer churn, downgrades, and cancellations.</li></ul><p>ARR = (Subscription Cost Per Year + Recurring Revenue) — Revenue Lost from Customer Churn and Cancellations.</p><p>If the subscription model is monthly, as seen in B2C companies, MRR is better suited. While using “MRR x 12” might seems right at first glance. The monthly subscription business model can be tricky because operations can be unpredictable. For example, cancellations tend to be more frequent because of the short-term nature of monthly subscriptions. It is also important to know ARR can look different depending on the company.</p><h3>How is ARR used in SaaS?</h3><p>Fundamentally ARR is used to quantify the long-term growth and visualize the SaaS subscription model size of the business. This financial statistic is crucial for SaaS businesses since it sheds light on recurring revenue, primarily used to support business growth. Additionally, it can predict future ARR growth, which businesses can use to initiate tactical growth moves toward planning, hiring, and raising funding.</p><p>ARR also offers insight into the degree of consumer commitment. The attrition and growth rates provide information on customer behavioral trends and aid SaaS in developing new strategies to encourage subscription renewals. Finally, solid ARRs numbers get the attention of investors. This is because of the predictability and stability of steady streams of recurring revenue. ARR presents investors with a business with no seasonality risk and clear profitability value for each fiscal year period. It also makes business valuation a lot easier and more precise.</p><h3>Types of ARR</h3><p>ARR is broken down into various types to get further insight:</p><ul><li><strong>New ARR</strong> is the total ARR generated from new subscriptions. It gives insights into new business strategies and how well it is fairing.</li><li><strong>Renewal ARR</strong> is the ARR generated from renewed subscriptions. It serves as an indicator of customer satisfaction and the SaaS product’s ability to deliver long-time value.</li><li><strong>Expansion ARR</strong> is recurring revenue generated from upsells, add-ons, training, supports, upgrades, and installation. It gives insight into the business’s ability to expand its customer lifetime value (LTV) and loyalty. LTV measures the gross margin contribution of an average customer within their lifespan with the service.</li><li><strong>Contraction ARR</strong> refers to a decrease in the ARR generated. This is often due to downgrades and cancellations of licenses or extra services.</li><li><strong>Canceled ARR (Churned ARR)</strong> is the ARR lost due to customer churn, non-renewals, and cancellation.</li><li><strong>Resurrected ARR (Reactivation ARR)</strong> is ARR generated from the “win back” of dormant, churned, and disengaged customers.</li></ul><h3>Is ARR the same as revenue and sales?</h3><p>Actually, no. Because ARR measures only the subscription-based revenue of the SaaS.</p><p>ARR is different from the traditional context of revenue. Thus, revenue from one-time fees and accounting details, like the cash inflows and profit and loss statements, are not included. Yet, these are important when looking at business revenue. However, ARR gives insight into the recurring revenue that comes in every year to the business considering its current performance. But revenue encompasses more than subscription revenue. It also includes money from variable revenue, special promotions, and business partners. Thus, ARR isn’t synonymous with revenue in any way.</p><h3>Key takeaway</h3><p>ARR is one of many key metrics which SaaS companies can use to standardize their subscription, plan for growth, make accurate forecasts, and increase the business valuation. While it doesn’tdoesn’t account for the total business revenue, it is critical to understand your business and make long-term plans for its success.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bf3989c45ddf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Year in Review: Hey there!]]></title>
            <link>https://iheifeanyi.medium.com/my-year-in-review-hey-there-88b538cf2820?source=rss-4c085f45b4d5------2</link>
            <guid isPermaLink="false">https://medium.com/p/88b538cf2820</guid>
            <category><![CDATA[year-in-review]]></category>
            <category><![CDATA[review]]></category>
            <dc:creator><![CDATA[Benny Ifeanyi Iheagwara]]></dc:creator>
            <pubDate>Sat, 31 Dec 2022 15:47:48 GMT</pubDate>
            <atom:updated>2022-12-31T15:47:48.180Z</atom:updated>
            <content:encoded><![CDATA[<p>Honestly, I wasn’t planning on writing a year in review. This is my first time writing one, and I am also trying to figure out how to write one. But 2022 was interesting, to say the least. I got into tech in 2021, and 2022 was me exploring and finding my feet within the industry. I also contributed to various open-source projects, made new friends, and experienced fantastic career opportunities.</p><p>I will try to make this personal, but then again, I’m not expressive, so I’ll just list some highlights. So here we go in no particular order.</p><h3>2022 highlights</h3><ul><li>I finally got the hang of the data analysis landscape and started crushing it at <a href="https://urbizedge.com/">urBizEdge</a>. I learned a couple of new tools and more about old tools I frequently used. I also hit the one-year milestone. Thanks, Michael Olafusi.</li><li>Teaching people about data tools and Microsoft technologies; taught over 400 people.</li><li>I got accepted as a technical writer into more publications, though I did not write for some. On the bright side, I, however, got to write for a bunch of new B2B, B2C, and SaaS organizations like Linux foundation, Bird eats bugs, Loggly, Opslevel, Microsoft 365 blog, and a lot more via <a href="https://www.hitsubscribe.com/">HitSubscribe</a>. What made this notable was how broad the topics always were.</li><li>More about technical writing: I also got <a href="https://www.linkedin.com/feed/update/urn:li:activity:6976486760985821185/">accepted</a> into <a href="https://www.freecodecamp.org/news/author/benny/">freeCodeCamp</a>, was able to write a post, and made the <a href="https://www.linkedin.com/feed/update/urn:li:activity:7012756113225854976/">top contributor</a> list.</li><li>I got the contract technical role with <a href="https://sematext.com/">Sematext</a> four months ago to create <a href="https://sematext.com/glossary/">glossaries</a> about various DevOps and cloud terminologies. It is a pretty exciting project because, besides writing, the team and I also work on the information architecture and showcase helpful product demos to help everyone get started.</li><li>I got some amazing feedback from the various <a href="https://www.youtube.com/@MichaelOlafusi/search?query=ifeanyi">short tutorial videos</a> I recorded about data analysis, data science, and several data technologies, languages, and tools like Microsoft Excel, SQL, Python, Power BI, Power Query, and the Power Platform.</li><li>In 2022, Hashnode did an <a href="https://townhall.hashnode.com/oss-grant-badge-winners">Open source themed writeathon</a>. I learned about open source and gave it a go this year. I got the chance to contribute <a href="http://doctoolchain.org/docToolchain/v2.0.x/">docToolChain</a>, a doc-as-code generation tool (here is a <a href="http://doctoolchain.org/tutorials/01_Tutorials/010_Quickstart.html">quickstart guide</a>), <a href="https://github.com/numpy">Numpy</a>, and a few smaller projects like <a href="https://github.com/oppia">Oppia</a> (free education for all) and <a href="https://github.com/andrew-codes/forecast-work">Forecast work</a>.</li><li>For more small wins in open source, the Spotify team added an article I wrote about <a href="https://www.section.io/engineering-education/data-viz-chartify/">Spotify’s Chartify</a> as an <a href="https://github.com/spotify/chartify/pull/137">official resource</a>. I was also able to make a tiny doc fix to Microsoft Power BI’s documentation. This is a tool I use a lot, so saying this felt awesome would be an understatement.</li><li>Participated in Hackoberfest 2022 and wrote an article via <a href="https://opensource.com/article/22/10/how-to-contribute-hacktoberfest?sc_cid=7016000000127ECAAY">opensource.com</a> to onboard curious folks. <strong>🙈</strong> I also got a <a href="https://tree-nation.com/profile/benny-ifeanyi-iheagwara">tree planted in my name</a>. Thanks Hacktoberfest and DigitalOcean!</li><li>My friends <a href="https://github.com/Bennykillua/Getting-started-in-Technical-Writing/blob/main/Empower%20Her%20X%20Non%20Tech%20in%20Tech.md">(Blessing, Timonwa, and Light)</a> and I Introduced more than 70 girls to technical writing and open source by mentoring at the Empower Her X Non-Tech in Tech Bootcamp. The conversations, questions, and feedback were also promising and intriguing. I love teaching as well, so this was fun and fulfilling. A few got gigs from the articles they wrote during the Bootcamp, and others made their first open-source contributions.</li><li>Created a <a href="https://github.com/Bennykillua/Getting-started-in-Technical-Writing#readme">technical writing resource</a> repository with a friend, <a href="https://www.linkedin.com/in/anyebe-blessing-ene-kwennb/">Blessing </a>of CSS tricks. The <a href="https://github.com/Bennykillua/Getting-started-in-Technical-Writing#learning-resource">repository resources</a> and <a href="https://github.com/Bennykillua/Getting-started-in-Technical-Writing/discussions">discussions</a> are supposed to act as a roadmap for anyone looking to get started in technical writing. Since it is open source, you can contribute to it.</li><li>I attended a few tech events like <a href="https://datafestafrica.com/">DataFestAfrica</a> and <a href="https://festival.oscafrica.org/">OSCAFEST22</a> (the first physical tech event I have attended and volunteered at).</li><li>Besides data analysis and technical writing, I spoke at, co-organized, and managed meetups that hosted free virtual learning sessions every Sunday. Attendees learned more about <a href="https://www.meetup.com/microsoft-excel-and-data-analysis-learning-community/">data analysis, Microsoft Excel</a>, <a href="https://www.meetup.com/power-bi-learning-community/">Power Platform technologies</a>, Microsoft Azure, Power BI, SQL, and <a href="https://www.meetup.com/financial-modeling-valuation-learning-community/">financial modeling</a> in the community sessions. I co-organized 114 meetup sessions with 70 speakers and the speaker’s lineup this year was also impressive. We had Ruth Pozuelo, Bob Umlas, David Abu, Temidayo Omoniyi, Travis Oliphant (the creator of Numpy and SciPy), and many more. Can I include myself as one of the impressive speakers this year?</li><li>For community growth! Each meetup community I managed (<a href="https://www.meetup.com/microsoft-excel-and-data-analysis-learning-community/">Microsoft Excel and Data Analysis Learning Community</a>, <a href="https://www.meetup.com/power-bi-learning-community/">Power BI Learning Community</a>, and <a href="https://www.meetup.com/financial-modeling-valuation-learning-community/">Financial Modeling &amp; Valuation Learning Community</a>) also grew in the number of members and engagements by over 51%.</li><li>Talking about meetups, conferences, and advocacy, I got invited to speak at a couple of meetups like Microsoft Power BI UK, Microsoft Student Ambassadors Kenya, and Resagratia data digest. Oh! And the most significant speaking conference opportunity this year was being a speaker at <a href="https://www.writethedocs.org/conf/prague/2022/">Write the Docs Prague 2022</a>. The experience was great! From the past speaker’s lineup, we (<a href="https://www.linkedin.com/feed/update/urn:li:activity:6963831541537869824/">Mustapha and I</a>) were also the first speakers ever from Nigeria. Here is a quick <a href="https://www.writethedocs.org/conf/prague/2022/news/thank-you-recap/">recap of the conference</a>, our <a href="https://docs.google.com/presentation/d/1WE-8PFfDlEYMywA_Yl5ia54gleVuVXSR5WaUgQCVOKw/edit#slide=id.p">slide</a>, <a href="https://www.flickr.com/photos/writethedocs/52378456393/in/album-72177720302317531/">sketch-note</a>, and the <a href="https://www.youtube.com/watch?v=w2L3QoTnYbE">video session</a>.</li><li>Self-confidence and social anxiety. I battled a lot with this, and although I have gotten better at it, there is still a lot to be done.</li><li>The biggest win of 2022 is that I am still here, got the chance to meet a couple of my mutuals, and made new friends. GRATEFUL is putting it lightly 🤲🏿 🤲🏿</li></ul><p>These years also had a lot of downs. From the rejections emails, a couple of which pretty hurt ’cause I was in the 2nd, 3rd, or 4th interview stage, to the period I struggled with low productivity and the letdowns. But, generally, this year’s vibe was rough and more of “getting the hang”. Next year will have a more upward trajectory.</p><p>For 2023… I’d like to breathe and do better in a lot of things:</p><ul><li>Get better at my career and work.</li><li>Be a lot more visible career-wise.</li><li>Do a physical talk and speak at more conferences. Most of my talks last year have been mostly online.</li><li>Connect more and be a lot more intentional.</li><li>More consistent with my daily 1-hour activity.</li><li>Take a trip… or more.</li><li>More community work.</li><li>Most importantly, have a better personal relationship with God.</li></ul><p>Thanks to everyone who has been a part of my 2022 journey. Thanks for your support and guidance. I wish you a merry Christmas and a happy new year. Have a blessed 2023, everyone!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=88b538cf2820" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A year of community engagement and growing with the community]]></title>
            <link>https://medium.com/ai-advocates-community/a-year-of-community-engagement-and-growing-with-the-community-3cb95dce61ae?source=rss-4c085f45b4d5------2</link>
            <guid isPermaLink="false">https://medium.com/p/3cb95dce61ae</guid>
            <category><![CDATA[community]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[community-engagement]]></category>
            <category><![CDATA[enterprise-dna]]></category>
            <category><![CDATA[urbizedge]]></category>
            <dc:creator><![CDATA[Benny Ifeanyi Iheagwara]]></dc:creator>
            <pubDate>Wed, 03 Aug 2022 09:39:51 GMT</pubDate>
            <atom:updated>2022-08-03T09:39:51.996Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9WLbRPDaspd-dBE5waaaUw.png" /></figure><p>140 sessions! 95 Speakers from all around the globe!</p><p>It has been a year since <a href="https://www.linkedin.com/in/temidayo-omoniyi-222b211a6/">Temidayo Omoniyi</a> and <a href="https://www.linkedin.com/in/ifeanyi-iheagwara/">I</a>. Besides <a href="https://www.urbizedge.com/data-analysis-as-a-service/">building KPI dashboards and templates</a> based on different technologies and <a href="https://www.urbizedge.com/courses/">educating people and organizations</a> about data analysis using various tools, we also manage three data communities powered by UrBizEdge.</p><p>Quite a lot has happened within a year when it comes to community management and relations, besides us hosting weekly meetup sessions which take place on Microsoft teams. During these sessions, various speakers share their knowledge about data analysis, financial modeling, and automating business processes using different tools. These tools include Microsoft Excel, Power Platform (Microsoft Power BI, Power Apps, Power Virtual Agents, and Power Pages), and Google Sheets. During these sessions, we have had the privilege of hosting excellent speakers from around the globe who took time from their busy schedules to share their knowledge. We are forever grateful for that ❤️.</p><p>Besides our speakers, I also need to thank our community sponsors: <a href="https://www.enterprisedna.co/">Enterprise DNA</a> and the <a href="https://fminstitute.com/">Financial Modeling Institute</a>. Within the year, they both saw the great work and decided to help in a way I could not imagine. Every Sunday, Enterprise DNA gives a member an <a href="https://www.enterprisedna.co/membership/">Enterprise DNA membership</a>. With this membership, you gain access to an unmatched offering of on-demand training, extensive resources, virtual support, exclusive event invitations, and so much more. You also get access to the <a href="https://www.enterprisedna.co/analyst-hub-home/">Enterprise DNA Analyst Hub</a>, a web-based application built ultimately for Power BI users. As for the Financial Modeling Institute, you get discounts to write any of their <a href="https://fminstitute.com/become-an-advanced-financial-modeler-50/?utm_term=fmi%20financial%20modeling&amp;utm_campaign=1+-+High+Priority&amp;utm_source=adwords&amp;utm_medium=ppc&amp;hsa_acc=4292082135&amp;hsa_cam=17730567241&amp;hsa_grp=141343909360&amp;hsa_ad=610049870596&amp;hsa_src=g&amp;hsa_tgt=kwd-864029724631&amp;hsa_kw=fmi%20financial%20modeling&amp;hsa_mt=e&amp;hsa_net=adwords&amp;hsa_ver=3&amp;gclid=Cj0KCQjwxIOXBhCrARIsAL1QFCaTaucen2hXiJJO_CL1fwjZtvz61inSTZIqarEzp6dkvuXValVgBJ0aAn25EALw_wcB">exams</a>. These exams let you get certified to be a financial modeler. And lastly, <a href="https://ng.linkedin.com/in/olafusimichael">Micheal Olafusi</a> of <a href="https://www.urbizedge.com/">UrBizEdge</a>, for powering these communities and frequently offering <a href="https://www.urbizedge.com/finance-and-financial-statements-for-non-finance-managers/">free training</a> and <a href="https://class.urbizedge.com/">courses</a>.</p><p>In addition, we increased the communities’ presence by over a thousand, which helped close the gap between learning and continuous improvement. This would not have been possible without our speakers, sponsors, and community members attending every Sunday.</p><p>Apart from all these, we have also had the honor of speaking and sharing our knowledge within other communities, such as the Leon Gordon-hosted <a href="https://www.meetup.com/microsoft-power-bi-uk/">Microsoft Power BI UK</a>.</p><p>I could go on, but I want to assure you that this is just the beginning. I just want to give everyone a big thank you for being a part of this journey, and I’m excited about all the beautiful things we will achieve this upcoming year. 🖤</p><p>A special thank you to <a href="https://www.enterprisedna.co/">Enterprise DNA</a> and the <a href="https://fminstitute.com/">Financial Modeling Institute</a> for their collaboration with us. Thank you for making this journey easier.</p><p>To our community members, Thanks for joining the call every Sunday.</p><p>If you missed any of the sessions, visit our <a href="https://www.youtube.com/user/olafusimichael">YouTube channel</a> to watch various knowledge-sharing sessions from various speakers.</p><h3>Want to be part of our communities?</h3><p>Just click on these links</p><ul><li>Microsoft Excel and Data Analysis Learning Community: <a href="https://www.meetup.com/Microsoft-Excel-and-Data-Analysis-Learning-Community/">https://www.meetup.com/Microsoft-Excel-and-Data-Analysis-Learning-Community/</a></li><li>Power BI Learning Community: <a href="https://www.meetup.com/Power-BI-Learning-Community/">https://www.meetup.com/Power-BI-Learning-Community/</a></li><li>Financial Modeling &amp; Valuation Learning Community: <a href="https://www.meetup.com/Financial-Modeling-Valuation-Learning-Community/">https://www.meetup.com/Financial-Modeling-Valuation-Learning-Community/</a></li></ul><h3>Speakers over this period</h3><p>Abiola David</p><p>Ahmed Oyelowo</p><p>Alan Cameron-Sweeney</p><p>Alejandra Horvath CPA, CGA</p><p>Alexio Tonderai Chandiwana</p><p>Andrew Grigolyunovich</p><p>AYODEJI FOLARIN (MVP, MCT, MBA)</p><p>Benny Ifeanyi Iheagwara</p><p>Bernard Obeng Boateng</p><p>Bernat Agulló Roselló</p><p>Blessing Adesiji</p><p>Bob Umlas</p><p>Brian Julius</p><p>Bunmi Akinremi</p><p>Caroline Ferreira Gugliotti</p><p>Celia Alves</p><p>Cephas Chukwuwike</p><p>Chandeep Chhabra</p><p>Chandoo Purna Rao Duggirala</p><p>Charles Otoghile</p><p>Chinmay Amte Link</p><p>Chinyere Ordor</p><p>Cristiano Galvao</p><p>Daniel Mensah, FMVA</p><p>Daniel Sarumi</p><p>Dara Oladapo</p><p>David Abiola</p><p>David Abu</p><p>Dhania Mamodaly</p><p>Ekta Chandak</p><p>Enea Ilias Liçaj</p><p>Fasakin Oloruntoba</p><p>Fatai Sanni, MCT</p><p>Federico Pastor</p><p>Folorunso Adebare Lala</p><p>Gašper Kamenšek</p><p>George Mount</p><p>Gift Ojeabulu</p><p>Gospel Obele</p><p>Hammed Abdulazeez, MVP, MCT, MCSA, MIEE</p><p>Hedieh Kianyfard</p><p>Hussain Hakeem</p><p>Ibilolia Akahome</p><p>James Andrew</p><p>James Bartlett</p><p>Jan Karel Pieterse</p><p>Japhlet Nwamu</p><p>Jocelyn Rivera</p><p>Jordan Goldmeier</p><p>Karim Niang</p><p>Kazeem Adegboyega</p><p>Ken Puls</p><p>Leon Gordon</p><p>Linson (Igoche) Abah</p><p>Marcus Wegener</p><p>Maryam Olaniyan</p><p>Melissa de Korte</p><p>Michael Oladeji</p><p>Micheal Olafusi</p><p>Moses Otu</p><p>Muhammad Kashif</p><p>Ndane Ndazhaga</p><p>Ndane Ndazhaga, CSM</p><p>Ndifreke Udoidung. FMVA, MBA, ACCA</p><p>Neale Blackwood</p><p>Nkiruka Blessing Ugwu</p><p>Olajumoke Toriola</p><p>Olanrewaju Oyinbooke</p><p>Olubukunola Akinsola</p><p>Oluwatobi Yusuf</p><p>Oluwatosin Oyinlade</p><p>Omolola Alfred</p><p>Omowunmi Adenuga</p><p>Oscar Martínez Valero</p><p>Owen Price</p><p>Oz du Soleil</p><p>Parvinder Chana</p><p>Paul Nnakwe</p><p>Rachel Irabo</p><p>Reid Havens</p><p>Reza Dorrani</p><p>Salif Sawadogo</p><p>Sally Peaches Owusu</p><p>Sam Fischer</p><p>Sanjay Chandra</p><p>Sanjay Chandra Sikakollu</p><p>Sohail Shaikh</p><p>Sudhi Ramamurthy</p><p>Temidayo Omoniyi</p><p>Thomas Festus Cudjoe</p><p>Tope Emmanuel Ogunsakin</p><p>Umeogu Onochie Chiedozie</p><p>Victor Momoh</p><p>Vijay Perepa</p><p>Yemi Akinwande</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3cb95dce61ae" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ai-advocates-community/a-year-of-community-engagement-and-growing-with-the-community-3cb95dce61ae">A year of community engagement and growing with the community</a> was originally published in <a href="https://medium.com/ai-advocates-community">AI Advocates Community</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>