Dagger
Search

brainiall-workflows

Brainiall Company Enrichment Actor on Apify.

API keys are Dagger Secrets and are never accepted as plain strings. Each
request is explicit, bounded, and writes its result to a returned File.

Installation

dagger install github.com/fasuizu-br/brainiall-dagger-workflows@v1.1.0

Entrypoint

Return Type
BrainiallWorkflows
Example
dagger -m github.com/fasuizu-br/brainiall-dagger-workflows@99aae76e554c56481abd23f290dfd859eb598893 call \
func (m *MyModule) Example() *dagger.BrainiallWorkflows  {
	return dag.
			Brainiallworkflows()
}
@function
def example() -> dagger.BrainiallWorkflows:
	return (
		dag.brainiall_workflows()
	)
@func()
example(): BrainiallWorkflows {
	return dag
		.brainiallWorkflows()
}

Types

BrainiallWorkflows 🔗

health() 🔗

Check the public Brainiall TTS service without an API key.

Return Type
String !
Example
dagger -m github.com/fasuizu-br/brainiall-dagger-workflows@99aae76e554c56481abd23f290dfd859eb598893 call \
 health
func (m *MyModule) Example(ctx context.Context) string  {
	return dag.
			Brainiallworkflows().
			Health(ctx)
}
@function
async def example() -> str:
	return await (
		dag.brainiall_workflows()
		.health()
	)
@func()
async example(): Promise<string> {
	return dag
		.brainiallWorkflows()
		.health()
}

synthesize() 🔗

Convert 1-5,000 characters to a 24 kHz mono WAV file.

Create a key at https://app.brainiall.com and pass it with dagger call synthesize --api-key=env:BRAINIALL_API_KEY ....

Return Type
File !
Arguments
NameTypeDefault ValueDescription
apiKeySecret !-No description provided
textString !-No description provided
voiceString !"pf_dora"No description provided
speedInteger !1No description provided
Example
dagger -m github.com/fasuizu-br/brainiall-dagger-workflows@99aae76e554c56481abd23f290dfd859eb598893 call \
 synthesize --api-key env:MYSECRET --text string --voice string --speed integer
func (m *MyModule) Example(apiKey *dagger.Secret, text string, voice string, speed int) *dagger.File  {
	return dag.
			Brainiallworkflows().
			Synthesize(apiKey, text, voice, speed)
}
@function
def example(apikey: dagger.Secret, text: str, voice: str, speed: int) -> dagger.File:
	return (
		dag.brainiall_workflows()
		.synthesize(apikey, text, voice, speed)
	)
@func()
example(apiKey: Secret, text: string, voice: string, speed: number): File {
	return dag
		.brainiallWorkflows()
		.synthesize(apiKey, text, voice, speed)
}

pdfToMarkdown() 🔗

Convert an explicitly supplied PDF to Markdown or structured JSON.

Return Type
File !
Arguments
NameTypeDefault ValueDescription
apiKeySecret !-No description provided
pdfFile !-No description provided
pageRangeString !""No description provided
outputFormatString !"markdown"No description provided
Example
dagger -m github.com/fasuizu-br/brainiall-dagger-workflows@99aae76e554c56481abd23f290dfd859eb598893 call \
 pdf-to-markdown --api-key env:MYSECRET --pdf file:path --page-range string --output-format string
func (m *MyModule) Example(apiKey *dagger.Secret, pdf *dagger.File, pageRange string, outputFormat string) *dagger.File  {
	return dag.
			Brainiallworkflows().
			Pdftomarkdown(apiKey, pdf, pageRange, outputFormat)
}
@function
def example(apikey: dagger.Secret, pdf: dagger.File, pagerange: str, outputformat: str) -> dagger.File:
	return (
		dag.brainiall_workflows()
		.pdftomarkdown(apikey, pdf, pagerange, outputformat)
	)
@func()
example(apiKey: Secret, pdf: File, pageRange: string, outputFormat: string): File {
	return dag
		.brainiallWorkflows()
		.pdfToMarkdown(apiKey, pdf, pageRange, outputFormat)
}

enrichCompany() 🔗

Enrich one explicitly supplied company domain through the public Brainiall Actor on Apify. The caller’s scoped Apify token is a Dagger Secret and the run is capped at one dataset item and US$0.02 total charge.

Return Type
File !
Arguments
NameTypeDefault ValueDescription
apifyTokenSecret !-No description provided
domainString !-No description provided
includeTechnologiesBoolean !trueNo description provided
includeSocialsBoolean !trueNo description provided
Example
dagger -m github.com/fasuizu-br/brainiall-dagger-workflows@99aae76e554c56481abd23f290dfd859eb598893 call \
 enrich-company --apify-token env:MYSECRET --domain string --include-technologies boolean --include-socials boolean
func (m *MyModule) Example(apifyToken *dagger.Secret, domain string, includeTechnologies bool, includeSocials bool) *dagger.File  {
	return dag.
			Brainiallworkflows().
			Enrichcompany(apifyToken, domain, includeTechnologies, includeSocials)
}
@function
def example(apifytoken: dagger.Secret, domain: str, includetechnologies: bool, includesocials: bool) -> dagger.File:
	return (
		dag.brainiall_workflows()
		.enrichcompany(apifytoken, domain, includetechnologies, includesocials)
	)
@func()
example(apifyToken: Secret, domain: string, includeTechnologies: boolean, includeSocials: boolean): File {
	return dag
		.brainiallWorkflows()
		.enrichCompany(apifyToken, domain, includeTechnologies, includeSocials)
}