AI SEO Strategist is a Python package designed to streamline the extraction and organization of AI-driven SEO strategies from user inputs. This tool helps founders and marketers quickly access practical SEO tactics tailored to their specific challenges or goals, enabling efficient planning and implementation.
- Structured Output: Generates a categorized list of actionable SEO strategies.
- Customizable LLM: Uses
ChatLLM7by default but can be configured with anyBaseChatModelfrom LangChain. - Consistent Formatting: Ensures clear and consistent output for easy integration into workflows and documents.
- Flexible API Key Management: Supports API key via environment variable or direct input.
pip install ai_seo_strategistfrom ai_seo_strategist import ai_seo_strategist
user_input = "Improve SEO for my e-commerce website"
strategies = ai_seo_strategist(user_input)
print(strategies)You can use any LLM compatible with LangChain's BaseChatModel. Here are examples using different LLMs:
from langchain_openai import ChatOpenAI
from ai_seo_strategist import ai_seo_strategist
llm = ChatOpenAI()
response = ai_seo_strategist(user_input, llm=llm)
print(response)from langchain_anthropic import ChatAnthropic
from ai_seo_strategist import ai_seo_strategist
llm = ChatAnthropic()
response = ai_seo_strategist(user_input, llm=llm)
print(response)from langchain_google_genai import ChatGoogleGenerativeAI
from ai_seo_strategist import ai_seo_strategist
llm = ChatGoogleGenerativeAI()
response = ai_seo_strategist(user_input, llm=llm)
print(response)You can pass an API key directly or use an environment variable.
export LLM7_API_KEY="your_api_key"from ai_seo_strategist import ai_seo_strategist
user_input = "Improve SEO for my e-commerce website"
strategies = ai_seo_strategist(user_input, api_key="your_api_key")
print(strategies)- user_input (str): The user input text to process.
- llm (Optional[BaseChatModel]): The LangChain LLM instance to use. Defaults to
ChatLLM7. - api_key (Optional[str]): The API key for LLM7. If not provided, it will use the environment variable
LLM7_API_KEY.
The default rate limits for LLM7's free tier are sufficient for most use cases. If you need higher rate limits, you can obtain a free API key by registering at LLM7.
For any issues or suggestions, please open an issue on GitHub.
- Eugene Evstafev
- Email: hi@eugene.plus
- GitHub: chigwell