Seus especialistas conhecem o negócio.Seus especialistas conhecem o negócio.Deixe as regras com eles.Deixe as regras com eles.
No Lispektor, as pessoas de operações e do negócio escrevem as regras que seus sistemas executam, com IA para ajudar no rascunho. Seus sistemas se conectam ao Lispektor, então mudar uma regra não precisa esperar por uma nova versão do sistema.
Duas equipes. Um só conjunto de regras.
Os especialistas escrevem as regras no Lispektor, com a ajuda de IA. Os engenheiros conectam o Lispektor aos seus sistemas e escolhem os blocos que eles podem usar.
Para o negócio
Operações, finanças, risco, atendimento.
- Rascunhe regras com IA
- Leia e altere as regras como fluxos
- Acompanhe cada execução em tempo real
- Veja quem mudou o quê
Para a engenharia
Defina os limites uma vez.
- Conecte o Lispektor aos seus sistemas
- Aprove os blocos que os especialistas podem usar
- Reverta quando quiser
A IA está mudando quem entende as regras.
A IA escreve cada vez mais do seu código.
A cada semana, uma parte maior do seu software é gerada.
As regras ficam cada vez mais enterradas.
A lógica que move o negócio acaba em lugares que ninguém da equipe lê.
Os especialistas perdem de vista o que está em vigor.
Operações e finanças deixam de conhecer as regras pelas quais respondem.
O Lispektor dá às regras um lugar fora do código.
As regras que você leva para o Lispektor viram fluxos que seus especialistas escrevem com IA e alteram por conta própria.
if (order.total > cfg.limits.refund[region] && !user.flags.vip) {
return escalate(order, Role.MANAGER, { reason: 'threshold' })
}
const rule = await ruleset.resolve(org, 'refund.v12')
// TODO: who owns this? limit changed in #4821
export const REFUND_LIMIT = process.env.REFUND_LIMIT ?? 500
if (risk.score(order) > 0.82) queue.push(order, 'fraud')
switch (ticket.channel) { case 'chat': return route(L1) }
const approved = blocks.filter(b => b.org === org.id)
await audit.log({ rule: 'refund', by: ctx.user, v: 13 })
// generated: escalation policy v7 (do not edit by hand)
if (customer.tier === 'vip' && wait > 30 * MIN) route(L2)
const limit = overrides[org]?.refund ?? REFUND_LIMIT
export function shouldEscalate(t: Ticket) { /* … */ }
if (order.total > cfg.limits.refund[region] && !user.flags.vip) {
return escalate(order, Role.MANAGER, { reason: 'threshold' })
}
const rule = await ruleset.resolve(org, 'refund.v12')
// TODO: who owns this? limit changed in #4821
export const REFUND_LIMIT = process.env.REFUND_LIMIT ?? 500
if (risk.score(order) > 0.82) queue.push(order, 'fraud')
switch (ticket.channel) { case 'chat': return route(L1) }
const approved = blocks.filter(b => b.org === org.id)
await audit.log({ rule: 'refund', by: ctx.user, v: 13 })
// generated: escalation policy v7 (do not edit by hand)
if (customer.tier === 'vip' && wait > 30 * MIN) route(L2)
const limit = overrides[org]?.refund ?? REFUND_LIMIT
export function shouldEscalate(t: Ticket) { /* … */ }
if (order.total > cfg.limits.refund[region] && !user.flags.vip) {
return escalate(order, Role.MANAGER, { reason: 'threshold' })
}
const rule = await ruleset.resolve(org, 'refund.v12')
// TODO: who owns this? limit changed in #4821
export const REFUND_LIMIT = process.env.REFUND_LIMIT ?? 500
if (risk.score(order) > 0.82) queue.push(order, 'fraud')
switch (ticket.channel) { case 'chat': return route(L1) }
const approved = blocks.filter(b => b.org === org.id)
await audit.log({ rule: 'refund', by: ctx.user, v: 13 })
// generated: escalation policy v7 (do not edit by hand)
if (customer.tier === 'vip' && wait > 30 * MIN) route(L2)
const limit = overrides[org]?.refund ?? REFUND_LIMIT
export function shouldEscalate(t: Ticket) { /* … */ }
if (order.total > cfg.limits.refund[region] && !user.flags.vip) {
return escalate(order, Role.MANAGER, { reason: 'threshold' })
}
const rule = await ruleset.resolve(org, 'refund.v12')
// TODO: who owns this? limit changed in #4821
export const REFUND_LIMIT = process.env.REFUND_LIMIT ?? 500
if (risk.score(order) > 0.82) queue.push(order, 'fraud')
switch (ticket.channel) { case 'chat': return route(L1) }
const approved = blocks.filter(b => b.org === org.id)
await audit.log({ rule: 'refund', by: ctx.user, v: 13 })
// generated: escalation policy v7 (do not edit by hand)
if (customer.tier === 'vip' && wait > 30 * MIN) route(L2)
const limit = overrides[org]?.refund ?? REFUND_LIMIT
export function shouldEscalate(t: Ticket) { /* … */ }
if (order.total > cfg.limits.refund[region] && !user.flags.vip) {
return escalate(order, Role.MANAGER, { reason: 'threshold' })
}
const rule = await ruleset.resolve(org, 'refund.v12')
// TODO: who owns this? limit changed in #4821
export const REFUND_LIMIT = process.env.REFUND_LIMIT ?? 500
if (risk.score(order) > 0.82) queue.push(order, 'fraud')
switch (ticket.channel) { case 'chat': return route(L1) }
const approved = blocks.filter(b => b.org === org.id)
await audit.log({ rule: 'refund', by: ctx.user, v: 13 })
// generated: escalation policy v7 (do not edit by hand)
if (customer.tier === 'vip' && wait > 30 * MIN) route(L2)
const limit = overrides[org]?.refund ?? REFUND_LIMIT
export function shouldEscalate(t: Ticket) { /* … */ }
if (order.total > cfg.limits.refund[region] && !user.flags.vip) {
return escalate(order, Role.MANAGER, { reason: 'threshold' })
}
const rule = await ruleset.resolve(org, 'refund.v12')
// TODO: who owns this? limit changed in #4821
export const REFUND_LIMIT = process.env.REFUND_LIMIT ?? 500
if (risk.score(order) > 0.82) queue.push(order, 'fraud')
switch (ticket.channel) { case 'chat': return route(L1) }
const approved = blocks.filter(b => b.org === org.id)
await audit.log({ rule: 'refund', by: ctx.user, v: 13 })
// generated: escalation policy v7 (do not edit by hand)
if (customer.tier === 'vip' && wait > 30 * MIN) route(L2)
const limit = overrides[org]?.refund ?? REFUND_LIMIT
export function shouldEscalate(t: Ticket) { /* … */ }
if (order.total > cfg.limits.refund[region] && !user.flags.vip) {
return escalate(order, Role.MANAGER, { reason: 'threshold' })
}
const rule = await ruleset.resolve(org, 'refund.v12')
// TODO: who owns this? limit changed in #4821
export const REFUND_LIMIT = process.env.REFUND_LIMIT ?? 500
if (risk.score(order) > 0.82) queue.push(order, 'fraud')
switch (ticket.channel) { case 'chat': return route(L1) }
const approved = blocks.filter(b => b.org === org.id)
await audit.log({ rule: 'refund', by: ctx.user, v: 13 })
// generated: escalation policy v7 (do not edit by hand)
if (customer.tier === 'vip' && wait > 30 * MIN) route(L2)
const limit = overrides[org]?.refund ?? REFUND_LIMIT
export function shouldEscalate(t: Ticket) { /* … */ }
if (order.total > cfg.limits.refund[region] && !user.flags.vip) {
return escalate(order, Role.MANAGER, { reason: 'threshold' })
}
const rule = await ruleset.resolve(org, 'refund.v12')
// TODO: who owns this? limit changed in #4821
export const REFUND_LIMIT = process.env.REFUND_LIMIT ?? 500
if (risk.score(order) > 0.82) queue.push(order, 'fraud')
switch (ticket.channel) { case 'chat': return route(L1) }
const approved = blocks.filter(b => b.org === org.id)
await audit.log({ rule: 'refund', by: ctx.user, v: 13 })
// generated: escalation policy v7 (do not edit by hand)
if (customer.tier === 'vip' && wait > 30 * MIN) route(L2)
const limit = overrides[org]?.refund ?? REFUND_LIMIT
export function shouldEscalate(t: Ticket) { /* … */ }
if (order.total > cfg.limits.refund[region] && !user.flags.vip) {
return escalate(order, Role.MANAGER, { reason: 'threshold' })
}
const rule = await ruleset.resolve(org, 'refund.v12')
// TODO: who owns this? limit changed in #4821
export const REFUND_LIMIT = process.env.REFUND_LIMIT ?? 500
if (risk.score(order) > 0.82) queue.push(order, 'fraud')
switch (ticket.channel) { case 'chat': return route(L1) }
const approved = blocks.filter(b => b.org === org.id)
await audit.log({ rule: 'refund', by: ctx.user, v: 13 })
// generated: escalation policy v7 (do not edit by hand)
if (customer.tier === 'vip' && wait > 30 * MIN) route(L2)
const limit = overrides[org]?.refund ?? REFUND_LIMIT
export function shouldEscalate(t: Ticket) { /* … */ }
if (order.total > cfg.limits.refund[region] && !user.flags.vip) {
return escalate(order, Role.MANAGER, { reason: 'threshold' })
}
const rule = await ruleset.resolve(org, 'refund.v12')
// TODO: who owns this? limit changed in #4821
export const REFUND_LIMIT = process.env.REFUND_LIMIT ?? 500
if (risk.score(order) > 0.82) queue.push(order, 'fraud')
switch (ticket.channel) { case 'chat': return route(L1) }
const approved = blocks.filter(b => b.org === org.id)
await audit.log({ rule: 'refund', by: ctx.user, v: 13 })
// generated: escalation policy v7 (do not edit by hand)
if (customer.tier === 'vip' && wait > 30 * MIN) route(L2)
const limit = overrides[org]?.refund ?? REFUND_LIMIT
export function shouldEscalate(t: Ticket) { /* … */ }
if (order.total > cfg.limits.refund[region] && !user.flags.vip) {
return escalate(order, Role.MANAGER, { reason: 'threshold' })
}
const rule = await ruleset.resolve(org, 'refund.v12')
// TODO: who owns this? limit changed in #4821
export const REFUND_LIMIT = process.env.REFUND_LIMIT ?? 500
if (risk.score(order) > 0.82) queue.push(order, 'fraud')
switch (ticket.channel) { case 'chat': return route(L1) }
const approved = blocks.filter(b => b.org === org.id)
await audit.log({ rule: 'refund', by: ctx.user, v: 13 })
// generated: escalation policy v7 (do not edit by hand)
if (customer.tier === 'vip' && wait > 30 * MIN) route(L2)
const limit = overrides[org]?.refund ?? REFUND_LIMIT
export function shouldEscalate(t: Ticket) { /* … */ }
if (order.total > cfg.limits.refund[region] && !user.flags.vip) {
return escalate(order, Role.MANAGER, { reason: 'threshold' })
}
const rule = await ruleset.resolve(org, 'refund.v12')
// TODO: who owns this? limit changed in #4821
export const REFUND_LIMIT = process.env.REFUND_LIMIT ?? 500
if (risk.score(order) > 0.82) queue.push(order, 'fraud')
switch (ticket.channel) { case 'chat': return route(L1) }
const approved = blocks.filter(b => b.org === org.id)
await audit.log({ rule: 'refund', by: ctx.user, v: 13 })
// generated: escalation policy v7 (do not edit by hand)
if (customer.tier === 'vip' && wait > 30 * MIN) route(L2)
const limit = overrides[org]?.refund ?? REFUND_LIMIT
export function shouldEscalate(t: Ticket) { /* … */ }switch (ticket.channel) { case 'chat': return route(L1) }
const approved = blocks.filter(b => b.org === org.id)
await audit.log({ rule: 'refund', by: ctx.user, v: 13 })
// generated: escalation policy v7 (do not edit by hand)
if (customer.tier === 'vip' && wait > 30 * MIN) route(L2)
const limit = overrides[org]?.refund ?? REFUND_LIMIT
export function shouldEscalate(t: Ticket) { /* … */ }
if (order.total > cfg.limits.refund[region] && !user.flags.vip) {
return escalate(order, Role.MANAGER, { reason: 'threshold' })
}
const rule = await ruleset.resolve(org, 'refund.v12')
// TODO: who owns this? limit changed in #4821
export const REFUND_LIMIT = process.env.REFUND_LIMIT ?? 500
if (risk.score(order) > 0.82) queue.push(order, 'fraud')
switch (ticket.channel) { case 'chat': return route(L1) }
const approved = blocks.filter(b => b.org === org.id)
await audit.log({ rule: 'refund', by: ctx.user, v: 13 })
// generated: escalation policy v7 (do not edit by hand)
if (customer.tier === 'vip' && wait > 30 * MIN) route(L2)
const limit = overrides[org]?.refund ?? REFUND_LIMIT
export function shouldEscalate(t: Ticket) { /* … */ }
if (order.total > cfg.limits.refund[region] && !user.flags.vip) {
return escalate(order, Role.MANAGER, { reason: 'threshold' })
}
const rule = await ruleset.resolve(org, 'refund.v12')
// TODO: who owns this? limit changed in #4821
export const REFUND_LIMIT = process.env.REFUND_LIMIT ?? 500
if (risk.score(order) > 0.82) queue.push(order, 'fraud')
switch (ticket.channel) { case 'chat': return route(L1) }
const approved = blocks.filter(b => b.org === org.id)
await audit.log({ rule: 'refund', by: ctx.user, v: 13 })
// generated: escalation policy v7 (do not edit by hand)
if (customer.tier === 'vip' && wait > 30 * MIN) route(L2)
const limit = overrides[org]?.refund ?? REFUND_LIMIT
export function shouldEscalate(t: Ticket) { /* … */ }
if (order.total > cfg.limits.refund[region] && !user.flags.vip) {
return escalate(order, Role.MANAGER, { reason: 'threshold' })
}
const rule = await ruleset.resolve(org, 'refund.v12')
// TODO: who owns this? limit changed in #4821
export const REFUND_LIMIT = process.env.REFUND_LIMIT ?? 500
if (risk.score(order) > 0.82) queue.push(order, 'fraud')
switch (ticket.channel) { case 'chat': return route(L1) }
const approved = blocks.filter(b => b.org === org.id)
await audit.log({ rule: 'refund', by: ctx.user, v: 13 })
// generated: escalation policy v7 (do not edit by hand)
if (customer.tier === 'vip' && wait > 30 * MIN) route(L2)
const limit = overrides[org]?.refund ?? REFUND_LIMIT
export function shouldEscalate(t: Ticket) { /* … */ }
if (order.total > cfg.limits.refund[region] && !user.flags.vip) {
return escalate(order, Role.MANAGER, { reason: 'threshold' })
}
const rule = await ruleset.resolve(org, 'refund.v12')
// TODO: who owns this? limit changed in #4821
export const REFUND_LIMIT = process.env.REFUND_LIMIT ?? 500
if (risk.score(order) > 0.82) queue.push(order, 'fraud')
switch (ticket.channel) { case 'chat': return route(L1) }
const approved = blocks.filter(b => b.org === org.id)
await audit.log({ rule: 'refund', by: ctx.user, v: 13 })
// generated: escalation policy v7 (do not edit by hand)
if (customer.tier === 'vip' && wait > 30 * MIN) route(L2)
const limit = overrides[org]?.refund ?? REFUND_LIMIT
export function shouldEscalate(t: Ticket) { /* … */ }
if (order.total > cfg.limits.refund[region] && !user.flags.vip) {
return escalate(order, Role.MANAGER, { reason: 'threshold' })
}
const rule = await ruleset.resolve(org, 'refund.v12')
// TODO: who owns this? limit changed in #4821
export const REFUND_LIMIT = process.env.REFUND_LIMIT ?? 500
if (risk.score(order) > 0.82) queue.push(order, 'fraud')
switch (ticket.channel) { case 'chat': return route(L1) }
const approved = blocks.filter(b => b.org === org.id)
await audit.log({ rule: 'refund', by: ctx.user, v: 13 })
// generated: escalation policy v7 (do not edit by hand)
if (customer.tier === 'vip' && wait > 30 * MIN) route(L2)
const limit = overrides[org]?.refund ?? REFUND_LIMIT
export function shouldEscalate(t: Ticket) { /* … */ }
if (order.total > cfg.limits.refund[region] && !user.flags.vip) {
return escalate(order, Role.MANAGER, { reason: 'threshold' })
}
const rule = await ruleset.resolve(org, 'refund.v12')
// TODO: who owns this? limit changed in #4821
export const REFUND_LIMIT = process.env.REFUND_LIMIT ?? 500
if (risk.score(order) > 0.82) queue.push(order, 'fraud')
switch (ticket.channel) { case 'chat': return route(L1) }
const approved = blocks.filter(b => b.org === org.id)
await audit.log({ rule: 'refund', by: ctx.user, v: 13 })
// generated: escalation policy v7 (do not edit by hand)
if (customer.tier === 'vip' && wait > 30 * MIN) route(L2)
const limit = overrides[org]?.refund ?? REFUND_LIMIT
export function shouldEscalate(t: Ticket) { /* … */ }
if (order.total > cfg.limits.refund[region] && !user.flags.vip) {
return escalate(order, Role.MANAGER, { reason: 'threshold' })
}
const rule = await ruleset.resolve(org, 'refund.v12')
// TODO: who owns this? limit changed in #4821
export const REFUND_LIMIT = process.env.REFUND_LIMIT ?? 500
if (risk.score(order) > 0.82) queue.push(order, 'fraud')
switch (ticket.channel) { case 'chat': return route(L1) }
const approved = blocks.filter(b => b.org === org.id)
await audit.log({ rule: 'refund', by: ctx.user, v: 13 })
// generated: escalation policy v7 (do not edit by hand)
if (customer.tier === 'vip' && wait > 30 * MIN) route(L2)
const limit = overrides[org]?.refund ?? REFUND_LIMIT
export function shouldEscalate(t: Ticket) { /* … */ }
if (order.total > cfg.limits.refund[region] && !user.flags.vip) {
return escalate(order, Role.MANAGER, { reason: 'threshold' })
}
const rule = await ruleset.resolve(org, 'refund.v12')
// TODO: who owns this? limit changed in #4821
export const REFUND_LIMIT = process.env.REFUND_LIMIT ?? 500
if (risk.score(order) > 0.82) queue.push(order, 'fraud')
switch (ticket.channel) { case 'chat': return route(L1) }
const approved = blocks.filter(b => b.org === org.id)
await audit.log({ rule: 'refund', by: ctx.user, v: 13 })
// generated: escalation policy v7 (do not edit by hand)
if (customer.tier === 'vip' && wait > 30 * MIN) route(L2)
const limit = overrides[org]?.refund ?? REFUND_LIMIT
export function shouldEscalate(t: Ticket) { /* … */ }
if (order.total > cfg.limits.refund[region] && !user.flags.vip) {
return escalate(order, Role.MANAGER, { reason: 'threshold' })
}
const rule = await ruleset.resolve(org, 'refund.v12')
// TODO: who owns this? limit changed in #4821
export const REFUND_LIMIT = process.env.REFUND_LIMIT ?? 500
if (risk.score(order) > 0.82) queue.push(order, 'fraud')
switch (ticket.channel) { case 'chat': return route(L1) }
const approved = blocks.filter(b => b.org === org.id)
await audit.log({ rule: 'refund', by: ctx.user, v: 13 })
// generated: escalation policy v7 (do not edit by hand)
if (customer.tier === 'vip' && wait > 30 * MIN) route(L2)
const limit = overrides[org]?.refund ?? REFUND_LIMIT
export function shouldEscalate(t: Ticket) { /* … */ }
if (order.total > cfg.limits.refund[region] && !user.flags.vip) {
return escalate(order, Role.MANAGER, { reason: 'threshold' })
}
const rule = await ruleset.resolve(org, 'refund.v12')
// TODO: who owns this? limit changed in #4821
export const REFUND_LIMIT = process.env.REFUND_LIMIT ?? 500
if (risk.score(order) > 0.82) queue.push(order, 'fraud')
switch (ticket.channel) { case 'chat': return route(L1) }
const approved = blocks.filter(b => b.org === org.id)
await audit.log({ rule: 'refund', by: ctx.user, v: 13 })
// generated: escalation policy v7 (do not edit by hand)
if (customer.tier === 'vip' && wait > 30 * MIN) route(L2)
const limit = overrides[org]?.refund ?? REFUND_LIMIT
export function shouldEscalate(t: Ticket) { /* … */ }
if (order.total > cfg.limits.refund[region] && !user.flags.vip) {
return escalate(order, Role.MANAGER, { reason: 'threshold' })
}
const rule = await ruleset.resolve(org, 'refund.v12')
// TODO: who owns this? limit changed in #4821
export const REFUND_LIMIT = process.env.REFUND_LIMIT ?? 500
if (risk.score(order) > 0.82) queue.push(order, 'fraud')
switch (ticket.channel) { case 'chat': return route(L1) }
const approved = blocks.filter(b => b.org === org.id)
await audit.log({ rule: 'refund', by: ctx.user, v: 13 })
// generated: escalation policy v7 (do not edit by hand)
if (customer.tier === 'vip' && wait > 30 * MIN) route(L2)
const limit = overrides[org]?.refund ?? REFUND_LIMIT
export function shouldEscalate(t: Ticket) { /* … */ }
if (order.total > cfg.limits.refund[region] && !user.flags.vip) {
return escalate(order, Role.MANAGER, { reason: 'threshold' })
}
const rule = await ruleset.resolve(org, 'refund.v12')
// TODO: who owns this? limit changed in #4821
export const REFUND_LIMIT = process.env.REFUND_LIMIT ?? 500
if (risk.score(order) > 0.82) queue.push(order, 'fraud')if (order.total > cfg.limits.refund[region] && !user.flags.vip) {
return escalate(order, Role.MANAGER, { reason: 'threshold' })
}
const rule = await ruleset.resolve(org, 'refund.v12')
// TODO: who owns this? limit changed in #4821
export const REFUND_LIMIT = process.env.REFUND_LIMIT ?? 500
if (risk.score(order) > 0.82) queue.push(order, 'fraud')
switch (ticket.channel) { case 'chat': return route(L1) }
const approved = blocks.filter(b => b.org === org.id)
await audit.log({ rule: 'refund', by: ctx.user, v: 13 })
// generated: escalation policy v7 (do not edit by hand)
if (customer.tier === 'vip' && wait > 30 * MIN) route(L2)
const limit = overrides[org]?.refund ?? REFUND_LIMIT
export function shouldEscalate(t: Ticket) { /* … */ }
if (order.total > cfg.limits.refund[region] && !user.flags.vip) {
return escalate(order, Role.MANAGER, { reason: 'threshold' })
}
const rule = await ruleset.resolve(org, 'refund.v12')
// TODO: who owns this? limit changed in #4821
export const REFUND_LIMIT = process.env.REFUND_LIMIT ?? 500
if (risk.score(order) > 0.82) queue.push(order, 'fraud')
switch (ticket.channel) { case 'chat': return route(L1) }
const approved = blocks.filter(b => b.org === org.id)
await audit.log({ rule: 'refund', by: ctx.user, v: 13 })
// generated: escalation policy v7 (do not edit by hand)
if (customer.tier === 'vip' && wait > 30 * MIN) route(L2)
const limit = overrides[org]?.refund ?? REFUND_LIMIT
export function shouldEscalate(t: Ticket) { /* … */ }
if (order.total > cfg.limits.refund[region] && !user.flags.vip) {
return escalate(order, Role.MANAGER, { reason: 'threshold' })
}
const rule = await ruleset.resolve(org, 'refund.v12')
// TODO: who owns this? limit changed in #4821
export const REFUND_LIMIT = process.env.REFUND_LIMIT ?? 500
if (risk.score(order) > 0.82) queue.push(order, 'fraud')
switch (ticket.channel) { case 'chat': return route(L1) }
const approved = blocks.filter(b => b.org === org.id)
await audit.log({ rule: 'refund', by: ctx.user, v: 13 })
// generated: escalation policy v7 (do not edit by hand)
if (customer.tier === 'vip' && wait > 30 * MIN) route(L2)
const limit = overrides[org]?.refund ?? REFUND_LIMIT
export function shouldEscalate(t: Ticket) { /* … */ }
if (order.total > cfg.limits.refund[region] && !user.flags.vip) {
return escalate(order, Role.MANAGER, { reason: 'threshold' })
}
const rule = await ruleset.resolve(org, 'refund.v12')
// TODO: who owns this? limit changed in #4821
export const REFUND_LIMIT = process.env.REFUND_LIMIT ?? 500
if (risk.score(order) > 0.82) queue.push(order, 'fraud')
switch (ticket.channel) { case 'chat': return route(L1) }
const approved = blocks.filter(b => b.org === org.id)
await audit.log({ rule: 'refund', by: ctx.user, v: 13 })
// generated: escalation policy v7 (do not edit by hand)
if (customer.tier === 'vip' && wait > 30 * MIN) route(L2)
const limit = overrides[org]?.refund ?? REFUND_LIMIT
export function shouldEscalate(t: Ticket) { /* … */ }
if (order.total > cfg.limits.refund[region] && !user.flags.vip) {
return escalate(order, Role.MANAGER, { reason: 'threshold' })
}
const rule = await ruleset.resolve(org, 'refund.v12')
// TODO: who owns this? limit changed in #4821
export const REFUND_LIMIT = process.env.REFUND_LIMIT ?? 500
if (risk.score(order) > 0.82) queue.push(order, 'fraud')
switch (ticket.channel) { case 'chat': return route(L1) }
const approved = blocks.filter(b => b.org === org.id)
await audit.log({ rule: 'refund', by: ctx.user, v: 13 })
// generated: escalation policy v7 (do not edit by hand)
if (customer.tier === 'vip' && wait > 30 * MIN) route(L2)
const limit = overrides[org]?.refund ?? REFUND_LIMIT
export function shouldEscalate(t: Ticket) { /* … */ }
if (order.total > cfg.limits.refund[region] && !user.flags.vip) {
return escalate(order, Role.MANAGER, { reason: 'threshold' })
}
const rule = await ruleset.resolve(org, 'refund.v12')
// TODO: who owns this? limit changed in #4821
export const REFUND_LIMIT = process.env.REFUND_LIMIT ?? 500
if (risk.score(order) > 0.82) queue.push(order, 'fraud')
switch (ticket.channel) { case 'chat': return route(L1) }
const approved = blocks.filter(b => b.org === org.id)
await audit.log({ rule: 'refund', by: ctx.user, v: 13 })
// generated: escalation policy v7 (do not edit by hand)
if (customer.tier === 'vip' && wait > 30 * MIN) route(L2)
const limit = overrides[org]?.refund ?? REFUND_LIMIT
export function shouldEscalate(t: Ticket) { /* … */ }
if (order.total > cfg.limits.refund[region] && !user.flags.vip) {
return escalate(order, Role.MANAGER, { reason: 'threshold' })
}
const rule = await ruleset.resolve(org, 'refund.v12')
// TODO: who owns this? limit changed in #4821
export const REFUND_LIMIT = process.env.REFUND_LIMIT ?? 500
if (risk.score(order) > 0.82) queue.push(order, 'fraud')
switch (ticket.channel) { case 'chat': return route(L1) }
const approved = blocks.filter(b => b.org === org.id)
await audit.log({ rule: 'refund', by: ctx.user, v: 13 })
// generated: escalation policy v7 (do not edit by hand)
if (customer.tier === 'vip' && wait > 30 * MIN) route(L2)
const limit = overrides[org]?.refund ?? REFUND_LIMIT
export function shouldEscalate(t: Ticket) { /* … */ }
if (order.total > cfg.limits.refund[region] && !user.flags.vip) {
return escalate(order, Role.MANAGER, { reason: 'threshold' })
}
const rule = await ruleset.resolve(org, 'refund.v12')
// TODO: who owns this? limit changed in #4821
export const REFUND_LIMIT = process.env.REFUND_LIMIT ?? 500
if (risk.score(order) > 0.82) queue.push(order, 'fraud')
switch (ticket.channel) { case 'chat': return route(L1) }
const approved = blocks.filter(b => b.org === org.id)
await audit.log({ rule: 'refund', by: ctx.user, v: 13 })
// generated: escalation policy v7 (do not edit by hand)
if (customer.tier === 'vip' && wait > 30 * MIN) route(L2)
const limit = overrides[org]?.refund ?? REFUND_LIMIT
export function shouldEscalate(t: Ticket) { /* … */ }
if (order.total > cfg.limits.refund[region] && !user.flags.vip) {
return escalate(order, Role.MANAGER, { reason: 'threshold' })
}
const rule = await ruleset.resolve(org, 'refund.v12')
// TODO: who owns this? limit changed in #4821
export const REFUND_LIMIT = process.env.REFUND_LIMIT ?? 500
if (risk.score(order) > 0.82) queue.push(order, 'fraud')
switch (ticket.channel) { case 'chat': return route(L1) }
const approved = blocks.filter(b => b.org === org.id)
await audit.log({ rule: 'refund', by: ctx.user, v: 13 })
// generated: escalation policy v7 (do not edit by hand)
if (customer.tier === 'vip' && wait > 30 * MIN) route(L2)
const limit = overrides[org]?.refund ?? REFUND_LIMIT
export function shouldEscalate(t: Ticket) { /* … */ }
if (order.total > cfg.limits.refund[region] && !user.flags.vip) {
return escalate(order, Role.MANAGER, { reason: 'threshold' })
}
const rule = await ruleset.resolve(org, 'refund.v12')
// TODO: who owns this? limit changed in #4821
export const REFUND_LIMIT = process.env.REFUND_LIMIT ?? 500
if (risk.score(order) > 0.82) queue.push(order, 'fraud')
switch (ticket.channel) { case 'chat': return route(L1) }
const approved = blocks.filter(b => b.org === org.id)
await audit.log({ rule: 'refund', by: ctx.user, v: 13 })
// generated: escalation policy v7 (do not edit by hand)
if (customer.tier === 'vip' && wait > 30 * MIN) route(L2)
const limit = overrides[org]?.refund ?? REFUND_LIMIT
export function shouldEscalate(t: Ticket) { /* … */ }
if (order.total > cfg.limits.refund[region] && !user.flags.vip) {
return escalate(order, Role.MANAGER, { reason: 'threshold' })
}
const rule = await ruleset.resolve(org, 'refund.v12')
// TODO: who owns this? limit changed in #4821
export const REFUND_LIMIT = process.env.REFUND_LIMIT ?? 500
if (risk.score(order) > 0.82) queue.push(order, 'fraud')
switch (ticket.channel) { case 'chat': return route(L1) }
const approved = blocks.filter(b => b.org === org.id)
await audit.log({ rule: 'refund', by: ctx.user, v: 13 })
// generated: escalation policy v7 (do not edit by hand)
if (customer.tier === 'vip' && wait > 30 * MIN) route(L2)
const limit = overrides[org]?.refund ?? REFUND_LIMIT
export function shouldEscalate(t: Ticket) { /* … */ }
if (order.total > cfg.limits.refund[region] && !user.flags.vip) {
return escalate(order, Role.MANAGER, { reason: 'threshold' })
}
const rule = await ruleset.resolve(org, 'refund.v12')
// TODO: who owns this? limit changed in #4821
export const REFUND_LIMIT = process.env.REFUND_LIMIT ?? 500
if (risk.score(order) > 0.82) queue.push(order, 'fraud')
switch (ticket.channel) { case 'chat': return route(L1) }
const approved = blocks.filter(b => b.org === org.id)
await audit.log({ rule: 'refund', by: ctx.user, v: 13 })
// generated: escalation policy v7 (do not edit by hand)
if (customer.tier === 'vip' && wait > 30 * MIN) route(L2)
const limit = overrides[org]?.refund ?? REFUND_LIMIT
export function shouldEscalate(t: Ticket) { /* … */ }switch (ticket.channel) { case 'chat': return route(L1) }
const approved = blocks.filter(b => b.org === org.id)
await audit.log({ rule: 'refund', by: ctx.user, v: 13 })
// generated: escalation policy v7 (do not edit by hand)
if (customer.tier === 'vip' && wait > 30 * MIN) route(L2)
const limit = overrides[org]?.refund ?? REFUND_LIMIT
export function shouldEscalate(t: Ticket) { /* … */ }
if (order.total > cfg.limits.refund[region] && !user.flags.vip) {
return escalate(order, Role.MANAGER, { reason: 'threshold' })
}
const rule = await ruleset.resolve(org, 'refund.v12')
// TODO: who owns this? limit changed in #4821
export const REFUND_LIMIT = process.env.REFUND_LIMIT ?? 500
if (risk.score(order) > 0.82) queue.push(order, 'fraud')
switch (ticket.channel) { case 'chat': return route(L1) }
const approved = blocks.filter(b => b.org === org.id)
await audit.log({ rule: 'refund', by: ctx.user, v: 13 })
// generated: escalation policy v7 (do not edit by hand)
if (customer.tier === 'vip' && wait > 30 * MIN) route(L2)
const limit = overrides[org]?.refund ?? REFUND_LIMIT
export function shouldEscalate(t: Ticket) { /* … */ }
if (order.total > cfg.limits.refund[region] && !user.flags.vip) {
return escalate(order, Role.MANAGER, { reason: 'threshold' })
}
const rule = await ruleset.resolve(org, 'refund.v12')
// TODO: who owns this? limit changed in #4821
export const REFUND_LIMIT = process.env.REFUND_LIMIT ?? 500
if (risk.score(order) > 0.82) queue.push(order, 'fraud')
switch (ticket.channel) { case 'chat': return route(L1) }
const approved = blocks.filter(b => b.org === org.id)
await audit.log({ rule: 'refund', by: ctx.user, v: 13 })
// generated: escalation policy v7 (do not edit by hand)
if (customer.tier === 'vip' && wait > 30 * MIN) route(L2)
const limit = overrides[org]?.refund ?? REFUND_LIMIT
export function shouldEscalate(t: Ticket) { /* … */ }
if (order.total > cfg.limits.refund[region] && !user.flags.vip) {
return escalate(order, Role.MANAGER, { reason: 'threshold' })
}
const rule = await ruleset.resolve(org, 'refund.v12')
// TODO: who owns this? limit changed in #4821
export const REFUND_LIMIT = process.env.REFUND_LIMIT ?? 500
if (risk.score(order) > 0.82) queue.push(order, 'fraud')
switch (ticket.channel) { case 'chat': return route(L1) }
const approved = blocks.filter(b => b.org === org.id)
await audit.log({ rule: 'refund', by: ctx.user, v: 13 })
// generated: escalation policy v7 (do not edit by hand)
if (customer.tier === 'vip' && wait > 30 * MIN) route(L2)
const limit = overrides[org]?.refund ?? REFUND_LIMIT
export function shouldEscalate(t: Ticket) { /* … */ }
if (order.total > cfg.limits.refund[region] && !user.flags.vip) {
return escalate(order, Role.MANAGER, { reason: 'threshold' })
}
const rule = await ruleset.resolve(org, 'refund.v12')
// TODO: who owns this? limit changed in #4821
export const REFUND_LIMIT = process.env.REFUND_LIMIT ?? 500
if (risk.score(order) > 0.82) queue.push(order, 'fraud')
switch (ticket.channel) { case 'chat': return route(L1) }
const approved = blocks.filter(b => b.org === org.id)
await audit.log({ rule: 'refund', by: ctx.user, v: 13 })
// generated: escalation policy v7 (do not edit by hand)
if (customer.tier === 'vip' && wait > 30 * MIN) route(L2)
const limit = overrides[org]?.refund ?? REFUND_LIMIT
export function shouldEscalate(t: Ticket) { /* … */ }
if (order.total > cfg.limits.refund[region] && !user.flags.vip) {
return escalate(order, Role.MANAGER, { reason: 'threshold' })
}
const rule = await ruleset.resolve(org, 'refund.v12')
// TODO: who owns this? limit changed in #4821
export const REFUND_LIMIT = process.env.REFUND_LIMIT ?? 500
if (risk.score(order) > 0.82) queue.push(order, 'fraud')
switch (ticket.channel) { case 'chat': return route(L1) }
const approved = blocks.filter(b => b.org === org.id)
await audit.log({ rule: 'refund', by: ctx.user, v: 13 })
// generated: escalation policy v7 (do not edit by hand)
if (customer.tier === 'vip' && wait > 30 * MIN) route(L2)
const limit = overrides[org]?.refund ?? REFUND_LIMIT
export function shouldEscalate(t: Ticket) { /* … */ }
if (order.total > cfg.limits.refund[region] && !user.flags.vip) {
return escalate(order, Role.MANAGER, { reason: 'threshold' })
}
const rule = await ruleset.resolve(org, 'refund.v12')
// TODO: who owns this? limit changed in #4821
export const REFUND_LIMIT = process.env.REFUND_LIMIT ?? 500
if (risk.score(order) > 0.82) queue.push(order, 'fraud')
switch (ticket.channel) { case 'chat': return route(L1) }
const approved = blocks.filter(b => b.org === org.id)
await audit.log({ rule: 'refund', by: ctx.user, v: 13 })
// generated: escalation policy v7 (do not edit by hand)
if (customer.tier === 'vip' && wait > 30 * MIN) route(L2)
const limit = overrides[org]?.refund ?? REFUND_LIMIT
export function shouldEscalate(t: Ticket) { /* … */ }
if (order.total > cfg.limits.refund[region] && !user.flags.vip) {
return escalate(order, Role.MANAGER, { reason: 'threshold' })
}
const rule = await ruleset.resolve(org, 'refund.v12')
// TODO: who owns this? limit changed in #4821
export const REFUND_LIMIT = process.env.REFUND_LIMIT ?? 500
if (risk.score(order) > 0.82) queue.push(order, 'fraud')
switch (ticket.channel) { case 'chat': return route(L1) }
const approved = blocks.filter(b => b.org === org.id)
await audit.log({ rule: 'refund', by: ctx.user, v: 13 })
// generated: escalation policy v7 (do not edit by hand)
if (customer.tier === 'vip' && wait > 30 * MIN) route(L2)
const limit = overrides[org]?.refund ?? REFUND_LIMIT
export function shouldEscalate(t: Ticket) { /* … */ }
if (order.total > cfg.limits.refund[region] && !user.flags.vip) {
return escalate(order, Role.MANAGER, { reason: 'threshold' })
}
const rule = await ruleset.resolve(org, 'refund.v12')
// TODO: who owns this? limit changed in #4821
export const REFUND_LIMIT = process.env.REFUND_LIMIT ?? 500
if (risk.score(order) > 0.82) queue.push(order, 'fraud')
switch (ticket.channel) { case 'chat': return route(L1) }
const approved = blocks.filter(b => b.org === org.id)
await audit.log({ rule: 'refund', by: ctx.user, v: 13 })
// generated: escalation policy v7 (do not edit by hand)
if (customer.tier === 'vip' && wait > 30 * MIN) route(L2)
const limit = overrides[org]?.refund ?? REFUND_LIMIT
export function shouldEscalate(t: Ticket) { /* … */ }
if (order.total > cfg.limits.refund[region] && !user.flags.vip) {
return escalate(order, Role.MANAGER, { reason: 'threshold' })
}
const rule = await ruleset.resolve(org, 'refund.v12')
// TODO: who owns this? limit changed in #4821
export const REFUND_LIMIT = process.env.REFUND_LIMIT ?? 500
if (risk.score(order) > 0.82) queue.push(order, 'fraud')
switch (ticket.channel) { case 'chat': return route(L1) }
const approved = blocks.filter(b => b.org === org.id)
await audit.log({ rule: 'refund', by: ctx.user, v: 13 })
// generated: escalation policy v7 (do not edit by hand)
if (customer.tier === 'vip' && wait > 30 * MIN) route(L2)
const limit = overrides[org]?.refund ?? REFUND_LIMIT
export function shouldEscalate(t: Ticket) { /* … */ }
if (order.total > cfg.limits.refund[region] && !user.flags.vip) {
return escalate(order, Role.MANAGER, { reason: 'threshold' })
}
const rule = await ruleset.resolve(org, 'refund.v12')
// TODO: who owns this? limit changed in #4821
export const REFUND_LIMIT = process.env.REFUND_LIMIT ?? 500
if (risk.score(order) > 0.82) queue.push(order, 'fraud')
switch (ticket.channel) { case 'chat': return route(L1) }
const approved = blocks.filter(b => b.org === org.id)
await audit.log({ rule: 'refund', by: ctx.user, v: 13 })
// generated: escalation policy v7 (do not edit by hand)
if (customer.tier === 'vip' && wait > 30 * MIN) route(L2)
const limit = overrides[org]?.refund ?? REFUND_LIMIT
export function shouldEscalate(t: Ticket) { /* … */ }
if (order.total > cfg.limits.refund[region] && !user.flags.vip) {
return escalate(order, Role.MANAGER, { reason: 'threshold' })
}
const rule = await ruleset.resolve(org, 'refund.v12')
// TODO: who owns this? limit changed in #4821
export const REFUND_LIMIT = process.env.REFUND_LIMIT ?? 500
if (risk.score(order) > 0.82) queue.push(order, 'fraud')
switch (ticket.channel) { case 'chat': return route(L1) }
const approved = blocks.filter(b => b.org === org.id)
await audit.log({ rule: 'refund', by: ctx.user, v: 13 })
// generated: escalation policy v7 (do not edit by hand)
if (customer.tier === 'vip' && wait > 30 * MIN) route(L2)
const limit = overrides[org]?.refund ?? REFUND_LIMIT
export function shouldEscalate(t: Ticket) { /* … */ }
if (order.total > cfg.limits.refund[region] && !user.flags.vip) {
return escalate(order, Role.MANAGER, { reason: 'threshold' })
}
const rule = await ruleset.resolve(org, 'refund.v12')
// TODO: who owns this? limit changed in #4821
export const REFUND_LIMIT = process.env.REFUND_LIMIT ?? 500
if (risk.score(order) > 0.82) queue.push(order, 'fraud')O Lispektor verifica cada mudança antes de entrar em vigor.
Todo caminho retorna um resultado. Todo valor tem o tipo certo. Só blocos aprovados são usados.
- Todo caminho retorna um resultado
- O valor é um número
- Só operações aprovadas
Acompanhe cada regra em execução.
Seus especialistas não apenas escrevem as regras: eles as acompanham funcionando, ao vivo.
Cada execução, na hora em que acontece
Cada execução aparece assim que começa, com o caminho que seguiu e o que decidiu.
Execuções pausadas à vista
Veja quais execuções estão esperando um gerente, e há quanto tempo.
Um painel para cada regra
Volume, resultados e tempo de execução, para quem é responsável pela regra.
- #2841Pedido 88255 · $659Até $750 → aprovarAprovado · 53 ms
- #2840Pedido 88865 · $1.060Acima de $750 → gerenteAguardando um gerente
- #2839Pedido 88476 · $421Até $750 → aprovarAprovado · 50 ms
- #2838Pedido 88087 · $822Acima de $750 → gerenteAprovado por Ana
- #2837Pedido 88697 · $183Até $750 → aprovarAprovado · 47 ms
Engenheiros definem os limites. Especialistas cuidam das regras.
- 01
Engenheiros conectam seus sistemas
Eles integram o Lispektor e escolhem quais blocos seus especialistas podem usar. Uma vez só, não regra por regra.
- 02
Especialistas escrevem as regras com IA
A IA ajuda a rascunhar o fluxo. O especialista revisa, altera e decide quando ele entra em vigor.
- 03
O Lispektor verifica cada mudança
Antes de ela chegar aos seus sistemas. Cada versão tem um nome e pode ser revertida.
Devolva as regrasDevolva as regrasaos seus especialistas.aos seus especialistas.
O Lispektor chega em breve. Comece pela regra que mais faz a sua equipe esperar.