<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/how-to-implement-a-genai-agent-using-autogen-or-langgraph-swiov8dcn" -->

---
title: How to Implement a GenAI Agent using Autogen or LangGraph
description: GenAI agents can automate parts of business processes that involve tasks like text summarization, question answering, and code generation. This post...
canonical: https://daily.dev/posts/how-to-implement-a-genai-agent-using-autogen-or-langgraph-swiov8dcn
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: How to Implement a GenAI Agent using Autogen or LangGraph | daily.dev
og:description: GenAI agents can automate parts of business processes that involve tasks like text summarization, question answering, and code generation. This post...
og:url: https://daily.dev/posts/how-to-implement-a-genai-agent-using-autogen-or-langgraph-swiov8dcn
og:image: https://api.daily.dev/og/posts/SWiov8dCN.png
og:image:alt: How to Implement a GenAI Agent using Autogen or LangGraph
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# How to Implement a GenAI Agent using Autogen or LangGraph

**[Towards Data Science](https://daily.dev/sources/tds)** · 13 min read · 18 upvotes · 0 comments

## Summary

GenAI agents can automate parts of business processes that involve tasks like text summarization, question answering, and code generation. This post demonstrates implementing a GenAI agent using two frameworks: Autogen, which treats workflows as conversations between agents, and LangGraph, which represents workflows as graphs. Step-by-step guides include setting up an agent framework to query weather information using APIs, handling location extraction, geocoding, and obtaining the final answer from the NWS API. Both frameworks are showcased with configurations for various AI models.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://towardsdatascience.com/how-to-implement-a-genai-agent-using-autogen-or-langgraph-929135afd34d>

---

Tags: [#python](https://daily.dev/tags/python), [#genai](https://daily.dev/tags/genai), [#openai](https://daily.dev/tags/openai), [#langchain](https://daily.dev/tags/langchain)

[View this post on daily.dev](https://daily.dev/posts/how-to-implement-a-genai-agent-using-autogen-or-langgraph-swiov8dcn)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"How to Implement a GenAI Agent using Autogen or LangGraph","url":"https://daily.dev/posts/how-to-implement-a-genai-agent-using-autogen-or-langgraph-swiov8dcn","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/how-to-implement-a-genai-agent-using-autogen-or-langgraph-swiov8dcn"},"datePublished":"2024-08-01T19:22:38.430Z","dateModified":"2024-10-05T18:22:58.275Z","description":"GenAI agents can automate parts of business processes that involve tasks like text summarization, question answering, and code generation. This post...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/84ff9fae10fd211513656945658ee85c?_a=AQAEuiZ","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/84ff9fae10fd211513656945658ee85c?_a=AQAEuiZ","isAccessibleForFree":true,"articleSection":"Towards Data Science","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Towards Data Science","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/tds","url":"https://daily.dev/sources/tds"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/how-to-implement-a-genai-agent-using-autogen-or-langgraph-swiov8dcn","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":18},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"python,genai,openai,langchain","timeRequired":"PT13M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Towards Data Science","item":"https://daily.dev/sources/tds"},{"@type":"ListItem","position":3,"name":"How to Implement a GenAI Agent using Autogen or LangGraph"}]}
```

