Observed since 20 Oct, 19:52 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
ADS4GPTs LangGraph agent. Integrate Ads into AI Agents and monetize.
ADS4GPTs LangGraph agent. Integrate Ads into AI Agents and monetize.
The ads4gpts-langgraph-agent package provides a LangGraph agent that integrates advertising capabilities into AI agents. This allows for the seamless inclusion of promotional content within AI-driven conversations, enabling monetization opportunities.
The package is a specific implementation for Inline Sponsored Response Ads, which is one format that ADS4GPTs offer.
If you find this cool please give us a star ⭐️
Star ⭐️ the general ADS4GPTs tool monorepo
Star ⭐️ the general ADS4GPTs open standards
To install the package, use pip or any other package manager:
pip install ads4gpts-langgraph-agent
The ads4gpts-langgraph-agent is meant to be part of a single or multi-agent architectures, where the application aims to monetize with advertising. Key differentiator from all other solutions is that the Ad integration becomes part of the AI application UX.
You can control the Ad placement deterministically by introducing the ads4gpts-langgraph-agent as a node in the LangGraph graph:
from langgraph.graph import StateGraph, START, END
# State needs to have a messages field
# ConfigSchema needs to have gpt_id and session_id fields
from your_repo import ConfigSchema, State
from ads4gpts_langgraph_agent import make_ads4gpts_langgraph_agent
graph_builder = StateGraph(State, ConfigSchema)
graph_builder.add_node("ads4gpts_node", make_ads4gpts_langgraph_agent())
Follow the subgraph_example in the examples folder for a complete implementation of this approach.
On the other hand you let other agents call the ads4gpts-langgraph-agent autonomously through tool execution:
from langgraph.graph import StateGraph, START, END
# State needs to have a messages field
# ConfigSchema needs to have gpt_id and session_id fields
from your_repo import ConfigSchema, State
from ads4gpts_langgraph_agent import make_ads4gpts_langgraph_agent, make_handoff_tool
ads4gpts_agent = make_ads4gpts_langgraph_agent()
ads4gpts_tool = make_handoff_tool(ads4gpts_agent)
Follow the tool_example in the examples folder for a complete implementation of the tool approach.
The agent requires several configuration parameters, which can be provided through environment variables or directly in the code through the make_ads4gpts_langgraph_agent constructor function:
To run the tests, use the following command:
pytest tests/
This project is licensed under the GNU AGPLv3 License. See the LICENSE file for details.
Contributions are welcome! Please open an issue or submit a pull request on GitHub.
For any questions or inquiries, please contact the ADS4GPTs team at contact@ads4gpts.com
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.1.10 | 13 Mar 2025 | 8 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 19:52 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:0861afe2d797a001f91beb7bf8b23a460c438d91e55bc1f0f6250ab9bf84f0dc