Dagger
Search

MarketingAgent

This module provides functionality to generate marketing content using an AI agent
and store the results in a MongoDB database. It includes methods for calling the
marketing agent API, writing data to MongoDB, and handling authentication.

Input required:
- persona: str (marketing persona description)
- business_name: str (name of the business)
- connection: Secret (MongoDB connection string)
- database: str (name of the MongoDB database)

Expected output:
- str: 'Success' if the operation completes successfully, otherwise raises an exception

Installation

dagger install github.com/EmmS21/daggerverse/MarketingAgent@036d7fa4c2f1b7989b8d5ba40270c7c25ca7264b

Entrypoint

Return Type
MarketingAgent !
Example
dagger -m github.com/EmmS21/daggerverse/MarketingAgent@036d7fa4c2f1b7989b8d5ba40270c7c25ca7264b call \
func (m *myModule) example() *MarketingAgent  {
	return dag.
			MarketingAgent()
}
@function
def example() -> dag.MarketingAgent:
	return (
		dag.marketing_agent()
	)
@func()
example(): MarketingAgent {
	return dag
		.marketingAgent()
}

Types

MarketingAgent 🔗

run() 🔗

Calls marketing agent and writes the response to MongoDB

Return Type
String !
Arguments
NameTypeDefault ValueDescription
personaString !-No description provided
businessNameString !-No description provided
connectionSecret !-A reference to a secret value, which can be handled more safely than the value itself.
databaseString !-No description provided
Example
dagger -m github.com/EmmS21/daggerverse/MarketingAgent@036d7fa4c2f1b7989b8d5ba40270c7c25ca7264b call \
 run --persona string --business-name string --connection env:MYSECRET --database string
func (m *myModule) example(ctx context.Context, persona string, businessName string, connection *Secret, database string) string  {
	return dag.
			MarketingAgent().
			Run(ctx, persona, businessName, connection, database)
}
@function
async def example(persona: str, business_name: str, connection: dagger.Secret, database: str) -> str:
	return await (
		dag.marketing_agent()
		.run(persona, business_name, connection, database)
	)
@func()
async example(persona: string, businessName: string, connection: Secret, database: string): Promise<string> {
	return dag
		.marketingAgent()
		.run(persona, businessName, connection, database)
}